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,dim_t> getDataShape()
const;
97 std::string toString()
const;
102 int getTagFromSampleNo(
dim_t sampleNo)
const;
107 int getTagFromDataPointNo(
dim_t dataPointNo)
const;
113 dim_t getReferenceIDFromDataPointNo(
dim_t dataPointNo)
const;
123 return borrowSampleReferenceIDs()[sampleNo];
132 return m_domain->ownSample(m_functionSpaceType, sampleNo);
138 const dim_t* borrowSampleReferenceIDs()
const;
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
int getDim() const
Return the number of spatial dimensions of the underlying domain.
Definition: FunctionSpace.h:175
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:36
Definition: AbstractContinuousDomain.cpp:24
dim_t getNumSamples() const
Returns the number of samples.
Definition: FunctionSpace.h:160
int getNumDPPSample() const
Returns the number of data points per sample.
Definition: FunctionSpace.h:166
const_Domain_ptr m_domain
Definition: FunctionSpace.h:216
Data represents a collection of datapoints.
Definition: Data.h:68
dim_t getReferenceIDOfSample(dim_t sampleNo) const
Returns the reference number associated with the given sample number. This function is not efficient...
Definition: FunctionSpace.h:122
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:99
int m_functionSpaceType
Definition: FunctionSpace.h:218
int getNumDataPointsPerSample(const escript::Data *data)
Returns the number of data points per sample.
Definition: DataC.cpp:40
bool ownSample(dim_t sampleNo) const
Does this process own the sample? For non-MPI builds will always return true.
Definition: FunctionSpace.h:131
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:54
index_t dim_t
Definition: types.h:27
bool canInterpolate(FunctionSpace src, FunctionSpace dest)
Definition: FunctionSpace.cpp:36
bool probeInterpolation(const FunctionSpace &other) const
Definition: FunctionSpace.h:195
int getNumDataPointsPerSample() const
Definition: FunctionSpace.h:169
const_Domain_ptr getDomain() const
Returns the function space domain.
Definition: FunctionSpace.cpp:107
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:39