escript  Revision_
ripley/src/Rectangle.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2018 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 #ifndef __RIPLEY_RECTANGLE_H__
18 #define __RIPLEY_RECTANGLE_H__
19 
20 #include <ripley/RipleyDomain.h>
21 
22 namespace ripley {
23 
28 class RIPLEY_DLL_API Rectangle: public RipleyDomain
29 {
30  template<class Scalar> friend class DefaultAssembler2D;
31  friend class WaveAssembler2D;
32  friend class LameAssembler2D;
33 public:
34 
42  Rectangle(dim_t n0, dim_t n1, double x0, double y0, double x1, double y1,
43  int d0=-1, int d1=-1,
44  const std::vector<double>& points = std::vector<double>(),
45  const std::vector<int>& tags = std::vector<int>(),
46  const TagMap& tagnamestonums = TagMap(),
48  );
49 
55 
60  virtual std::string getDescription() const;
61 
65  virtual bool operator==(const escript::AbstractDomain& other) const;
66 
72  virtual void write(const std::string& filename) const;
73 
79  void dump(const std::string& filename) const;
80 
83  virtual void readNcGrid(escript::Data& out, std::string filename,
84  std::string varname, const ReaderParameters& params) const;
85 
88  virtual void readBinaryGrid(escript::Data& out, std::string filename,
89  const ReaderParameters& params) const;
90 
93  virtual void readBinaryGridFromZipped(escript::Data& out, std::string filename,
94  const ReaderParameters& params) const;
95 
98  virtual void writeBinaryGrid(const escript::Data& in,
99  std::string filename,
100  int byteOrder, int dataType) const;
101 
107  const dim_t* borrowSampleReferenceIDs(int fsType) const;
108 
113  virtual bool ownSample(int fsType, index_t id) const;
114 
121  virtual void setToNormal(escript::Data& out) const;
122 
128  virtual void setToSize(escript::Data& out) const;
129 
134  virtual dim_t getNumDataPointsGlobal() const;
135 
141  virtual void Print_Mesh_Info(const bool full=false) const;
142 
147  virtual const dim_t* getNumNodesPerDim() const { return m_NN; }
148 
153  virtual const dim_t* getNumElementsPerDim() const { return m_NE; }
154 
160  virtual const dim_t* getNumFacesPerBoundary() const { return m_faceCount; }
161 
166  virtual IndexVector getNodeDistribution() const { return m_nodeDistribution; }
167 
172  virtual const int* getNumSubdivisionsPerDim() const { return m_NX; }
173 
178  virtual double getLocalCoordinate(index_t index, int dim) const;
179 
184  virtual boost::python::tuple getGridParameters() const;
185 
190  virtual escript::Data randomFill(const escript::DataTypes::ShapeType& shape,
191  const escript::FunctionSpace& what, long seed,
192  const boost::python::tuple& filter) const;
193 
198  virtual Assembler_ptr createAssembler(std::string type,
199  const DataMap& options) const;
200 
205  const double *getLength() const { return m_length; }
206 
211  const double *getElementLength() const { return m_dx; }
212 
218  virtual RankVector getOwnerVector(int fsType) const;
219 
220 protected:
221  virtual dim_t getNumNodes() const;
222  virtual dim_t getNumElements() const;
223  virtual dim_t getNumFaceElements() const;
224  virtual dim_t getNumDOF() const;
225  virtual dim_t getNumDOFInAxis(unsigned axis) const;
226  virtual index_t getFirstInDim(unsigned axis) const;
227 
228  virtual IndexVector getDiagonalIndices(bool upperOnly) const;
229  virtual void assembleCoordinates(escript::Data& arg) const;
230  virtual void assembleGradient(escript::Data& out,
231  const escript::Data& in) const;
232  virtual void assembleIntegrate(std::vector<real_t>& integrals,
233  const escript::Data& arg) const;
234  virtual void assembleIntegrate(std::vector<cplx_t>& integrals,
235  const escript::Data& arg) const;
236  virtual std::vector<IndexVector> getConnections(bool includeShared=false) const;
237 
238 #ifdef ESYS_HAVE_TRILINOS
239  virtual esys_trilinos::const_TrilinosGraph_ptr getTrilinosGraph() const;
240 #endif
241 
242 #ifdef ESYS_HAVE_PASO
243  virtual paso::SystemMatrixPattern_ptr getPasoMatrixPattern(
244  bool reducedRowOrder, bool reducedColOrder) const;
245 #endif
246  virtual void interpolateNodesOnElements(escript::Data& out,
247  const escript::Data& in, bool reduced) const;
248  virtual void interpolateNodesOnFaces(escript::Data& out,
249  const escript::Data& in,
250  bool reduced) const;
251 
252  virtual void nodesToDOF(escript::Data& out, const escript::Data& in) const;
253  virtual dim_t getDofOfNode(dim_t node) const;
254 
255  virtual void populateSampleIds();
256  virtual void populateDofMap();
257 
258  template<typename Scalar>
259  void assembleGradientImpl(escript::Data& out,
260  const escript::Data& in) const;
261 
262  template<typename Scalar>
263  void addToMatrixAndRHS(escript::AbstractSystemMatrix* S, escript::Data& F,
264  const std::vector<Scalar>& EM_S, const std::vector<Scalar>& EM_F,
265  bool addS, bool addF, index_t firstNode, int nEq=1, int nComp=1) const;
266 
267  template<typename ValueType>
268  void readBinaryGridImpl(escript::Data& out, const std::string& filename,
269  const ReaderParameters& params) const;
270 
271 #ifdef ESYS_HAVE_BOOST_IO
272  template<typename ValueType>
273  void readBinaryGridZippedImpl(escript::Data& out,
274  const std::string& filename, const ReaderParameters& params) const;
275 #endif
276 
277  template<typename ValueType>
278  void writeBinaryGridImpl(const escript::Data& in,
279  const std::string& filename, int byteOrder) const;
280 
281  virtual dim_t findNode(const double *coords) const;
282 
283 
284  escript::Data randomFillWorker(const escript::DataTypes::ShapeType& shape,
285  long seed, const boost::python::tuple& filter) const;
286 
288  dim_t m_gNE[2];
289 
291  double m_origin[2];
292 
294  double m_length[2];
295 
297  double m_dx[2];
298 
300  int m_NX[2];
301 
303  dim_t m_NE[2];
304 
306  dim_t m_ownNE[2];
307 
309  dim_t m_NN[2];
310 
312  dim_t m_offset[2];
313 
315  dim_t m_faceCount[4];
316 
319  IndexVector m_faceOffset;
320 
322  IndexVector m_dofId;
323  IndexVector m_nodeId;
324  IndexVector m_elementId;
325  IndexVector m_faceId;
326 
327  // vector with first node id on each rank
328  IndexVector m_nodeDistribution;
329 
330  // vector that maps each node to a DOF index (used for the coupler)
331  IndexVector m_dofMap;
332 
333 #ifdef ESYS_HAVE_PASO
334  // the Paso System Matrix pattern
335  mutable paso::SystemMatrixPattern_ptr m_pattern;
336 #endif
337 
338 #ifdef ESYS_HAVE_TRILINOS
339  mutable esys_trilinos::const_TrilinosGraph_ptr m_graph;
341 #endif
342 private:
343  template<typename Scalar>
344  void assembleIntegrateImpl(std::vector<Scalar>& integrals, const escript::Data& arg) const;
345 
346  template <typename S>
347  void interpolateNodesOnElementsWorker(escript::Data& out,
348  const escript::Data& in, bool reduced, S sentinel) const;
349  template <typename S>
350  void interpolateNodesOnFacesWorker(escript::Data& out,
351  const escript::Data& in,
352  bool reduced, S sentinel) const;
353 };
354 
356 inline dim_t Rectangle::getDofOfNode(dim_t node) const
357 {
358  return m_dofMap[node];
359 }
360 
362 {
363  return (m_gNE[0]+1)*(m_gNE[1]+1);
364 }
365 
366 inline double Rectangle::getLocalCoordinate(index_t index, int dim) const
367 {
368  ESYS_ASSERT(dim>=0 && dim<2, "'dim' out of bounds");
369  ESYS_ASSERT(index>=0 && index<m_NN[dim], "'index' out of bounds");
370  return m_origin[dim]+m_dx[dim]*(m_offset[dim]+index);
371 }
372 
373 inline boost::python::tuple Rectangle::getGridParameters() const
374 {
375  return boost::python::make_tuple(
376  boost::python::make_tuple(m_origin[0], m_origin[1]),
377  boost::python::make_tuple(m_dx[0], m_dx[1]),
378  boost::python::make_tuple(m_gNE[0], m_gNE[1]));
379 }
380 
381 //protected
382 inline dim_t Rectangle::getNumDOF() const
383 {
384  return (m_gNE[0]+1)/m_NX[0]*(m_gNE[1]+1)/m_NX[1];
385 }
386 
387 //protected
388 inline dim_t Rectangle::getNumDOFInAxis(unsigned axis) const
389 {
390  ESYS_ASSERT(axis < m_numDim, "Invalid axis");
391  return (m_gNE[axis]+1)/m_NX[axis];
392 }
393 
394 //protected
395 inline dim_t Rectangle::getNumNodes() const
396 {
397  return m_NN[0]*m_NN[1];
398 }
399 
400 //protected
401 inline dim_t Rectangle::getNumElements() const
402 {
403  return m_NE[0]*m_NE[1];
404 }
405 
406 //protected
408 {
409  return m_faceCount[0] + m_faceCount[1] + m_faceCount[2] + m_faceCount[3];
410 }
411 
412 //protected
413 inline index_t Rectangle::getFirstInDim(unsigned axis) const
414 {
415  return m_offset[axis] == 0 ? 0 : 1;
416 }
417 
418 } // end of namespace ripley
419 
420 #endif // __RIPLEY_RECTANGLE_H__
421 
speckley::DATATYPE_INT32
Definition: speckley/src/system_dep.h:59
speckley::TagMap
std::map< std::string, int > TagMap
Definition: Speckley.h:57
MPI_Status
int MPI_Status
Definition: EsysMPI.h:43
escript::Data::getNumDataPointsPerSample
int getNumDataPointsPerSample() const
Return the number of data points per sample.
Definition: Data.h:530
ripley::ReducedElements
Definition: Ripley.h:66
escript::Data::isComplex
bool isComplex() const
True if components of this data are stored as complex.
Definition: Data.cpp:1163
ripley
Definition: ripley/src/AbstractAssembler.h:24
ripley::RipleyDomain::m_mpiInfo
escript::JMPI m_mpiInfo
Definition: ripley/src/RipleyDomain.h:770
message::sourceID
neighbourID_t sourceID
Definition: blocktools.h:70
speckley::Rectangle::getDescription
virtual std::string getDescription() const
returns a description for this domain
Definition: speckley/src/Rectangle.cpp:194
ripley::DECOMP_STRICT
Definition: ripley/src/RipleyDomain.h:72
ripley::Rectangle::m_faceId
IndexVector m_faceId
Definition: ripley/src/Rectangle.h:348
escript::DataTypes::real_t
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:73
ripley::byte_swap64
char * byte_swap64(char *val)
Definition: ripley/src/system_dep.h:113
ripley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: ripley/src/domainhelpers.h:35
ripley::Rectangle::readBinaryGridImpl
void readBinaryGridImpl(escript::Data &out, const std::string &filename, const ReaderParameters &params) const
Definition: ripley/src/Rectangle.cpp:569
message
Definition: blocktools.h:67
ripley::Rectangle::getNumDOF
virtual dim_t getNumDOF() const
returns the number of degrees of freedom per MPI rank
Definition: ripley/src/Rectangle.h:393
ripley::Rectangle::m_NN
dim_t m_NN[2]
number of nodes for this rank in each dimension
Definition: ripley/src/Rectangle.h:332
speckley::Rectangle::writeBinaryGrid
virtual void writeBinaryGrid(const escript::Data &in, std::string filename, int byteOrder, int dataType) const
writes a Data object to a file in raw binary format
Definition: speckley/src/Rectangle.cpp:797
speckley::SpeckleyDomain::addPoints
void addPoints(const std::vector< double > &coords, const std::vector< int > &tags)
Definition: speckley/src/SpeckleyDomain.cpp:1064
ripley::Rectangle::getOwnerVector
virtual RankVector getOwnerVector(int fsType) const
returns a vector of rank numbers where vec[i]=n means that rank n 'owns' element/face element i.
Definition: ripley/src/Rectangle.cpp:1102
escript::Data::requireWrite
void requireWrite()
Ensures data is ready for write access. This means that the data will be resolved if lazy and will be...
Definition: Data.cpp:1242
ripley::RipleyDomain::m_elementTags
std::vector< int > m_elementTags
Definition: ripley/src/RipleyDomain.h:773
speckley::Rectangle::integral_order4
void integral_order4(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:86
ripley::Rectangle::m_dofMap
IndexVector m_dofMap
Definition: ripley/src/Rectangle.h:354
ripley::ReaderParameters::first
std::vector< dim_t > first
the (global) offset into the data object to start writing into
Definition: ripley/src/RipleyDomain.h:82
ripley::Rectangle::WaveAssembler2D
friend class WaveAssembler2D
Definition: ripley/src/Rectangle.h:54
ripley::Rectangle::m_ownNE
dim_t m_ownNE[2]
number of own elements for this rank in each dimension
Definition: ripley/src/Rectangle.h:329
ripley::RipleyDomain::m_faceTags
std::vector< int > m_faceTags
Definition: ripley/src/RipleyDomain.h:774
speckley::Rectangle::Print_Mesh_Info
virtual void Print_Mesh_Info(const bool full=false) const
writes information about the mesh to standard output
Definition: speckley/src/Rectangle.cpp:1105
ripley::Rectangle::m_dofId
IndexVector m_dofId
vector of sample reference identifiers
Definition: ripley/src/Rectangle.h:345
escript::Distribution_ptr
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:35
speckley::SpeckleyDomain::m_diracPointNodeIDs
IndexVector m_diracPointNodeIDs
Definition: speckley/src/SpeckleyDomain.h:749
speckley::DATATYPE_FLOAT64
Definition: speckley/src/system_dep.h:61
speckley::SpeckleyDomain::m_order
int m_order
element order (will be m_order + 1 quad points in each axis)
Definition: speckley/src/SpeckleyDomain.h:752
message::destID
neighbourID_t destID
Definition: blocktools.h:71
INDEX2
#define INDEX2(_X1_, _X2_, _N1_)
Definition: index.h:21
ripley::RipleyException
RipleyException exception class.
Definition: RipleyException.h:40
ripley::Points
Definition: Ripley.h:69
speckley::Rectangle::assembleIntegrate
virtual void assembleIntegrate(std::vector< real_t > &integrals, const escript::Data &arg) const
copies the integrals of the function defined by 'arg' into 'integrals'
Definition: speckley/src/Rectangle.cpp:1203
ripley::DECOMP_ADD_ELEMENTS
Definition: ripley/src/RipleyDomain.h:70
speckley::Rectangle::WaveAssembler2D
friend class WaveAssembler2D
Definition: speckley/src/Rectangle.h:424
ripley::TagMap
std::map< std::string, int > TagMap
Definition: Ripley.h:58
RIPLEY_DLL_API
#define RIPLEY_DLL_API
Definition: ripley/src/system_dep.h:19
escript::Data::getSampleDataRO
const DataTypes::real_t * getSampleDataRO(DataTypes::RealVectorType::size_type sampleNo, DataTypes::real_t dummy=0) const
Return the sample data for the given sample no. Please do not use this unless you NEED to access samp...
Definition: Data.h:1975
ripley::factorise
void factorise(std::vector< int > &factors, int product)
Definition: ripley/src/domainhelpers.cpp:39
ripley::Rectangle::m_gNE
dim_t m_gNE[2]
total number of elements in each dimension
Definition: ripley/src/Rectangle.h:311
ripley::DATATYPE_FLOAT64
Definition: ripley/src/system_dep.h:60
speckley::Rectangle::m_faceCount
dim_t m_faceCount[4]
number of face elements per edge (left, right, bottom, top)
Definition: speckley/src/Rectangle.h:409
speckley::Rectangle::interpolateElementsOnNodesWorker
void interpolateElementsOnNodesWorker(escript::Data &out, const escript::Data &in) const
Definition: speckley/src/Rectangle.cpp:1588
speckley::Rectangle::setToNormal
virtual void setToNormal(escript::Data &out) const
copies the surface normals at data points into out. The actual function space to be considered is def...
Definition: speckley/src/Rectangle.cpp:1060
ripley::DATATYPE_INT32
Definition: ripley/src/system_dep.h:58
escript::NotImplementedError
An exception class for features which are not (yet) implemented.
Definition: EsysException.h:89
ripley::Rectangle::interpolateNodesOnFacesWorker
void interpolateNodesOnFacesWorker(escript::Data &out, const escript::Data &in, bool reduced, S sentinel) const
Definition: ripley/src/Rectangle.cpp:2354
speckley::Rectangle::m_NX
int m_NX[2]
number of spatial subdivisions
Definition: speckley/src/Rectangle.h:397
escript::AbstractDomain::getPtr
Domain_ptr getPtr()
Returns smart pointer which is managing this object. If one does not exist yet it creates one.
Definition: AbstractDomain.cpp:36
ripley::Rectangle::getDofOfNode
virtual dim_t getDofOfNode(dim_t node) const
Definition: ripley/src/Rectangle.h:367
ripley::Nodes
Definition: Ripley.h:63
ripley::Rectangle::ownSample
virtual bool ownSample(int fsType, index_t id) const
returns true if this rank owns the sample id.
Definition: ripley/src/Rectangle.cpp:1054
ripley::ReducedDegreesOfFreedom
Definition: Ripley.h:62
speckley::Rectangle::setToSize
virtual void setToSize(escript::Data &out) const
copies the size of samples into out. The actual function space to be considered is defined by out....
Definition: speckley/src/Rectangle.cpp:1065
ripley::Rectangle::getLocalCoordinate
virtual double getLocalCoordinate(index_t index, int dim) const
returns the index'th coordinate value in given dimension for this rank
Definition: ripley/src/Rectangle.h:377
ripley::Elements
Definition: Ripley.h:65
escript::FileWriter
Definition: FileWriter.h:39
escript::DataTypes::DataVectorAlt< real_t >
escript::randomFillArray
void randomFillArray(long seed, double *array, size_t n)
Definition: Random.cpp:73
speckley::Rectangle::write
virtual void write(const std::string &filename) const
writes the current mesh to a file with the given name
Definition: speckley/src/Rectangle.cpp:874
speckley::Rectangle::m_nodeDistribution
IndexVector m_nodeDistribution
Definition: speckley/src/Rectangle.h:417
speckley::SpeckleyDomain::m_nodeTags
std::vector< int > m_nodeTags
Definition: speckley/src/SpeckleyDomain.h:746
speckley::ReaderParameters::byteOrder
int byteOrder
byte order in the file (used by binary reader only)
Definition: speckley/src/SpeckleyDomain.h:74
speckley::Rectangle::m_elementId
IndexVector m_elementId
Definition: speckley/src/Rectangle.h:414
speckley::Rectangle::interpolateNodesOnElementsWorker
void interpolateNodesOnElementsWorker(escript::Data &out, const escript::Data &in, bool reduced) const
Definition: speckley/src/Rectangle.cpp:1435
ripley::DegreesOfFreedom
Definition: Ripley.h:61
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:50
speckley::Rectangle::integral_order3
void integral_order3(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:61
ripley::Rectangle::randomFillWorker
escript::Data randomFillWorker(const escript::DataTypes::ShapeType &shape, long seed, const boost::python::tuple &filter) const
Definition: ripley/src/Rectangle.cpp:2573
ripley::Rectangle::getDiagonalIndices
virtual IndexVector getDiagonalIndices(bool upperOnly) const
returns the indices of the occupied matrix diagonals
Definition: ripley/src/Rectangle.cpp:1755
speckley::SpeckleyDomain::m_numDim
int m_numDim
Definition: speckley/src/SpeckleyDomain.h:742
ripley::BYTEORDER_NATIVE
Definition: ripley/src/system_dep.h:45
ripley::byte_swap32
char * byte_swap32(char *val)
Definition: ripley/src/system_dep.h:106
speckley::Rectangle::interpolateElementsOnNodes
virtual void interpolateElementsOnNodes(escript::Data &out, const escript::Data &in) const
interpolates data on elements in 'in' onto nodes in 'out'
Definition: speckley/src/Rectangle.cpp:1577
ripley::ReaderParameters::byteOrder
int byteOrder
byte order in the file (used by binary reader only)
Definition: ripley/src/RipleyDomain.h:91
ripley::RipleyDomain::m_diracPointNodeIDs
IndexVector m_diracPointNodeIDs
Definition: ripley/src/RipleyDomain.h:776
ripley::ReaderParameters::numValues
std::vector< dim_t > numValues
the number of values to read from file
Definition: ripley/src/RipleyDomain.h:84
speckley::Rectangle::probeInterpolationAcross
virtual bool probeInterpolationAcross(int, const escript::AbstractDomain &, int) const
determines whether interpolation from source to target is possible
Definition: speckley/src/Rectangle.cpp:1937
speckley::Rectangle::borrowSampleReferenceIDs
const dim_t * borrowSampleReferenceIDs(int fsType) const
returns the array of reference numbers for a function space type
Definition: speckley/src/Rectangle.cpp:1023
speckley::SpeckleyDomain::Print_Mesh_Info
virtual void Print_Mesh_Info(bool full=false) const
writes information about the mesh to standard output
Definition: speckley/src/SpeckleyDomain.cpp:687
ripley::ReducedNodes
Definition: Ripley.h:64
ripley::Rectangle::populateSampleIds
virtual void populateSampleIds()
Definition: ripley/src/Rectangle.cpp:1862
escript::Data::getDataPointSize
int getDataPointSize() const
Return the size of the data point. It is the product of the data point shape dimensions.
Definition: Data.cpp:1363
speckley::ReaderParameters::first
std::vector< dim_t > first
the (global) offset into the data object to start writing into
Definition: speckley/src/SpeckleyDomain.h:65
escript::FunctionSpace
Definition: FunctionSpace.h:45
ripley::RipleyDomain::MPIBarrier
virtual void MPIBarrier() const
if compiled for MPI then executes an MPI_Barrier, else does nothing
Definition: ripley/src/RipleyDomain.h:152
speckley::Rectangle::integral_order6
void integral_order6(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:136
speckley::Rectangle::readBinaryGridFromZipped
virtual void readBinaryGridFromZipped(escript::Data &out, std::string filename, const ReaderParameters &params) const
reads grid data from a compressed raw binary file into a Data object
Definition: speckley/src/Rectangle.cpp:496
speckley::Rectangle::findNode
dim_t findNode(const double *coords) const
finds the node that the given point coordinates belong to
Definition: speckley/src/Rectangle.cpp:1871
escript::Data::getFunctionSpace
const FunctionSpace & getFunctionSpace() const
Return the function space.
Definition: Data.h:461
message::tag
int tag
Definition: blocktools.h:72
escript::FileWriter::openFile
bool openFile(std::string filename, size_t initialSize=0, bool binary=false, bool append=false)
Definition: FileWriter.h:71
speckley::probeInterpolationAcross
bool probeInterpolationAcross(int fsType_source, const escript::AbstractDomain &domain, int fsType_target, int dim)
Definition: CrossDomainCoupler.cpp:30
ripley::Rectangle::m_faceOffset
IndexVector m_faceOffset
Definition: ripley/src/Rectangle.h:342
escript::Distribution
Definition: Distribution.h:42
ripley::Rectangle::nodesToDOF
virtual void nodesToDOF(escript::Data &out, const escript::Data &in) const
converts data on nodes in 'in' to degrees of freedom in 'out'
Definition: ripley/src/Rectangle.cpp:1777
ripley::Rectangle::m_elementId
IndexVector m_elementId
Definition: ripley/src/Rectangle.h:347
ripley::Rectangle::getNumDataPointsGlobal
virtual dim_t getNumDataPointsGlobal() const
returns the number of data points summed across all MPI processes
Definition: ripley/src/Rectangle.h:372
speckley::BYTEORDER_NATIVE
Definition: speckley/src/system_dep.h:46
ripley::RipleyDomain::m_nodeTags
std::vector< int > m_nodeTags
Definition: ripley/src/RipleyDomain.h:772
speckley
Definition: AbstractAssembler.cpp:17
ripley::DATATYPE_FLOAT32
Definition: ripley/src/system_dep.h:59
speckley::Rectangle::getNumNodes
virtual dim_t getNumNodes() const
returns the number of nodes per MPI rank
Definition: speckley/src/Rectangle.h:450
ripley::RankVector
std::vector< int > RankVector
Definition: Ripley.h:57
paso::util::copy
void copy(dim_t N, double *out, const double *in)
out = in
Definition: PasoUtil.h:110
speckley::SpeckleyDomain::setTagMap
virtual void setTagMap(const std::string &name, int tag)
sets a map from a clear tag name to a tag key
Definition: speckley/src/SpeckleyDomain.h:203
Block2::getOutBuffer
double * getOutBuffer(unsigned char subx, unsigned char suby)
Definition: blocktools2.cpp:99
ripley::Rectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Rectangle.h:39
ripley::Rectangle::populateDofMap
virtual void populateDofMap()
Definition: ripley/src/Rectangle.cpp:2077
speckley::Rectangle::reduceElements
virtual void reduceElements(escript::Data &out, const escript::Data &in) const
interpolates from Element -> ReducedElement
Definition: speckley/src/Rectangle.cpp:1372
speckley::Rectangle::populateSampleIds
void populateSampleIds()
Definition: speckley/src/Rectangle.cpp:1281
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:62
speckley::SpeckleyDomain::m_elementTags
std::vector< int > m_elementTags
Definition: speckley/src/SpeckleyDomain.h:747
ripley::RipleyDomain
RipleyDomain extends the AbstractContinuousDomain interface for the Ripley library and is the base cl...
Definition: ripley/src/RipleyDomain.h:112
speckley::Rectangle::m_NN
dim_t m_NN[2]
number of nodes for this rank in each dimension
Definition: speckley/src/Rectangle.h:403
ripley::RipleyDomain::m_numDim
int m_numDim
Definition: ripley/src/RipleyDomain.h:768
escript::IOError
An exception class for Input/Output errors.
Definition: EsysException.h:79
ripley::Rectangle::m_NX
int m_NX[2]
number of spatial subdivisions
Definition: ripley/src/Rectangle.h:323
speckley::Rectangle::writeBinaryGridImpl
void writeBinaryGridImpl(const escript::Data &in, const std::string &filename, int byteOrder) const
Definition: speckley/src/Rectangle.cpp:818
INDEX3
#define INDEX3(_X1_, _X2_, _X3_, _N1_, _N2_)
Definition: index.h:23
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:87
escript::DataTypes::ShapeType
std::vector< int > ShapeType
The shape of a single datapoint.
Definition: DataTypes.h:65
speckley::ReaderParameters::reverse
std::vector< int > reverse
if non-zero, values are written from last index to first index
Definition: speckley/src/SpeckleyDomain.h:72
speckley::byte_swap64
char * byte_swap64(char *val)
Definition: speckley/src/system_dep.h:114
speckley::Rectangle::integral_order9
void integral_order9(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:211
escript::AbstractSystemMatrix
Base class for escript system matrices.
Definition: AbstractSystemMatrix.h:53
speckley::Rectangle::~Rectangle
~Rectangle()
Destructor.
Definition: speckley/src/Rectangle.cpp:186
speckley::Rectangle::m_gNE
dim_t m_gNE[2]
total number of elements in each dimension
Definition: speckley/src/Rectangle.h:385
ripley::Rectangle::assembleIntegrateImpl
void assembleIntegrateImpl(std::vector< Scalar > &integrals, const escript::Data &arg) const
Definition: ripley/src/Rectangle.cpp:1594
speckley::DATATYPE_FLOAT32
Definition: speckley/src/system_dep.h:60
speckley::SpeckleyDomain::m_mpiInfo
escript::JMPI m_mpiInfo
Definition: speckley/src/SpeckleyDomain.h:744
Block2
Definition: blocktools.h:224
escript::Data::getSampleDataRW
DataTypes::real_t * getSampleDataRW(DataTypes::RealVectorType::size_type sampleNo, DataTypes::real_t dummy=0)
Return the sample data for the given sample no. Please do not use this unless you NEED to access samp...
Definition: Data.h:1940
speckley::Rectangle::dump
void dump(const std::string &filename) const
dumps the mesh to a file with the given name
Definition: speckley/src/Rectangle.cpp:879
speckley::Rectangle::randomFill
virtual escript::Data randomFill(const escript::DataTypes::ShapeType &shape, const escript::FunctionSpace &what, long seed, const boost::python::tuple &filter) const
Returns a Data object filled with random data passed through filter.
ripley::Rectangle::getFirstInDim
virtual index_t getFirstInDim(unsigned axis) const
Definition: ripley/src/Rectangle.h:424
ripley::readBinaryGridFromZipped
escript::Data readBinaryGridFromZipped(std::string filename, escript::FunctionSpace fs, const object &pyShape, double fill, int byteOrder, int dataType, const object &pyFirst, const object &pyNum, const object &pyMultiplier, const object &pyReverse)
Definition: ripleycpp.cpp:86
speckley::Rectangle::getLocalCoordinate
virtual double getLocalCoordinate(index_t index, int dim) const
returns the index'th coordinate value in given dimension for this rank
Definition: speckley/src/Rectangle.h:426
speckley::Rectangle::interpolateNodesOnElements
virtual void interpolateNodesOnElements(escript::Data &out, const escript::Data &in, bool reduced) const
interpolates data on nodes in 'in' onto elements in 'out'
Definition: speckley/src/Rectangle.cpp:1423
escript::DataTypes::noValues
int noValues(const ShapeType &shape)
Calculate the number of values in a datapoint with the given shape.
Definition: DataTypes.cpp:89
speckley::SpeckleyDomain::getMPISize
virtual int getMPISize() const
returns the number of processors used for this domain
Definition: speckley/src/SpeckleyDomain.h:120
ripley::Rectangle::write
virtual void write(const std::string &filename) const
writes the current mesh to a file with the given name
Definition: ripley/src/Rectangle.cpp:877
speckley::factorise
void factorise(std::vector< int > &factors, int product)
Definition: speckley/src/domainhelpers.cpp:40
paso::SystemMatrixPattern
Definition: SystemMatrixPattern.h:55
ripley::Rectangle::borrowSampleReferenceIDs
const dim_t * borrowSampleReferenceIDs(int fsType) const
returns the array of reference numbers for a function space type
Definition: ripley/src/Rectangle.cpp:1028
ripley::readBinaryGrid
escript::Data readBinaryGrid(std::string filename, escript::FunctionSpace fs, const object &pyShape, double fill, int byteOrder, int dataType, const object &pyFirst, const object &pyNum, const object &pyMultiplier, const object &pyReverse)
Definition: ripleycpp.cpp:61
ripley::Rectangle::~Rectangle
~Rectangle()
Destructor.
Definition: ripley/src/Rectangle.cpp:238
speckley::SpeckleyDomain
SpeckleyDomain extends the AbstractContinuousDomain interface for the Speckley library and is the bas...
Definition: speckley/src/SpeckleyDomain.h:95
ripley::ReaderParameters::multiplier
std::vector< int > multiplier
Definition: ripley/src/RipleyDomain.h:87
speckley::ReducedElements
Definition: Speckley.h:75
ripley::readNcGrid
escript::Data readNcGrid(std::string filename, std::string varname, escript::FunctionSpace fs, const object &pyShape, double fill, const object &pyFirst, const object &pyNum, const object &pyMultiplier, const object &pyReverse)
Definition: ripleycpp.cpp:115
escript::Data::isDataPointShapeEqual
bool isDataPointShapeEqual(int rank, const int *dimensions) const
Returns true if the shape matches the vector (dimensions[0],..., dimensions[rank-1])....
Definition: Data.h:553
speckley::SpeckleyDomain::MPIBarrier
virtual void MPIBarrier() const
if compiled for MPI then executes an MPI_Barrier, else does nothing
Definition: speckley/src/SpeckleyDomain.h:132
speckley::Rectangle::m_dx
double m_dx[2]
grid spacings / cell sizes of domain
Definition: speckley/src/Rectangle.h:394
ripley::Rectangle::setToSize
virtual void setToSize(escript::Data &out) const
copies the size of samples into out. The actual function space to be considered is defined by out....
Definition: ripley/src/Rectangle.cpp:1247
Block2::getInBuffer
double * getInBuffer(unsigned char subx, unsigned char suby)
Definition: blocktools2.cpp:109
ripley::doublyLink
void doublyLink(std::vector< ripley::IndexVector > &va, std::vector< ripley::IndexVector > &vb, int a, int b)
Definition: ripley/src/domainhelpers.h:60
globalNodeId
#define globalNodeId(x, y)
messvec
std::vector< message > messvec
Definition: blocktools.h:77
ripley::FaceElements
Definition: Ripley.h:67
escript::Data::numSamplesEqual
bool numSamplesEqual(int numDataPointsPerSample, int numSamples) const
Returns true if the number of data points per sample and the number of samples match the respective a...
Definition: Data.h:541
ripley::Rectangle::getNumDOFInAxis
virtual dim_t getNumDOFInAxis(unsigned axis) const
Definition: ripley/src/Rectangle.h:399
ripley::DefaultAssembler2D
Definition: ripley/src/DefaultAssembler2D.h:35
ripley::RipleyDomain::getDecompositionPolicy
static DecompositionPolicy getDecompositionPolicy()
Definition: ripley/src/RipleyDomain.cpp:56
speckley::Rectangle
Rectangle is the 2-dimensional implementation of a SpeckleyDomain.
Definition: speckley/src/Rectangle.h:43
ripley::Rectangle::addToMatrixAndRHS
void addToMatrixAndRHS(escript::AbstractSystemMatrix *S, escript::Data &F, const std::vector< Scalar > &EM_S, const std::vector< Scalar > &EM_F, bool addS, bool addF, index_t firstNode, int nEq=1, int nComp=1) const
Definition: ripley/src/Rectangle.cpp:2217
speckley::Rectangle::integral_order8
void integral_order8(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:186
speckley::RipleyCoupler
Definition: CrossDomainCoupler.h:39
ripley::Rectangle::getNumElements
virtual dim_t getNumElements() const
returns the number of elements per MPI rank
Definition: ripley/src/Rectangle.h:412
ripley::Rectangle::setToNormal
virtual void setToNormal(escript::Data &out) const
copies the surface normals at data points into out. The actual function space to be considered is def...
Definition: ripley/src/Rectangle.cpp:1142
speckley::DegreesOfFreedom
Definition: Speckley.h:70
ripley::RipleyDomain::getContinuousFunctionCode
virtual int getContinuousFunctionCode() const
returns a continuous FunctionSpace code
Definition: ripley/src/RipleyDomain.h:397
ripley::RipleyDomain::updateTagsInUse
void updateTagsInUse(int fsType) const
Definition: ripley/src/RipleyDomain.cpp:1250
ripley::RipleyDomain::setTagMap
virtual void setTagMap(const std::string &name, int tag)
sets a map from a clear tag name to a tag key
Definition: ripley/src/RipleyDomain.h:223
ripley::Rectangle::randomFill
virtual escript::Data randomFill(const escript::DataTypes::ShapeType &shape, const escript::FunctionSpace &what, long seed, const boost::python::tuple &filter) const
returns a Data object filled with random data passed through filter.
ripley::Rectangle::Print_Mesh_Info
virtual void Print_Mesh_Info(const bool full=false) const
writes information about the mesh to standard output
Definition: ripley/src/Rectangle.cpp:1309
speckley::Elements
Definition: Speckley.h:74
speckley::Rectangle::interpolateFromCorners
void interpolateFromCorners(escript::Data &out) const
Definition: speckley/src/Rectangle.cpp:756
speckley::SpeckleyDomain::updateTagsInUse
void updateTagsInUse(int fsType) const
Definition: speckley/src/SpeckleyDomain.cpp:839
speckley::Rectangle::integral_order7
void integral_order7(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:161
ripley::ReaderParameters
Structure that wraps parameters for the grid reading routines.
Definition: ripley/src/RipleyDomain.h:79
speckley::Rectangle::getNumDataPointsGlobal
virtual dim_t getNumDataPointsGlobal() const
returns the number of data points summed across all MPI processes
Definition: speckley/src/Rectangle.h:421
MPI_DOUBLE
#define MPI_DOUBLE
Definition: EsysMPI.h:45
escript::SubWorld_ptr
boost::shared_ptr< SubWorld > SubWorld_ptr
Definition: SubWorld.h:157
speckley::Rectangle::getNumElements
virtual dim_t getNumElements() const
returns the number of elements per MPI rank
Definition: speckley/src/Rectangle.h:456
speckley::ReaderParameters::dataType
int dataType
data type in the file (used by binary reader only)
Definition: speckley/src/SpeckleyDomain.h:76
Block2::getBuffSize
size_t getBuffSize(unsigned char subx, unsigned char suby)
Definition: blocktools2.cpp:119
speckley::Rectangle::operator==
virtual bool operator==(const escript::AbstractDomain &other) const
equality operator
Definition: speckley/src/Rectangle.cpp:199
ripley::Rectangle::assembleIntegrate
virtual void assembleIntegrate(std::vector< real_t > &integrals, const escript::Data &arg) const
copies the integrals of the function defined by 'arg' into 'integrals'
Definition: ripley/src/Rectangle.cpp:1579
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:82
ripley::Rectangle::interpolateNodesOnElementsWorker
void interpolateNodesOnElementsWorker(escript::Data &out, const escript::Data &in, bool reduced, S sentinel) const
Definition: ripley/src/Rectangle.cpp:2291
ripley::IndexVector
std::vector< index_t > IndexVector
Definition: Ripley.h:55
ripley::Rectangle::m_offset
dim_t m_offset[2]
first node on this rank is at (offset0,offset1) in global mesh
Definition: ripley/src/Rectangle.h:335
ripley::ReaderParameters::reverse
std::vector< int > reverse
if non-zero, values are written from last index to first index
Definition: ripley/src/RipleyDomain.h:89
speckley::Rectangle::assembleIntegrateWorker
void assembleIntegrateWorker(std::vector< Scalar > &integrals, const escript::Data &arg) const
Definition: speckley/src/Rectangle.cpp:1218
ripley::Rectangle::createAssembler
virtual Assembler_ptr createAssembler(std::string type, const DataMap &options) const
creates and returns an assembler of the requested type.
Definition: ripley/src/Rectangle.cpp:2788
speckley::Rectangle::m_origin
double m_origin[2]
origin of domain
Definition: speckley/src/Rectangle.h:388
ripley::Rectangle::m_faceCount
dim_t m_faceCount[4]
number of face elements per edge (left, right, bottom, top)
Definition: ripley/src/Rectangle.h:338
speckley::Rectangle::m_nodeId
IndexVector m_nodeId
Definition: speckley/src/Rectangle.h:413
ripley::Rectangle::operator==
virtual bool operator==(const escript::AbstractDomain &other) const
equality operator
Definition: ripley/src/Rectangle.cpp:247
ripley::Rectangle::readBinaryGrid
virtual void readBinaryGrid(escript::Data &out, std::string filename, const ReaderParameters &params) const
reads grid data from a raw binary file into a Data object
Definition: ripley/src/Rectangle.cpp:524
speckley::ReaderParameters::multiplier
std::vector< int > multiplier
Definition: speckley/src/SpeckleyDomain.h:70
ripley::RipleyDomain::addPoints
void addPoints(const std::vector< double > &coords, const std::vector< int > &tags)
Definition: ripley/src/RipleyDomain.cpp:1793
ripley::Rectangle::m_dx
double m_dx[2]
grid spacings / cell sizes of domain
Definition: ripley/src/Rectangle.h:320
speckley::Rectangle::DefaultAssembler2D
friend class DefaultAssembler2D
Definition: speckley/src/Rectangle.h:423
ripley::Rectangle::assembleGradientImpl
void assembleGradientImpl(escript::Data &out, const escript::Data &in) const
Definition: ripley/src/Rectangle.cpp:1361
speckley::Rectangle::integral_order5
void integral_order5(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:111
ripley::Rectangle::LameAssembler2D
friend class LameAssembler2D
Definition: ripley/src/Rectangle.h:55
ripley::Rectangle::m_NE
dim_t m_NE[2]
number of elements for this rank in each dimension including shared
Definition: ripley/src/Rectangle.h:326
ripley::ReducedFaceElements
Definition: Ripley.h:68
ripley::Rectangle::getConnections
virtual std::vector< IndexVector > getConnections(bool includeShared=false) const
returns occupied matrix column indices for all matrix rows
Definition: ripley/src/Rectangle.cpp:2024
ripley::Rectangle::writeBinaryGrid
virtual void writeBinaryGrid(const escript::Data &in, std::string filename, int byteOrder, int dataType) const
writes a Data object to a file in raw binary format
Definition: ripley/src/Rectangle.cpp:786
Block2::setUsed
void setUsed(unsigned char buffid)
Definition: blocktools2.cpp:214
speckley::Rectangle::assembleGradient
virtual void assembleGradient(escript::Data &out, const escript::Data &in) const
computes the gradient of 'in' and puts the result in 'out'
Definition: speckley/src/Rectangle.cpp:1144
ripley::Rectangle::getDescription
virtual std::string getDescription() const
returns a description for this domain
Definition: ripley/src/Rectangle.cpp:242
BlockGrid2
Definition: blocktools.h:204
escript::FunctionSpace::getTypeCode
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:93
ripley::Rectangle::getNumFaceElements
virtual dim_t getNumFaceElements() const
returns the number of face elements on current MPI rank
Definition: ripley/src/Rectangle.h:418
ripley::Rectangle::m_nodeDistribution
IndexVector m_nodeDistribution
Definition: ripley/src/Rectangle.h:351
speckley::Rectangle::readBinaryGridImpl
void readBinaryGridImpl(escript::Data &out, const std::string &filename, const ReaderParameters &params) const
Definition: speckley/src/Rectangle.cpp:521
speckley::SpeckleyDomain::getMPIRank
virtual int getMPIRank() const
returns the MPI rank of this processor
Definition: speckley/src/SpeckleyDomain.h:126
escript::function
FunctionSpace function(const AbstractDomain &domain)
Return a function FunctionSpace.
Definition: FunctionSpaceFactory.cpp:53
ripley::Rectangle::m_nodeId
IndexVector m_nodeId
Definition: ripley/src/Rectangle.h:346
speckley::Rectangle::readBinaryGrid
virtual void readBinaryGrid(escript::Data &out, std::string filename, const ReaderParameters &params) const
reads grid data from a raw binary file into a Data object
Definition: speckley/src/Rectangle.cpp:476
ripley::Rectangle::m_length
double m_length[2]
side lengths of domain
Definition: ripley/src/Rectangle.h:317
speckley::ReaderParameters
Structure that wraps parameters for the grid reading routines.
Definition: speckley/src/SpeckleyDomain.h:62
MPI_Request
int MPI_Request
Definition: EsysMPI.h:41
ripley::Rectangle::findNode
virtual dim_t findNode(const double *coords) const
finds the node that the given point coordinates belong to
Definition: ripley/src/Rectangle.cpp:2736
speckley::Rectangle::integral_order2
void integral_order2(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:35
speckley::Points
Definition: Speckley.h:78
escript::DataTypes::real_t_eps
real_t real_t_eps()
Returns the machine epsilon for the real_t type.
Definition: DataTypes.h:120
paso::Connector_ptr
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:48
paso::Pattern_ptr
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:48
ripley::Rectangle::m_origin
double m_origin[2]
origin of domain
Definition: ripley/src/Rectangle.h:314
ripley::Rectangle::getNumNodes
virtual dim_t getNumNodes() const
returns the number of nodes per MPI rank
Definition: ripley/src/Rectangle.h:406
ripley::RipleyDomain::getMPISize
virtual int getMPISize() const
returns the number of processors used for this domain
Definition: ripley/src/RipleyDomain.h:140
escript::Data::actsExpanded
bool actsExpanded() const
Return true if this Data is expanded or resolves to expanded. That is, if it has a separate value for...
Definition: Data.cpp:1121
escript::AbstractDomain
Base class for all escript domains.
Definition: AbstractDomain.h:56
speckley::Rectangle::m_NE
dim_t m_NE[2]
number of elements for this rank in each dimension including shared
Definition: speckley/src/Rectangle.h:400
speckley::Rectangle::ownSample
virtual bool ownSample(int fs_code, index_t id) const
returns true if this rank owns the sample id.
Definition: speckley/src/Rectangle.cpp:1043
S
#define S(_J_, _I_)
Definition: ShapeFunctions.cpp:134
speckley::Rectangle::readNcGrid
virtual void readNcGrid(escript::Data &out, std::string filename, std::string varname, const ReaderParameters &params) const
reads grid data from a netCDF file into a Data object
Definition: speckley/src/Rectangle.cpp:354
ripley::Rectangle::dump
void dump(const std::string &filename) const
dumps the mesh to a file with the given name
Definition: ripley/src/Rectangle.cpp:882
speckley::ReaderParameters::numValues
std::vector< dim_t > numValues
the number of values to read from file
Definition: speckley/src/SpeckleyDomain.h:67
ripley::Rectangle::readNcGrid
virtual void readNcGrid(escript::Data &out, std::string filename, std::string varname, const ReaderParameters &params) const
reads grid data from a netCDF file into a Data object
Definition: ripley/src/Rectangle.cpp:401
escript::Data::getExpandedVectorReference
DataTypes::RealVectorType & getExpandedVectorReference(DataTypes::real_t dummy=0)
Ensures that the Data is expanded and returns its underlying vector Does not check for exclusive writ...
Definition: Data.cpp:5844
ripley::Rectangle::readBinaryGridFromZipped
virtual void readBinaryGridFromZipped(escript::Data &out, std::string filename, const ReaderParameters &params) const
reads grid data from a compressed raw binary file into a Data object
Definition: ripley/src/Rectangle.cpp:544
escript::FileWriter::close
void close()
Definition: FileWriter.h:221
message::destbuffid
unsigned char destbuffid
Definition: blocktools.h:74
escript::DataTypes::cplx_t
std::complex< real_t > cplx_t
complex data type
Definition: DataTypes.h:76
speckley::Rectangle::m_offset
dim_t m_offset[2]
first node on this rank is at (offset0,offset1) in global mesh
Definition: speckley/src/Rectangle.h:406
ripley::Rectangle::writeBinaryGridImpl
void writeBinaryGridImpl(const escript::Data &in, const std::string &filename, int byteOrder) const
Definition: ripley/src/Rectangle.cpp:807
escript::Scalar
Data Scalar(double value, const FunctionSpace &what, bool expanded)
A collection of factory functions for creating Data objects which contain data points of various shap...
Definition: DataFactory.cpp:60
ripley::Rectangle::interpolateNodesOnElements
virtual void interpolateNodesOnElements(escript::Data &out, const escript::Data &in, bool reduced) const
interpolates data on nodes in 'in' onto (reduced) elements in 'out'
Definition: ripley/src/Rectangle.cpp:2252
message::srcbuffid
unsigned char srcbuffid
Definition: blocktools.h:73
speckley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: speckley/src/domainhelpers.h:35
ripley::ReaderParameters::dataType
int dataType
data type in the file (used by binary reader only)
Definition: ripley/src/RipleyDomain.h:93
ESYS_ASSERT
#define ESYS_ASSERT(a, b)
EsysAssert is a MACRO that will throw an exception if the boolean condition specified is false.
Definition: Assert.h:77
speckley::Rectangle::interpolateAcross
virtual void interpolateAcross(escript::Data &target, const escript::Data &source) const
interpolates data given on source onto target where source and target are given on different domains
Definition: speckley/src/Rectangle.cpp:1948
Block2::copyAllToBuffer
void copyAllToBuffer(double *src)
Definition: blocktools2.cpp:219
speckley::Rectangle::assembleCoordinates
virtual void assembleCoordinates(escript::Data &arg) const
populates the data object 'arg' with the node coordinates
Definition: speckley/src/Rectangle.cpp:1122
escript::FileWriter::writeAt
bool writeAt(std::ostringstream &oss, long offset)
Definition: FileWriter.h:196
escript::ValueError
An exception class that signals an invalid argument value.
Definition: EsysException.h:99
speckley::point_locations
const double point_locations[][11]
Definition: Speckley.h:82
speckley::Rectangle::m_length
double m_length[2]
side lengths of domain
Definition: speckley/src/Rectangle.h:391
speckley::SpeckleyException
SpeckleyException exception class.
Definition: SpeckleyException.h:40
speckley::Rectangle::integral_order10
void integral_order10(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:236
speckley::byte_swap32
char * byte_swap32(char *val)
Definition: speckley/src/system_dep.h:107
MATRIX_FORMAT_DEFAULT
#define MATRIX_FORMAT_DEFAULT
Definition: Paso.h:60
ripley::RipleyDomain::Print_Mesh_Info
virtual void Print_Mesh_Info(bool full=false) const
writes information about the mesh to standard output
Definition: ripley/src/RipleyDomain.cpp:838
ripley::Rectangle::getGridParameters
virtual boost::python::tuple getGridParameters() const
returns the tuple (origin, spacing, number_of_elements)
Definition: ripley/src/Rectangle.h:384
ripley::Rectangle::assembleCoordinates
virtual void assembleCoordinates(escript::Data &arg) const
populates the data object 'arg' with the node coordinates
Definition: ripley/src/Rectangle.cpp:1326
ripley::DECOMP_EXPAND
Definition: ripley/src/RipleyDomain.h:71
escript::DataTypes::scalarShape
static const ShapeType scalarShape
Use this instead of creating empty shape objects for scalars.
Definition: DataTypes.h:69
BlockGrid2::generateInNeighbours
void generateInNeighbours(coord_t blockx, coord_t blocky, messvec &v)
Definition: blocktools2.cpp:33
ripley::Rectangle::interpolateNodesOnFaces
virtual void interpolateNodesOnFaces(escript::Data &out, const escript::Data &in, bool reduced) const
interpolates data on nodes in 'in' onto (reduced) face elements in 'out'
Definition: ripley/src/Rectangle.cpp:2271
Block2::copyUsedFromBuffer
void copyUsedFromBuffer(double *dest)
Definition: blocktools2.cpp:232
speckley::Rectangle::createAssembler
virtual Assembler_ptr createAssembler(std::string type, const DataMap &options) const
Creates and returns an assembler of the requested type.
Definition: speckley/src/Rectangle.cpp:1925
BlockGrid2::generateOutNeighbours
void generateOutNeighbours(coord_t blockx, coord_t blocky, messvec &v)
Definition: blocktools2.cpp:66
ripley::Rectangle::assembleGradient
virtual void assembleGradient(escript::Data &out, const escript::Data &in) const
computes the gradient of 'in' and puts the result in 'out'
Definition: ripley/src/Rectangle.cpp:1348
speckley::Nodes
Definition: Speckley.h:72