19#ifndef __ESCRIPT_FUNCTIONSPACE_H__
20#define __ESCRIPT_FUNCTIONSPACE_H__
26#include <boost/python/list.hpp>
49 int getTypeCode()
const;
71 int getApproximationOrder()
const;
77 void setTags(
const int newTag,
const escript::Data& mask)
const;
79 void setTagsByString(
const std::string& name,
const escript::Data& mask)
const;
85 std::pair<int,DataTypes::dim_t> getDataShape()
const;
98 std::string toString()
const;
124 return borrowSampleReferenceIDs()[sampleNo];
133 return m_domain->ownSample(m_functionSpaceType, sampleNo);
146#ifdef ESYS_HAVE_BOOST_NUMPY
150 boost::python::numpy::ndarray getNumpyX()
const;
183 int getDim()
const {
return getDomain()->getDim(); }
188 boost::python::list getListOfTags()
const;
193 std::list<int> getListOfTagsSTL()
const;
198 int getNumberOfTagsInUse()
const;
200 const int* borrowListOfTagsInUse()
const;
209 return domain->probeInterpolationOnDomain(
212 return domain->probeInterpolationAcross(
Data represents a collection of datapoints.
Definition: Data.h:64
Definition: FunctionSpace.h:36
int getDim() const
Return the number of spatial dimensions of the underlying domain.
Definition: FunctionSpace.h:183
DataTypes::dim_t getNumSamples() const
Returns the number of samples.
Definition: FunctionSpace.h:168
const_Domain_ptr getDomain() const
Returns the function space domain.
Definition: FunctionSpace.cpp:103
const_Domain_ptr m_domain
Definition: FunctionSpace.h:224
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:123
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:95
bool probeInterpolation(const FunctionSpace &other) const
Definition: FunctionSpace.h:203
bool ownSample(DataTypes::dim_t sampleNo) const
Does this process own the sample? For non-MPI builds will always return true.
Definition: FunctionSpace.h:132
int getNumDataPointsPerSample() const
Definition: FunctionSpace.h:177
int getNumDPPSample() const
Returns the number of data points per sample.
Definition: FunctionSpace.h:174
int m_functionSpaceType
Definition: FunctionSpace.h:226
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:30
index_t dim_t
Definition: DataTypes.h:66
Definition: AbstractContinuousDomain.cpp:23
boost::shared_ptr< const AbstractDomain > const_Domain_ptr
Definition: AbstractDomain.h:44
bool canInterpolate(FunctionSpace src, FunctionSpace dest)
Definition: FunctionSpace.cpp:34
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:43