18 #ifndef __ESCRIPT_FUNCTIONSPACE_H__ 19 #define __ESCRIPT_FUNCTIONSPACE_H__ 25 #include <boost/python/list.hpp> 48 int getTypeCode()
const;
70 int getApproximationOrder()
const;
76 void setTags(
const int newTag,
const escript::Data& mask)
const;
78 void setTagsByString(
const std::string& name,
const escript::Data& mask)
const;
84 std::pair<int,DataTypes::dim_t> getDataShape()
const;
97 std::string toString()
const;
123 return borrowSampleReferenceIDs()[sampleNo];
132 return m_domain->ownSample(m_functionSpaceType, sampleNo);
175 int getDim()
const {
return getDomain()->getDim(); }
180 boost::python::list getListOfTags()
const;
185 std::list<int> getListOfTagsSTL()
const;
190 int getNumberOfTagsInUse()
const;
192 const int* borrowListOfTagsInUse()
const;
201 return domain->probeInterpolationOnDomain(
204 return domain->probeInterpolationAcross(
225 #endif // __ESCRIPT_FUNCTIONSPACE_H__ Definition: FunctionSpace.h:34
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:36
DataTypes::dim_t getNumSamples() const
Returns the number of samples.
Definition: FunctionSpace.h:160
Definition: AbstractContinuousDomain.cpp:22
bool ownSample(DataTypes::dim_t sampleNo) const
Does this process own the sample? For non-MPI builds will always return true.
Definition: FunctionSpace.h:131
const_Domain_ptr getDomain() const
Returns the function space domain.
Definition: FunctionSpace.cpp:102
bool probeInterpolation(const FunctionSpace &other) const
Definition: FunctionSpace.h:195
const_Domain_ptr m_domain
Definition: FunctionSpace.h:216
Data represents a collection of datapoints.
Definition: Data.h:63
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:94
int getNumDPPSample() const
Returns the number of data points per sample.
Definition: FunctionSpace.h:166
int m_functionSpaceType
Definition: FunctionSpace.h:218
int getDim() const
Return the number of spatial dimensions of the underlying domain.
Definition: FunctionSpace.h:175
DataTypes::dim_t getReferenceIDOfSample(DataTypes::dim_t sampleNo) const
Returns the reference number associated with the given sample number. This function is not efficient...
Definition: FunctionSpace.h:122
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:29
bool canInterpolate(FunctionSpace src, FunctionSpace dest)
Definition: FunctionSpace.cpp:33
int getNumDataPointsPerSample() const
Definition: FunctionSpace.h:169
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:39
index_t dim_t
Definition: DataTypes.h:64