escript  Revision_
ripley/src/Rectangle.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17 
18 #ifndef __RIPLEY_RECTANGLE_H__
19 #define __RIPLEY_RECTANGLE_H__
20 
21 #include <ripley/RipleyDomain.h>
22 
23 namespace ripley {
24 
29 class RIPLEY_DLL_API Rectangle: public RipleyDomain
30 {
31  template<class Scalar> friend class DefaultAssembler2D;
32  friend class WaveAssembler2D;
33  friend class LameAssembler2D;
34 public:
35 
43  Rectangle(dim_t n0, dim_t n1, double x0, double y0, double x1, double y1,
44  int d0=-1, int d1=-1,
45  const std::vector<double>& points = std::vector<double>(),
46  const std::vector<int>& tags = std::vector<int>(),
47  const TagMap& tagnamestonums = TagMap(),
49  );
50 
55  ~Rectangle();
56 
61  virtual std::string getDescription() const;
62 
66  virtual bool operator==(const escript::AbstractDomain& other) const;
67 
73  virtual void write(const std::string& filename) const;
74 
80  void dump(const std::string& filename) const;
81 
84  virtual void readNcGrid(escript::Data& out, std::string filename,
85  std::string varname, const ReaderParameters& params) const;
86 
89  virtual void readBinaryGrid(escript::Data& out, std::string filename,
90  const ReaderParameters& params) const;
91 
94  virtual void readBinaryGridFromZipped(escript::Data& out, std::string filename,
95  const ReaderParameters& params) const;
96 
99  virtual void writeBinaryGrid(const escript::Data& in,
100  std::string filename,
101  int byteOrder, int dataType) const;
102 
108  const dim_t* borrowSampleReferenceIDs(int fsType) const;
109 
114  virtual bool ownSample(int fsType, index_t id) const;
115 
122  virtual void setToNormal(escript::Data& out) const;
123 
129  virtual void setToSize(escript::Data& out) const;
130 
135  virtual dim_t getNumDataPointsGlobal() const;
136 
142  virtual void Print_Mesh_Info(const bool full=false) const;
143 
148  virtual const dim_t* getNumNodesPerDim() const { return m_NN; }
149 
154  virtual const dim_t* getNumElementsPerDim() const { return m_NE; }
155 
161  virtual const dim_t* getNumFacesPerBoundary() const { return m_faceCount; }
162 
167  virtual IndexVector getNodeDistribution() const { return m_nodeDistribution; }
168 
173  virtual const int* getNumSubdivisionsPerDim() const { return m_NX; }
174 
179  virtual double getLocalCoordinate(index_t index, int dim) const;
180 
185  virtual boost::python::tuple getGridParameters() const;
186 
191  virtual escript::Data randomFill(const escript::DataTypes::ShapeType& shape,
192  const escript::FunctionSpace& what, long seed,
193  const boost::python::tuple& filter) const;
194 
199  virtual Assembler_ptr createAssembler(std::string type,
200  const DataMap& options) const;
201 
206  const double *getLength() const { return m_length; }
207 
212  const double *getElementLength() const { return m_dx; }
213 
219  virtual RankVector getOwnerVector(int fsType) const;
220 
221 protected:
222  virtual dim_t getNumNodes() const;
223  virtual dim_t getNumElements() const;
224  virtual dim_t getNumFaceElements() const;
225  virtual dim_t getNumDOF() const;
226  virtual dim_t getNumDOFInAxis(unsigned axis) const;
227  virtual index_t getFirstInDim(unsigned axis) const;
228 
229  virtual IndexVector getDiagonalIndices(bool upperOnly) const;
230  virtual void assembleCoordinates(escript::Data& arg) const;
231  virtual void assembleGradient(escript::Data& out,
232  const escript::Data& in) const;
233  virtual void assembleIntegrate(std::vector<real_t>& integrals,
234  const escript::Data& arg) const;
235  virtual void assembleIntegrate(std::vector<cplx_t>& integrals,
236  const escript::Data& arg) const;
237  virtual std::vector<IndexVector> getConnections(bool includeShared=false) const;
238 
239 #ifdef ESYS_HAVE_TRILINOS
240  virtual esys_trilinos::const_TrilinosGraph_ptr getTrilinosGraph() const;
241 #endif
242 
243 #ifdef ESYS_HAVE_PASO
244  virtual paso::SystemMatrixPattern_ptr getPasoMatrixPattern(
245  bool reducedRowOrder, bool reducedColOrder) const;
246 #endif
247  virtual void interpolateNodesOnElements(escript::Data& out,
248  const escript::Data& in, bool reduced) const;
249  virtual void interpolateNodesOnFaces(escript::Data& out,
250  const escript::Data& in,
251  bool reduced) const;
252 
253  virtual void nodesToDOF(escript::Data& out, const escript::Data& in) const;
254  virtual dim_t getDofOfNode(dim_t node) const;
255 
256  virtual void populateSampleIds();
257  virtual void populateDofMap();
258 
259  template<typename Scalar>
260  void assembleGradientImpl(escript::Data& out,
261  const escript::Data& in) const;
262 
263  template<typename Scalar>
264  void addToMatrixAndRHS(escript::AbstractSystemMatrix* S, escript::Data& F,
265  const std::vector<Scalar>& EM_S, const std::vector<Scalar>& EM_F,
266  bool addS, bool addF, index_t firstNode, int nEq=1, int nComp=1) const;
267 
268  template<typename ValueType>
269  void readBinaryGridImpl(escript::Data& out, const std::string& filename,
270  const ReaderParameters& params) const;
271 
272 #ifdef ESYS_HAVE_BOOST_IO
273  template<typename ValueType>
274  void readBinaryGridZippedImpl(escript::Data& out,
275  const std::string& filename, const ReaderParameters& params) const;
276 #endif
277 
278  template<typename ValueType>
279  void writeBinaryGridImpl(const escript::Data& in,
280  const std::string& filename, int byteOrder) const;
281 
282  virtual dim_t findNode(const double *coords) const;
283 
284 
285  escript::Data randomFillWorker(const escript::DataTypes::ShapeType& shape,
286  long seed, const boost::python::tuple& filter) const;
287 
289  dim_t m_gNE[2];
290 
292  double m_origin[2];
293 
295  double m_length[2];
296 
298  double m_dx[2];
299 
301  int m_NX[2];
302 
304  dim_t m_NE[2];
305 
307  dim_t m_ownNE[2];
308 
310  dim_t m_NN[2];
311 
313  dim_t m_offset[2];
314 
316  dim_t m_faceCount[4];
317 
320  IndexVector m_faceOffset;
321 
323  IndexVector m_dofId;
324  IndexVector m_nodeId;
325  IndexVector m_elementId;
326  IndexVector m_faceId;
327 
328  // vector with first node id on each rank
329  IndexVector m_nodeDistribution;
330 
331  // vector that maps each node to a DOF index (used for the coupler)
332  IndexVector m_dofMap;
333 
334 #ifdef ESYS_HAVE_PASO
335  // the Paso System Matrix pattern
336  mutable paso::SystemMatrixPattern_ptr m_pattern;
337 #endif
338 
339 #ifdef ESYS_HAVE_TRILINOS
340  mutable esys_trilinos::const_TrilinosGraph_ptr m_graph;
342 #endif
343 private:
344  template<typename Scalar>
345  void assembleIntegrateImpl(std::vector<Scalar>& integrals, const escript::Data& arg) const;
346 
347  template <typename S>
348  void interpolateNodesOnElementsWorker(escript::Data& out,
349  const escript::Data& in, bool reduced, S sentinel) const;
350  template <typename S>
351  void interpolateNodesOnFacesWorker(escript::Data& out,
352  const escript::Data& in,
353  bool reduced, S sentinel) const;
354 };
355 
358 {
359  return m_dofMap[node];
360 }
361 
363 {
364  return (m_gNE[0]+1)*(m_gNE[1]+1);
365 }
366 
367 inline double Rectangle::getLocalCoordinate(index_t index, int dim) const
368 {
369  ESYS_ASSERT(dim>=0 && dim<2, "'dim' out of bounds");
370  ESYS_ASSERT(index>=0 && index<m_NN[dim], "'index' out of bounds");
371  return m_origin[dim]+m_dx[dim]*(m_offset[dim]+index);
372 }
373 
374 inline boost::python::tuple Rectangle::getGridParameters() const
375 {
376  return boost::python::make_tuple(
377  boost::python::make_tuple(m_origin[0], m_origin[1]),
378  boost::python::make_tuple(m_dx[0], m_dx[1]),
379  boost::python::make_tuple(m_gNE[0], m_gNE[1]));
380 }
381 
382 //protected
383 inline dim_t Rectangle::getNumDOF() const
384 {
385  return (m_gNE[0]+1)/m_NX[0]*(m_gNE[1]+1)/m_NX[1];
386 }
387 
388 //protected
389 inline dim_t Rectangle::getNumDOFInAxis(unsigned axis) const
390 {
391  ESYS_ASSERT(axis < m_numDim, "Invalid axis");
392  return (m_gNE[axis]+1)/m_NX[axis];
393 }
394 
395 //protected
396 inline dim_t Rectangle::getNumNodes() const
397 {
398  return m_NN[0]*m_NN[1];
399 }
400 
401 //protected
402 inline dim_t Rectangle::getNumElements() const
403 {
404  return m_NE[0]*m_NE[1];
405 }
406 
407 //protected
409 {
410  return m_faceCount[0] + m_faceCount[1] + m_faceCount[2] + m_faceCount[3];
411 }
412 
413 //protected
414 inline index_t Rectangle::getFirstInDim(unsigned axis) const
415 {
416  return m_offset[axis] == 0 ? 0 : 1;
417 }
418 
419 } // end of namespace ripley
420 
421 #endif // __RIPLEY_RECTANGLE_H__
422 
speckley::DATATYPE_INT32
Definition: speckley/src/system_dep.h:60
speckley::TagMap
std::map< std::string, int > TagMap
Definition: Speckley.h:59
MPI_Status
int MPI_Status
Definition: EsysMPI.h:44
escript::Data::getNumDataPointsPerSample
int getNumDataPointsPerSample() const
Return the number of data points per sample.
Definition: Data.h:543
ripley::ReducedElements
Definition: Ripley.h:68
escript::Data::isComplex
bool isComplex() const
True if components of this data are stored as complex.
Definition: Data.cpp:1164
ripley
Definition: ripley/src/AbstractAssembler.h:25
ripley::RipleyDomain::m_mpiInfo
escript::JMPI m_mpiInfo
Definition: ripley/src/RipleyDomain.h:785
message::sourceID
neighbourID_t sourceID
Definition: blocktools.h:71
speckley::Rectangle::getDescription
virtual std::string getDescription() const
returns a description for this domain
Definition: speckley/src/Rectangle.cpp:196
ripley::DECOMP_STRICT
Definition: ripley/src/RipleyDomain.h:74
ripley::Rectangle::m_faceId
IndexVector m_faceId
Definition: ripley/src/Rectangle.h:351
escript::DataTypes::real_t
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:76
ripley::byte_swap64
char * byte_swap64(char *val)
Definition: ripley/src/system_dep.h:114
ripley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: ripley/src/domainhelpers.h:37
ripley::Rectangle::readBinaryGridImpl
void readBinaryGridImpl(escript::Data &out, const std::string &filename, const ReaderParameters &params) const
Definition: ripley/src/Rectangle.cpp:571
message
Definition: blocktools.h:68
ripley::Rectangle::getNumDOF
virtual dim_t getNumDOF() const
returns the number of degrees of freedom per MPI rank
Definition: ripley/src/Rectangle.h:395
ripley::Rectangle::m_NN
dim_t m_NN[2]
number of nodes for this rank in each dimension
Definition: ripley/src/Rectangle.h:335
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:799
speckley::SpeckleyDomain::addPoints
void addPoints(const std::vector< double > &coords, const std::vector< int > &tags)
Definition: speckley/src/SpeckleyDomain.cpp:1146
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:1104
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:1243
ripley::RipleyDomain::m_elementTags
std::vector< int > m_elementTags
Definition: ripley/src/RipleyDomain.h:788
speckley::Rectangle::integral_order4
void integral_order4(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:88
ripley::Rectangle::m_dofMap
IndexVector m_dofMap
Definition: ripley/src/Rectangle.h:357
ripley::ReaderParameters::first
std::vector< dim_t > first
the (global) offset into the data object to start writing into
Definition: ripley/src/RipleyDomain.h:84
ripley::Rectangle::WaveAssembler2D
friend class WaveAssembler2D
Definition: ripley/src/Rectangle.h:57
ripley::Rectangle::m_ownNE
dim_t m_ownNE[2]
number of own elements for this rank in each dimension
Definition: ripley/src/Rectangle.h:332
ripley::RipleyDomain::m_faceTags
std::vector< int > m_faceTags
Definition: ripley/src/RipleyDomain.h:789
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:1107
ripley::Rectangle::m_dofId
IndexVector m_dofId
vector of sample reference identifiers
Definition: ripley/src/Rectangle.h:348
escript::Distribution_ptr
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:37
speckley::SpeckleyDomain::m_diracPointNodeIDs
IndexVector m_diracPointNodeIDs
Definition: speckley/src/SpeckleyDomain.h:764
speckley::DATATYPE_FLOAT64
Definition: speckley/src/system_dep.h:62
speckley::SpeckleyDomain::m_order
int m_order
element order (will be m_order + 1 quad points in each axis)
Definition: speckley/src/SpeckleyDomain.h:767
message::destID
neighbourID_t destID
Definition: blocktools.h:72
INDEX2
#define INDEX2(_X1_, _X2_, _N1_)
Definition: index.h:22
ripley::RipleyException
RipleyException exception class.
Definition: RipleyException.h:42
ripley::Points
Definition: Ripley.h:71
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:1205
ripley::DECOMP_ADD_ELEMENTS
Definition: ripley/src/RipleyDomain.h:72
speckley::Rectangle::WaveAssembler2D
friend class WaveAssembler2D
Definition: speckley/src/Rectangle.h:427
ripley::TagMap
std::map< std::string, int > TagMap
Definition: Ripley.h:60
RIPLEY_DLL_API
#define RIPLEY_DLL_API
Definition: ripley/src/system_dep.h:20
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:1988
ripley::factorise
void factorise(std::vector< int > &factors, int product)
Definition: ripley/src/domainhelpers.cpp:41
ripley::Rectangle::m_gNE
dim_t m_gNE[2]
total number of elements in each dimension
Definition: ripley/src/Rectangle.h:314
ripley::DATATYPE_FLOAT64
Definition: ripley/src/system_dep.h:61
speckley::Rectangle::m_faceCount
dim_t m_faceCount[4]
number of face elements per edge (left, right, bottom, top)
Definition: speckley/src/Rectangle.h:412
speckley::Rectangle::interpolateElementsOnNodesWorker
void interpolateElementsOnNodesWorker(escript::Data &out, const escript::Data &in) const
Definition: speckley/src/Rectangle.cpp:1594
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:1062
ripley::DATATYPE_INT32
Definition: ripley/src/system_dep.h:59
escript::NotImplementedError
An exception class for features which are not (yet) implemented.
Definition: EsysException.h:91
ripley::Rectangle::interpolateNodesOnFacesWorker
void interpolateNodesOnFacesWorker(escript::Data &out, const escript::Data &in, bool reduced, S sentinel) const
Definition: ripley/src/Rectangle.cpp:2364
speckley::Rectangle::m_NX
int m_NX[2]
number of spatial subdivisions
Definition: speckley/src/Rectangle.h:400
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:38
ripley::Rectangle::getDofOfNode
virtual dim_t getDofOfNode(dim_t node) const
Definition: ripley/src/Rectangle.h:369
ripley::Nodes
Definition: Ripley.h:65
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:1056
ripley::ReducedDegreesOfFreedom
Definition: Ripley.h:64
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:1067
escript::Data::getNumberOfTaggedValues
size_t getNumberOfTaggedValues() const
For tagged Data returns the number of tags with values. For non-tagged data will return 0 (even Data ...
Definition: Data.cpp:5863
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:379
ripley::Elements
Definition: Ripley.h:67
escript::FileWriter
Definition: FileWriter.h:41
escript::DataTypes::DataVectorAlt< real_t >
escript::randomFillArray
void randomFillArray(long seed, double *array, size_t n)
Definition: Random.cpp:74
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:876
speckley::Rectangle::m_nodeDistribution
IndexVector m_nodeDistribution
Definition: speckley/src/Rectangle.h:420
speckley::SpeckleyDomain::m_nodeTags
std::vector< int > m_nodeTags
Definition: speckley/src/SpeckleyDomain.h:761
speckley::ReaderParameters::byteOrder
int byteOrder
byte order in the file (used by binary reader only)
Definition: speckley/src/SpeckleyDomain.h:76
speckley::Rectangle::m_elementId
IndexVector m_elementId
Definition: speckley/src/Rectangle.h:417
speckley::Rectangle::interpolateNodesOnElementsWorker
void interpolateNodesOnElementsWorker(escript::Data &out, const escript::Data &in, bool reduced) const
Definition: speckley/src/Rectangle.cpp:1441
ripley::DegreesOfFreedom
Definition: Ripley.h:63
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:52
speckley::Rectangle::integral_order3
void integral_order3(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:63
ripley::Rectangle::randomFillWorker
escript::Data randomFillWorker(const escript::DataTypes::ShapeType &shape, long seed, const boost::python::tuple &filter) const
Definition: ripley/src/Rectangle.cpp:2583
ripley::Rectangle::getDiagonalIndices
virtual IndexVector getDiagonalIndices(bool upperOnly) const
returns the indices of the occupied matrix diagonals
Definition: ripley/src/Rectangle.cpp:1765
speckley::SpeckleyDomain::m_numDim
int m_numDim
Definition: speckley/src/SpeckleyDomain.h:757
ripley::BYTEORDER_NATIVE
Definition: ripley/src/system_dep.h:46
ripley::byte_swap32
char * byte_swap32(char *val)
Definition: ripley/src/system_dep.h:107
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:1583
ripley::ReaderParameters::byteOrder
int byteOrder
byte order in the file (used by binary reader only)
Definition: ripley/src/RipleyDomain.h:93
ripley::RipleyDomain::m_diracPointNodeIDs
IndexVector m_diracPointNodeIDs
Definition: ripley/src/RipleyDomain.h:791
ripley::ReaderParameters::numValues
std::vector< dim_t > numValues
the number of values to read from file
Definition: ripley/src/RipleyDomain.h:86
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:1943
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:1025
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:704
ripley::ReducedNodes
Definition: Ripley.h:66
ripley::Rectangle::populateSampleIds
virtual void populateSampleIds()
Definition: ripley/src/Rectangle.cpp:1872
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:1364
speckley::ReaderParameters::first
std::vector< dim_t > first
the (global) offset into the data object to start writing into
Definition: speckley/src/SpeckleyDomain.h:67
escript::FunctionSpace
Definition: FunctionSpace.h:47
ripley::RipleyDomain::MPIBarrier
virtual void MPIBarrier() const
if compiled for MPI then executes an MPI_Barrier, else does nothing
Definition: ripley/src/RipleyDomain.h:154
speckley::Rectangle::integral_order6
void integral_order6(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:138
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:498
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:1877
escript::Data::getFunctionSpace
const FunctionSpace & getFunctionSpace() const
Return the function space.
Definition: Data.h:462
message::tag
int tag
Definition: blocktools.h:73
escript::FileWriter::openFile
bool openFile(std::string filename, size_t initialSize=0, bool binary=false, bool append=false)
Definition: FileWriter.h:74
speckley::probeInterpolationAcross
bool probeInterpolationAcross(int fsType_source, const escript::AbstractDomain &domain, int fsType_target, int dim)
Definition: CrossDomainCoupler.cpp:31
ripley::Rectangle::m_faceOffset
IndexVector m_faceOffset
Definition: ripley/src/Rectangle.h:345
escript::Distribution
Definition: Distribution.h:44
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:1787
ripley::Rectangle::m_elementId
IndexVector m_elementId
Definition: ripley/src/Rectangle.h:350
ripley::Rectangle::getNumDataPointsGlobal
virtual dim_t getNumDataPointsGlobal() const
returns the number of data points summed across all MPI processes
Definition: ripley/src/Rectangle.h:374
speckley::BYTEORDER_NATIVE
Definition: speckley/src/system_dep.h:47
ripley::RipleyDomain::m_nodeTags
std::vector< int > m_nodeTags
Definition: ripley/src/RipleyDomain.h:787
speckley
Definition: AbstractAssembler.cpp:18
ripley::DATATYPE_FLOAT32
Definition: ripley/src/system_dep.h:60
speckley::Rectangle::getNumNodes
virtual dim_t getNumNodes() const
returns the number of nodes per MPI rank
Definition: speckley/src/Rectangle.h:452
ripley::RankVector
std::vector< int > RankVector
Definition: Ripley.h:59
paso::util::copy
void copy(dim_t N, double *out, const double *in)
out = in
Definition: PasoUtil.h:113
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:205
Block2::getOutBuffer
double * getOutBuffer(unsigned char subx, unsigned char suby)
Definition: blocktools2.cpp:100
ripley::Rectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Rectangle.h:41
ripley::Rectangle::populateDofMap
virtual void populateDofMap()
Definition: ripley/src/Rectangle.cpp:2087
speckley::Rectangle::reduceElements
virtual void reduceElements(escript::Data &out, const escript::Data &in) const
interpolates from Element -> ReducedElement
Definition: speckley/src/Rectangle.cpp:1378
speckley::Rectangle::populateSampleIds
void populateSampleIds()
Definition: speckley/src/Rectangle.cpp:1287
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:63
speckley::SpeckleyDomain::m_elementTags
std::vector< int > m_elementTags
Definition: speckley/src/SpeckleyDomain.h:762
ripley::RipleyDomain
RipleyDomain extends the AbstractContinuousDomain interface for the Ripley library and is the base cl...
Definition: ripley/src/RipleyDomain.h:114
speckley::Rectangle::m_NN
dim_t m_NN[2]
number of nodes for this rank in each dimension
Definition: speckley/src/Rectangle.h:406
ripley::RipleyDomain::m_numDim
int m_numDim
Definition: ripley/src/RipleyDomain.h:783
escript::IOError
An exception class for Input/Output errors.
Definition: EsysException.h:81
ripley::Rectangle::m_NX
int m_NX[2]
number of spatial subdivisions
Definition: ripley/src/Rectangle.h:326
speckley::Rectangle::writeBinaryGridImpl
void writeBinaryGridImpl(const escript::Data &in, const std::string &filename, int byteOrder) const
Definition: speckley/src/Rectangle.cpp:820
INDEX3
#define INDEX3(_X1_, _X2_, _X3_, _N1_, _N2_)
Definition: index.h:24
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:90
escript::DataTypes::ShapeType
std::vector< int > ShapeType
The shape of a single datapoint.
Definition: DataTypes.h:68
speckley::ReaderParameters::reverse
std::vector< int > reverse
if non-zero, values are written from last index to first index
Definition: speckley/src/SpeckleyDomain.h:74
speckley::byte_swap64
char * byte_swap64(char *val)
Definition: speckley/src/system_dep.h:115
speckley::Rectangle::integral_order9
void integral_order9(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:213
escript::AbstractSystemMatrix
Base class for escript system matrices.
Definition: AbstractSystemMatrix.h:55
speckley::Rectangle::~Rectangle
~Rectangle()
Destructor.
Definition: speckley/src/Rectangle.cpp:188
speckley::Rectangle::m_gNE
dim_t m_gNE[2]
total number of elements in each dimension
Definition: speckley/src/Rectangle.h:388
ripley::Rectangle::assembleIntegrateImpl
void assembleIntegrateImpl(std::vector< Scalar > &integrals, const escript::Data &arg) const
Definition: ripley/src/Rectangle.cpp:1596
speckley::DATATYPE_FLOAT32
Definition: speckley/src/system_dep.h:61
speckley::SpeckleyDomain::m_mpiInfo
escript::JMPI m_mpiInfo
Definition: speckley/src/SpeckleyDomain.h:759
Block2
Definition: blocktools.h:225
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:1953
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:881
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:426
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:87
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:428
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:1429
escript::DataTypes::noValues
int noValues(const ShapeType &shape)
Calculate the number of values in a datapoint with the given shape.
Definition: DataTypes.cpp:90
speckley::SpeckleyDomain::getMPISize
virtual int getMPISize() const
returns the number of processors used for this domain
Definition: speckley/src/SpeckleyDomain.h:122
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:879
speckley::factorise
void factorise(std::vector< int > &factors, int product)
Definition: speckley/src/domainhelpers.cpp:42
paso::SystemMatrixPattern
Definition: SystemMatrixPattern.h:57
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:1030
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:62
ripley::Rectangle::~Rectangle
~Rectangle()
Destructor.
Definition: ripley/src/Rectangle.cpp:240
speckley::SpeckleyDomain
SpeckleyDomain extends the AbstractContinuousDomain interface for the Speckley library and is the bas...
Definition: speckley/src/SpeckleyDomain.h:97
ripley::ReaderParameters::multiplier
std::vector< int > multiplier
Definition: ripley/src/RipleyDomain.h:89
speckley::ReducedElements
Definition: Speckley.h:77
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:116
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:566
speckley::SpeckleyDomain::MPIBarrier
virtual void MPIBarrier() const
if compiled for MPI then executes an MPI_Barrier, else does nothing
Definition: speckley/src/SpeckleyDomain.h:134
speckley::Rectangle::m_dx
double m_dx[2]
grid spacings / cell sizes of domain
Definition: speckley/src/Rectangle.h:397
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:1249
Block2::getInBuffer
double * getInBuffer(unsigned char subx, unsigned char suby)
Definition: blocktools2.cpp:110
ripley::doublyLink
void doublyLink(std::vector< ripley::IndexVector > &va, std::vector< ripley::IndexVector > &vb, int a, int b)
Definition: ripley/src/domainhelpers.h:62
globalNodeId
#define globalNodeId(x, y)
messvec
std::vector< message > messvec
Definition: blocktools.h:78
ripley::FaceElements
Definition: Ripley.h:69
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:554
ripley::Rectangle::getNumDOFInAxis
virtual dim_t getNumDOFInAxis(unsigned axis) const
Definition: ripley/src/Rectangle.h:401
ripley::DefaultAssembler2D
Definition: ripley/src/DefaultAssembler2D.h:37
ripley::RipleyDomain::getDecompositionPolicy
static DecompositionPolicy getDecompositionPolicy()
Definition: ripley/src/RipleyDomain.cpp:57
speckley::Rectangle
Rectangle is the 2-dimensional implementation of a SpeckleyDomain.
Definition: speckley/src/Rectangle.h:45
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:2227
speckley::Rectangle::integral_order8
void integral_order8(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:188
speckley::RipleyCoupler
Definition: CrossDomainCoupler.h:41
ripley::Rectangle::getNumElements
virtual dim_t getNumElements() const
returns the number of elements per MPI rank
Definition: ripley/src/Rectangle.h:414
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:1144
speckley::DegreesOfFreedom
Definition: Speckley.h:72
ripley::RipleyDomain::getContinuousFunctionCode
virtual int getContinuousFunctionCode() const
returns a continuous FunctionSpace code
Definition: ripley/src/RipleyDomain.h:412
ripley::RipleyDomain::updateTagsInUse
void updateTagsInUse(int fsType) const
Definition: ripley/src/RipleyDomain.cpp:1268
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:225
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:1311
speckley::Elements
Definition: Speckley.h:76
speckley::Rectangle::interpolateFromCorners
void interpolateFromCorners(escript::Data &out) const
Definition: speckley/src/Rectangle.cpp:758
speckley::SpeckleyDomain::updateTagsInUse
void updateTagsInUse(int fsType) const
Definition: speckley/src/SpeckleyDomain.cpp:856
speckley::Rectangle::integral_order7
void integral_order7(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:163
ripley::ReaderParameters
Structure that wraps parameters for the grid reading routines.
Definition: ripley/src/RipleyDomain.h:81
speckley::Rectangle::getNumDataPointsGlobal
virtual dim_t getNumDataPointsGlobal() const
returns the number of data points summed across all MPI processes
Definition: speckley/src/Rectangle.h:423
MPI_DOUBLE
#define MPI_DOUBLE
Definition: EsysMPI.h:46
escript::SubWorld_ptr
boost::shared_ptr< SubWorld > SubWorld_ptr
Definition: SubWorld.h:159
speckley::Rectangle::getNumElements
virtual dim_t getNumElements() const
returns the number of elements per MPI rank
Definition: speckley/src/Rectangle.h:458
speckley::ReaderParameters::dataType
int dataType
data type in the file (used by binary reader only)
Definition: speckley/src/SpeckleyDomain.h:78
Block2::getBuffSize
size_t getBuffSize(unsigned char subx, unsigned char suby)
Definition: blocktools2.cpp:120
speckley::Rectangle::operator==
virtual bool operator==(const escript::AbstractDomain &other) const
equality operator
Definition: speckley/src/Rectangle.cpp:201
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:1581
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:85
ripley::Rectangle::interpolateNodesOnElementsWorker
void interpolateNodesOnElementsWorker(escript::Data &out, const escript::Data &in, bool reduced, S sentinel) const
Definition: ripley/src/Rectangle.cpp:2301
ripley::IndexVector
std::vector< index_t > IndexVector
Definition: Ripley.h:57
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:338
ripley::ReaderParameters::reverse
std::vector< int > reverse
if non-zero, values are written from last index to first index
Definition: ripley/src/RipleyDomain.h:91
speckley::Rectangle::assembleIntegrateWorker
void assembleIntegrateWorker(std::vector< Scalar > &integrals, const escript::Data &arg) const
Definition: speckley/src/Rectangle.cpp:1220
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:2798
speckley::Rectangle::m_origin
double m_origin[2]
origin of domain
Definition: speckley/src/Rectangle.h:391
ripley::Rectangle::m_faceCount
dim_t m_faceCount[4]
number of face elements per edge (left, right, bottom, top)
Definition: ripley/src/Rectangle.h:341
speckley::Rectangle::m_nodeId
IndexVector m_nodeId
Definition: speckley/src/Rectangle.h:416
ripley::Rectangle::operator==
virtual bool operator==(const escript::AbstractDomain &other) const
equality operator
Definition: ripley/src/Rectangle.cpp:249
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:526
speckley::ReaderParameters::multiplier
std::vector< int > multiplier
Definition: speckley/src/SpeckleyDomain.h:72
ripley::RipleyDomain::addPoints
void addPoints(const std::vector< double > &coords, const std::vector< int > &tags)
Definition: ripley/src/RipleyDomain.cpp:1811
ripley::Rectangle::m_dx
double m_dx[2]
grid spacings / cell sizes of domain
Definition: ripley/src/Rectangle.h:323
speckley::Rectangle::DefaultAssembler2D
friend class DefaultAssembler2D
Definition: speckley/src/Rectangle.h:426
ripley::Rectangle::assembleGradientImpl
void assembleGradientImpl(escript::Data &out, const escript::Data &in) const
Definition: ripley/src/Rectangle.cpp:1363
speckley::Rectangle::integral_order5
void integral_order5(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:113
ripley::Rectangle::LameAssembler2D
friend class LameAssembler2D
Definition: ripley/src/Rectangle.h:58
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:329
ripley::ReducedFaceElements
Definition: Ripley.h:70
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:2034
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:788
Block2::setUsed
void setUsed(unsigned char buffid)
Definition: blocktools2.cpp:215
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:1146
ripley::Rectangle::getDescription
virtual std::string getDescription() const
returns a description for this domain
Definition: ripley/src/Rectangle.cpp:244
BlockGrid2
Definition: blocktools.h:205
escript::FunctionSpace::getTypeCode
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:94
ripley::Rectangle::getNumFaceElements
virtual dim_t getNumFaceElements() const
returns the number of face elements on current MPI rank
Definition: ripley/src/Rectangle.h:420
ripley::Rectangle::m_nodeDistribution
IndexVector m_nodeDistribution
Definition: ripley/src/Rectangle.h:354
speckley::Rectangle::readBinaryGridImpl
void readBinaryGridImpl(escript::Data &out, const std::string &filename, const ReaderParameters &params) const
Definition: speckley/src/Rectangle.cpp:523
speckley::SpeckleyDomain::getMPIRank
virtual int getMPIRank() const
returns the MPI rank of this processor
Definition: speckley/src/SpeckleyDomain.h:128
escript::function
FunctionSpace function(const AbstractDomain &domain)
Return a function FunctionSpace.
Definition: FunctionSpaceFactory.cpp:55
ripley::Rectangle::m_nodeId
IndexVector m_nodeId
Definition: ripley/src/Rectangle.h:349
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:478
ripley::Rectangle::m_length
double m_length[2]
side lengths of domain
Definition: ripley/src/Rectangle.h:320
speckley::ReaderParameters
Structure that wraps parameters for the grid reading routines.
Definition: speckley/src/SpeckleyDomain.h:64
MPI_Request
int MPI_Request
Definition: EsysMPI.h:42
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:2746
speckley::Rectangle::integral_order2
void integral_order2(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:37
speckley::Points
Definition: Speckley.h:80
escript::DataTypes::real_t_eps
real_t real_t_eps()
Returns the machine epsilon for the real_t type.
Definition: DataTypes.h:123
paso::Connector_ptr
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:50
paso::Pattern_ptr
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:50
ripley::Rectangle::m_origin
double m_origin[2]
origin of domain
Definition: ripley/src/Rectangle.h:317
ripley::Rectangle::getNumNodes
virtual dim_t getNumNodes() const
returns the number of nodes per MPI rank
Definition: ripley/src/Rectangle.h:408
ripley::RipleyDomain::getMPISize
virtual int getMPISize() const
returns the number of processors used for this domain
Definition: ripley/src/RipleyDomain.h:142
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:1122
escript::AbstractDomain
Base class for all escript domains.
Definition: AbstractDomain.h:62
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:403
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:1045
escript::getMPIRankWorld
int getMPIRankWorld()
returns the MPI processor number within MPI_COMM_WORLD
Definition: Utils.cpp:103
S
#define S(_J_, _I_)
Definition: ShapeFunctions.cpp:136
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:356
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:884
speckley::ReaderParameters::numValues
std::vector< dim_t > numValues
the number of values to read from file
Definition: speckley/src/SpeckleyDomain.h:69
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:403
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:5845
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:546
escript::FileWriter::close
void close()
Definition: FileWriter.h:224
message::destbuffid
unsigned char destbuffid
Definition: blocktools.h:75
escript::DataTypes::cplx_t
std::complex< real_t > cplx_t
complex data type
Definition: DataTypes.h:79
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:409
ripley::Rectangle::writeBinaryGridImpl
void writeBinaryGridImpl(const escript::Data &in, const std::string &filename, int byteOrder) const
Definition: ripley/src/Rectangle.cpp:809
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:62
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:2262
message::srcbuffid
unsigned char srcbuffid
Definition: blocktools.h:74
speckley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: speckley/src/domainhelpers.h:37
ripley::ReaderParameters::dataType
int dataType
data type in the file (used by binary reader only)
Definition: ripley/src/RipleyDomain.h:95
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:78
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:1954
Block2::copyAllToBuffer
void copyAllToBuffer(double *src)
Definition: blocktools2.cpp:220
speckley::Rectangle::assembleCoordinates
virtual void assembleCoordinates(escript::Data &arg) const
populates the data object 'arg' with the node coordinates
Definition: speckley/src/Rectangle.cpp:1124
escript::FileWriter::writeAt
bool writeAt(std::ostringstream &oss, long offset)
Definition: FileWriter.h:199
escript::ValueError
An exception class that signals an invalid argument value.
Definition: EsysException.h:101
speckley::point_locations
const double point_locations[][11]
Definition: Speckley.h:84
speckley::Rectangle::m_length
double m_length[2]
side lengths of domain
Definition: speckley/src/Rectangle.h:394
speckley::SpeckleyException
SpeckleyException exception class.
Definition: SpeckleyException.h:42
speckley::Rectangle::integral_order10
void integral_order10(std::vector< Scalar > &, const escript::Data &) const
Definition: RectangleIntegrals.cpp:238
speckley::byte_swap32
char * byte_swap32(char *val)
Definition: speckley/src/system_dep.h:108
MATRIX_FORMAT_DEFAULT
#define MATRIX_FORMAT_DEFAULT
Definition: Paso.h:61
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:856
ripley::Rectangle::getGridParameters
virtual boost::python::tuple getGridParameters() const
returns the tuple (origin, spacing, number_of_elements)
Definition: ripley/src/Rectangle.h:386
ripley::Rectangle::assembleCoordinates
virtual void assembleCoordinates(escript::Data &arg) const
populates the data object 'arg' with the node coordinates
Definition: ripley/src/Rectangle.cpp:1328
ripley::DECOMP_EXPAND
Definition: ripley/src/RipleyDomain.h:73
escript::DataTypes::scalarShape
static const ShapeType scalarShape
Use this instead of creating empty shape objects for scalars.
Definition: DataTypes.h:72
BlockGrid2::generateInNeighbours
void generateInNeighbours(coord_t blockx, coord_t blocky, messvec &v)
Definition: blocktools2.cpp:34
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:2281
Block2::copyUsedFromBuffer
void copyUsedFromBuffer(double *dest)
Definition: blocktools2.cpp:233
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:1931
BlockGrid2::generateOutNeighbours
void generateOutNeighbours(coord_t blockx, coord_t blocky, messvec &v)
Definition: blocktools2.cpp:67
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:1350
speckley::Nodes
Definition: Speckley.h:74