MultiRectangle.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
#ifndef __RIPLEY_MULTIRECTANGLE_H__
#define __RIPLEY_MULTIRECTANGLE_H__
#include <ripley/Rectangle.h>
namespace ripley {
class RIPLEY_DLL_API MultiRectangle: public Rectangle
{
template<class Scalar> friend class DefaultAssembler2D;
friend class WaveAssembler2D;
friend class LameAssembler2D;
public:
MultiRectangle(dim_t n0, dim_t n1, double x0, double y0, double x1, double y1,
int d0=-1, int d1=-1,
const std::vector<double>& points = std::vector<double>(),
const std::vector<int>& tags = std::vector<int>(),
const TagMap& tagnamestonums = TagMap(),
escript::SubWorld_ptr w=escript::SubWorld_ptr(),
unsigned int subdivisions = 1
);
~MultiRectangle();
virtual void interpolateAcross(escript::Data& target,
const escript::Data& source) const;
void validateInterpolationAcross(int fsType_source,
const escript::AbstractDomain& domain, int fsType_target) const;
virtual std::string getDescription() const;
virtual bool operator==(const escript::AbstractDomain& other) const;
void dump(const std::string& filename) const;
virtual void readNcGrid(escript::Data& out, std::string filename,
std::string varname, const ReaderParameters& params) const;
virtual void readBinaryGrid(escript::Data& out, std::string filename,
const ReaderParameters& params) const;
virtual void readBinaryGridFromZipped(escript::Data& out, std::string filename,
const ReaderParameters& params) const;
virtual void writeBinaryGrid(const escript::Data& in,
std::string filename,
int byteOrder, int dataType) const;
virtual unsigned int getNumSubdivisionsPerElement() const { return m_subdivisions; }
virtual RankVector getOwnerVector(int fsType) const;
protected:
virtual void interpolateNodesToNodesFiner(const escript::Data& source, escript::Data& target, const MultiRectangle& other) const;
virtual void interpolateNodesToElementsFiner(const escript::Data& source, escript::Data& target, const MultiRectangle& other) const;
virtual void interpolateElementsToElementsCoarser(const escript::Data& source, escript::Data& target, const MultiRectangle& other) const;
virtual void interpolateElementsToElementsFiner(const escript::Data& source, escript::Data& target, const MultiRectangle& other) const;
virtual void interpolateReducedToElementsFiner(const escript::Data& source, escript::Data& target, const MultiRectangle& other) const;
virtual void interpolateReducedToReducedFiner(const escript::Data& source, escript::Data& target, const MultiRectangle& other) const;
#ifdef ESYS_HAVE_PASO
virtual paso::SystemMatrixPattern_ptr getPasoMatrixPattern(
bool reducedRowOrder,
bool reducedColOrder) const;
#endif
virtual index_t getFirstInDim(unsigned axis) const;
virtual void populateSampleIds();
virtual dim_t getNumDOFInAxis(unsigned axis) const;
virtual dim_t getNumDOF() const;
virtual void populateDofMap();
virtual dim_t findNode(const double *coords) const;
private:
mutable std::vector<IndexVector> m_colIndices;
mutable std::vector<IndexVector> m_rowIndices;
unsigned int m_subdivisions;
template <typename S>
void interpolateNodesToNodesFinerWorker(const escript::Data& source, escript::Data& target, const MultiRectangle& other, S sentinel) const;
template <typename S>
void interpolateNodesToElementsFinerWorker(const escript::Data& source, escript::Data& target, const MultiRectangle& other, S sentinel) const;
template <typename S>
void interpolateElementsToElementsCoarserWorker(const escript::Data& source, escript::Data& target, const MultiRectangle& other, S sentinel) const;
template <typename S>
void interpolateElementsToElementsFinerWorker(const escript::Data& source, escript::Data& target, const MultiRectangle& other, S sentinel) const;
template <typename S>
void interpolateReducedToElementsFinerWorker(const escript::Data& source, escript::Data& target, const MultiRectangle& other, S sentinel) const;
template <typename S>
void interpolateReducedToReducedFinerWorker(const escript::Data& source, escript::Data& target, const MultiRectangle& other, S sentinel) const;
};
//protected
inline dim_t MultiRectangle::getNumDOF() const
{
return getNumDOFInAxis(0)*getNumDOFInAxis(1);
}
//protected
inline dim_t MultiRectangle::getNumDOFInAxis(unsigned axis) const
{
ESYS_ASSERT(axis < m_numDim, "Invalid axis");
dim_t res = m_ownNE[axis] + 1;
if (m_offset[axis] + m_NE[axis] < m_gNE[axis]) {
res--;
}
return res;
}
//protected
index_t MultiRectangle::getFirstInDim(unsigned axis) const
{
return m_offset[axis] == 0 ? 0 : m_subdivisions;
}
} // end of namespace ripley
#endif // __RIPLEY_MULTIRECTANGLE_H__
ripley::MultiRectangle::getNumDOFInAxis
virtual dim_t getNumDOFInAxis(unsigned axis) const
Definition: MultiRectangle.h:191
ripley::MultiRectangle::m_rowIndices
std::vector< IndexVector > m_rowIndices
Definition: MultiRectangle.h:176
ripley::ReducedElements
@ ReducedElements
Definition: Ripley.h:72
escript::Data::isComplex
bool isComplex() const
True if components of this data are stored as complex.
Definition: Data.cpp:1160
ripley
Definition: ripley/src/AbstractAssembler.h:26
ripley::RipleyDomain::m_mpiInfo
escript::JMPI m_mpiInfo
Definition: ripley/src/RipleyDomain.h:787
ripley::RipleyDomain::getMPIComm
MPI_Comm getMPIComm() const
returns the MPI communicator
Definition: ripley/src/RipleyDomain.h:172
ripley::Rectangle::m_faceId
IndexVector m_faceId
Definition: ripley/src/Rectangle.h:354
escript::DataTypes::real_t
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:79
ripley::Rectangle::m_NN
dim_t m_NN[2]
number of nodes for this rank in each dimension
Definition: ripley/src/Rectangle.h:338
ripley::MultiRectangle::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: MultiRectangle.cpp:566
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:1105
ripley::Rectangle::getNumElementsPerDim
virtual const dim_t * getNumElementsPerDim() const
returns the number of elements per MPI rank in each dimension
Definition: ripley/src/Rectangle.h:182
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:1239
ripley::RipleyDomain::m_elementTags
std::vector< int > m_elementTags
Definition: ripley/src/RipleyDomain.h:790
ripley::Rectangle::m_dofMap
IndexVector m_dofMap
Definition: ripley/src/Rectangle.h:360
ripley::Rectangle::m_ownNE
dim_t m_ownNE[2]
number of own elements for this rank in each dimension
Definition: ripley/src/Rectangle.h:335
ripley::RipleyDomain::m_faceTags
std::vector< int > m_faceTags
Definition: ripley/src/RipleyDomain.h:791
ripley::Rectangle::m_dofId
IndexVector m_dofId
vector of sample reference identifiers
Definition: ripley/src/Rectangle.h:351
escript::Distribution_ptr
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:39
ripley::MultiRectangle::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: MultiRectangle.cpp:454
INDEX2
#define INDEX2(_X1_, _X2_, _N1_)
Definition: index.h:23
ripley::RipleyException
RipleyException exception class.
Definition: RipleyException.h:44
escript::Data::getDomain
const_Domain_ptr getDomain() const
Return the domain.
Definition: Data.h:487
ripley::TagMap
std::map< std::string, int > TagMap
Definition: Ripley.h:64
RIPLEY_DLL_API
#define RIPLEY_DLL_API
Definition: ripley/src/system_dep.h:21
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:1989
ripley::MultiRectangle::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: MultiRectangle.cpp:979
ripley::Rectangle::m_gNE
dim_t m_gNE[2]
total number of elements in each dimension
Definition: ripley/src/Rectangle.h:317
ripley::MultiRectangle::interpolateElementsToElementsFiner
virtual void interpolateElementsToElementsFiner(const escript::Data &source, escript::Data &target, const MultiRectangle &other) const
Definition: MultiRectangle.cpp:390
ripley::Nodes
@ Nodes
Definition: Ripley.h:69
ripley::ReducedDegreesOfFreedom
@ ReducedDegreesOfFreedom
Definition: Ripley.h:68
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:381
ripley::Elements
@ Elements
Definition: Ripley.h:71
SECOND_QUAD
#define SECOND_QUAD
Definition: MultiRectangle.cpp:27
ripley::Rectangle::getLength
const double * getLength() const
returns the lengths of the domain
Definition: ripley/src/Rectangle.h:234
ripley::DegreesOfFreedom
@ DegreesOfFreedom
Definition: Ripley.h:67
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:54
ripley::MultiRectangle::interpolateElementsToElementsCoarserWorker
void interpolateElementsToElementsCoarserWorker(const escript::Data &source, escript::Data &target, const MultiRectangle &other, S sentinel) const
Definition: MultiRectangle.cpp:339
ripley::MultiRectangle::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: MultiRectangle.cpp:574
ripley::RipleyDomain::m_diracPointNodeIDs
IndexVector m_diracPointNodeIDs
Definition: ripley/src/RipleyDomain.h:793
ripley::ReducedNodes
@ ReducedNodes
Definition: Ripley.h:70
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:1360
ripley::MultiRectangle::populateDofMap
virtual void populateDofMap()
Definition: MultiRectangle.cpp:589
ripley::MultiRectangle::interpolateElementsToElementsCoarser
virtual void interpolateElementsToElementsCoarser(const escript::Data &source, escript::Data &target, const MultiRectangle &other) const
Definition: MultiRectangle.cpp:321
ripley::MultiRectangle::populateSampleIds
virtual void populateSampleIds()
Definition: MultiRectangle.cpp:870
escript::Data::getFunctionSpace
const FunctionSpace & getFunctionSpace() const
Return the function space.
Definition: Data.h:463
ripley::Rectangle::m_faceOffset
IndexVector m_faceOffset
Definition: ripley/src/Rectangle.h:348
escript::Distribution
Definition: Distribution.h:46
ripley::Rectangle::m_elementId
IndexVector m_elementId
Definition: ripley/src/Rectangle.h:353
ripley::Rectangle::getNumDataPointsGlobal
virtual dim_t getNumDataPointsGlobal() const
returns the number of data points summed across all MPI processes
Definition: ripley/src/Rectangle.h:376
ripley::RipleyDomain::m_nodeTags
std::vector< int > m_nodeTags
Definition: ripley/src/RipleyDomain.h:789
ripley::RankVector
std::vector< int > RankVector
Definition: Ripley.h:63
ripley::MultiRectangle::getDescription
virtual std::string getDescription() const
returns a description for this domain
Definition: MultiRectangle.cpp:530
ripley::Rectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Rectangle.h:43
ripley::MultiRectangle::interpolateNodesToNodesFiner
virtual void interpolateNodesToNodesFiner(const escript::Data &source, escript::Data &target, const MultiRectangle &other) const
Definition: MultiRectangle.cpp:123
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:64
ripley::RipleyDomain::m_numDim
int m_numDim
Definition: ripley/src/RipleyDomain.h:785
ripley::Rectangle::m_NX
int m_NX[2]
number of spatial subdivisions
Definition: ripley/src/Rectangle.h:329
INDEX3
#define INDEX3(_X1_, _X2_, _X3_, _N1_, _N2_)
Definition: index.h:25
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:93
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:1954
ripley::MultiRectangle::interpolateNodesToElementsFiner
virtual void interpolateNodesToElementsFiner(const escript::Data &source, escript::Data &target, const MultiRectangle &other) const
Definition: MultiRectangle.cpp:265
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:88
ripley::MultiRectangle::getNumSubdivisionsPerElement
virtual unsigned int getNumSubdivisionsPerElement() const
returns the number of times each root element has been subdivided
Definition: MultiRectangle.h:143
ripley::MultiRectangle::interpolateReducedToElementsFinerWorker
void interpolateReducedToElementsFinerWorker(const escript::Data &source, escript::Data &target, const MultiRectangle &other, S sentinel) const
Definition: MultiRectangle.cpp:189
paso::SystemMatrixPattern
Definition: SystemMatrixPattern.h:59
ripley::MultiRectangle::operator==
virtual bool operator==(const escript::AbstractDomain &other) const
equality operator
Definition: MultiRectangle.cpp:535
FIRST_QUAD
#define FIRST_QUAD
Definition: MultiRectangle.cpp:26
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:63
ripley::MultiRectangle::~MultiRectangle
~MultiRectangle()
Destructor.
Definition: MultiRectangle.cpp:80
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:117
ripley::MultiRectangle::interpolateNodesToElementsFinerWorker
void interpolateNodesToElementsFinerWorker(const escript::Data &source, escript::Data &target, const MultiRectangle &other, S sentinel) const
Definition: MultiRectangle.cpp:283
ripley::doublyLink
void doublyLink(std::vector< ripley::IndexVector > &va, std::vector< ripley::IndexVector > &vb, int a, int b)
Definition: ripley/src/domainhelpers.h:64
ripley::Rectangle::getNumSubdivisionsPerDim
virtual const int * getNumSubdivisionsPerDim() const
returns the number of spatial subdivisions in each dimension
Definition: ripley/src/Rectangle.h:201
ripley::MultiRectangle::validateInterpolationAcross
void validateInterpolationAcross(int fsType_source, const escript::AbstractDomain &domain, int fsType_target) const
Checks that the given interpolation is possible, throw RipleyExceptions if not.
Definition: MultiRectangle.cpp:84
ripley::MultiRectangle::findNode
virtual dim_t findNode(const double *coords) const
finds the node that the given point coordinates belong to
Definition: MultiRectangle.cpp:986
ripley::FaceElements
@ FaceElements
Definition: Ripley.h:73
ripley::MultiRectangle::interpolateReducedToElementsFiner
virtual void interpolateReducedToElementsFiner(const escript::Data &source, escript::Data &target, const MultiRectangle &other) const
Definition: MultiRectangle.cpp:171
ripley::MultiRectangle::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: MultiRectangle.cpp:550
ripley::Rectangle::getNumElements
virtual dim_t getNumElements() const
returns the number of elements per MPI rank
Definition: ripley/src/Rectangle.h:416
ripley::RipleyDomain::updateTagsInUse
void updateTagsInUse(int fsType) const
Definition: ripley/src/RipleyDomain.cpp:1269
ripley::MultiRectangle::MultiRectangle
MultiRectangle(dim_t n0, dim_t n1, double x0, double y0, double x1, double y1, int d0=-1, int d1=-1, const std::vector< double > &points=std::vector< double >(), const std::vector< int > &tags=std::vector< int >(), const TagMap &tagnamestonums=TagMap(), escript::SubWorld_ptr w=escript::SubWorld_ptr(), unsigned int subdivisions=1)
creates a rectangular mesh with n0 x n1 elements over the rectangle [x0,x1] x [y0,...
Definition: MultiRectangle.cpp:39
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:227
ripley::ReaderParameters
Structure that wraps parameters for the grid reading routines.
Definition: ripley/src/RipleyDomain.h:83
ripley::MultiRectangle::getNumDOF
virtual dim_t getNumDOF() const
returns the number of degrees of freedom per MPI rank
Definition: MultiRectangle.h:185
escript::SubWorld_ptr
boost::shared_ptr< SubWorld > SubWorld_ptr
Definition: SubWorld.h:161
ripley::MultiRectangle::getFirstInDim
virtual index_t getFirstInDim(unsigned axis) const
Definition: MultiRectangle.h:202
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:88
ripley::IndexVector
std::vector< index_t > IndexVector
Definition: Ripley.h:61
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:341
ripley::Rectangle::m_faceCount
dim_t m_faceCount[4]
number of face elements per edge (left, right, bottom, top)
Definition: ripley/src/Rectangle.h:344
ripley::RipleyDomain::functionSpaceTypeAsString
virtual std::string functionSpaceTypeAsString(int fsType) const
returns a description for the given function space type code
Definition: ripley/src/RipleyDomain.cpp:125
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:527
ripley::Rectangle::m_dx
double m_dx[2]
grid spacings / cell sizes of domain
Definition: ripley/src/Rectangle.h:326
ripley::Rectangle::getNumNodesPerDim
virtual const dim_t * getNumNodesPerDim() const
returns the number of nodes per MPI rank in each dimension
Definition: ripley/src/Rectangle.h:176
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:332
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:2035
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:789
escript::FunctionSpace::getTypeCode
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:95
ripley::Rectangle::getNumFaceElements
virtual dim_t getNumFaceElements() const
returns the number of face elements on current MPI rank
Definition: ripley/src/Rectangle.h:422
ripley::Rectangle::m_nodeDistribution
IndexVector m_nodeDistribution
Definition: ripley/src/Rectangle.h:357
escript::function
FunctionSpace function(const AbstractDomain &domain)
Return a function FunctionSpace.
Definition: FunctionSpaceFactory.cpp:57
ripley::Rectangle::m_nodeId
IndexVector m_nodeId
Definition: ripley/src/Rectangle.h:352
escript::Vector
Data Vector(double value, const FunctionSpace &what, bool expanded)
Return a Data object containing vector data-points. ie: rank 1 data-points.
Definition: DataFactory.cpp:139
ripley::Rectangle::m_length
double m_length[2]
side lengths of domain
Definition: ripley/src/Rectangle.h:323
ripley::MultiRectangle::m_subdivisions
unsigned int m_subdivisions
Definition: MultiRectangle.h:177
ripley::MultiRectangle::interpolateNodesToNodesFinerWorker
void interpolateNodesToNodesFinerWorker(const escript::Data &source, escript::Data &target, const MultiRectangle &other, S sentinel) const
Definition: MultiRectangle.cpp:141
paso::Pattern_ptr
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:52
ripley::Rectangle::m_origin
double m_origin[2]
origin of domain
Definition: ripley/src/Rectangle.h:320
ripley::Rectangle::getNumNodes
virtual dim_t getNumNodes() const
returns the number of nodes per MPI rank
Definition: ripley/src/Rectangle.h:410
escript::AbstractDomain
Base class for all escript domains.
Definition: AbstractDomain.h:64
ripley::MultiRectangle::interpolateReducedToReducedFinerWorker
void interpolateReducedToReducedFinerWorker(const escript::Data &source, escript::Data &target, const MultiRectangle &other, S sentinel) const
Definition: MultiRectangle.cpp:238
ripley::MultiRectangle::interpolateElementsToElementsFinerWorker
void interpolateElementsToElementsFinerWorker(const escript::Data &source, escript::Data &target, const MultiRectangle &other, S sentinel) const
Definition: MultiRectangle.cpp:408
S
#define S(_J_, _I_)
Definition: ShapeFunctions.cpp:140
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:885
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:404
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:547
ripley::MultiRectangle::m_colIndices
std::vector< IndexVector > m_colIndices
Definition: MultiRectangle.h:175
escript::DataTypes::cplx_t
std::complex< real_t > cplx_t
complex data type
Definition: DataTypes.h:82
ripley::RipleyDomain::m_diracPoints
std::vector< DiracPoint > m_diracPoints
Definition: ripley/src/RipleyDomain.h:792
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:2263
ripley::MultiRectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: MultiRectangle.h:43
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:79
ripley::MultiRectangle::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: MultiRectangle.cpp:558
ripley::MultiRectangle::interpolateReducedToReducedFiner
virtual void interpolateReducedToReducedFiner(const escript::Data &source, escript::Data &target, const MultiRectangle &other) const
Definition: MultiRectangle.cpp:220
MATRIX_FORMAT_DEFAULT
#define MATRIX_FORMAT_DEFAULT
Definition: Paso.h:62
ripley::MultiRectangle::dump
void dump(const std::string &filename) const
dumps the mesh to a file with the given name
Definition: MultiRectangle.cpp:582