18 #if !defined escript_FunctionSpace_20040323_H
19 #define escript_FunctionSpace_20040323_H
75 int functionSpaceType);
174 #ifdef DEBUG_PY_STRINGS
Give a short description of what FunctionSpace does.
Definition: FunctionSpace.h:46
void setTagsByString(const std::string &name, const escript::Data &mask) const
Definition: FunctionSpace.cpp:266
int getDim() const
Return the spatial dimension of the underlying domain.
Definition: FunctionSpace.h:305
const int * borrowSampleReferenceIDs() const
Return a borrowed reference to the list of sample reference IDs.
Definition: FunctionSpace.cpp:199
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:57
int getReferenceIDOfSample(int sampleNo) const
Return the reference number associated with the given sample number. This function is not efficient...
Definition: FunctionSpace.h:220
int getReferenceIDFromDataPointNo(int dataPointNo) const
Return the reference number associated with the given data-point number.
Definition: FunctionSpace.cpp:179
int getNumberOfTagsInUse() const
return the number of tags in use and a pointer to an array with the number of tags in use ...
Definition: FunctionSpace.cpp:277
Domain_ptr getDomainPython() const
Return the function space domain. Internal use only! This gets around some python difficulties by cas...
Definition: FunctionSpace.cpp:109
int getApproximationOrder() const
returns the approximation order used for this function space
Definition: FunctionSpace.cpp:316
int getTagFromDataPointNo(int dataPointNo) const
Return the tag associated with the given data-point number.
Definition: FunctionSpace.cpp:150
escript::Data getX() const
Return the spatial locations of the data points.
Definition: FunctionSpace.cpp:229
std::pair< int, int > getDataShape() const
Return the shape of the data needed to represent the function space.
Definition: FunctionSpace.cpp:89
escript::Data getSize() const
Return the sample size (e.g. the diameter of elements, radius of particles).
Definition: FunctionSpace.cpp:247
int getNumDPPSample() const
Return the number of data points per sample.
Definition: FunctionSpace.h:287
std::string toString() const
Return a text description of the function space.
Definition: FunctionSpace.cpp:118
const_Domain_ptr m_domain
Definition: FunctionSpace.h:366
Data represents a collection of datapoints.
Definition: Data.h:71
int getTypeCode() const
Return the function space type code.
Definition: FunctionSpace.cpp:95
int m_functionSpaceType
Definition: FunctionSpace.h:371
boost::python::list getListOfTags() const
Returns a list of the tags used in this function space.
Definition: FunctionSpace.cpp:300
void setTags(const int newTag, const escript::Data &mask) const
assigns new tag newTag to all samples with a positive value of mask for any its sample point...
Definition: FunctionSpace.cpp:256
FunctionSpace & operator=(const FunctionSpace &other)
Assignment operator. This method is only defined (private) to prevent people from using it...
Definition: FunctionSpace.cpp:207
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:64
bool canTag() const
Checks if this functionspace support tags.
Definition: FunctionSpace.cpp:310
std::list< int > getListOfTagsSTL() const
Returns an stl::list of the tags used in this function space.
Definition: FunctionSpace.cpp:289
bool canInterpolate(FunctionSpace src, FunctionSpace dest)
Definition: FunctionSpace.cpp:32
bool ownSample(int sampleNo) const
Does this process own the sample? For non-MPI builds will always return true.
Definition: FunctionSpace.h:232
escript::Data getNormal() const
Return the surface normal field.
Definition: FunctionSpace.cpp:238
bool operator!=(const FunctionSpace &other) const
Definition: FunctionSpace.cpp:223
bool probeInterpolation(const FunctionSpace &other) const
Definition: FunctionSpace.h:335
FunctionSpace()
Default constructor for FunctionSpace.
Definition: FunctionSpace.cpp:47
int getNumDataPointsPerSample() const
Definition: FunctionSpace.h:294
const_Domain_ptr getDomain() const
Return the function space domain.
Definition: FunctionSpace.cpp:103
int getTagFromSampleNo(int sampleNo) const
Return the tag associated with the given sample number.
Definition: FunctionSpace.cpp:144
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:60
int getNumSamples() const
Return the number of samples.
Definition: FunctionSpace.h:276
const int * borrowListOfTagsInUse() const
Definition: FunctionSpace.cpp:283
bool operator==(const FunctionSpace &other) const
Comparison operator. Return true if function spaces are equal. ie: Same domain and same function spac...
Definition: FunctionSpace.cpp:217