MultiBrick.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_MULTIBRICK_H__
#define __RIPLEY_MULTIBRICK_H__
#include <ripley/Brick.h>
namespace ripley {
class RIPLEY_DLL_API MultiBrick: public Brick
{
template<class Scalar> friend class DefaultAssembler3D;
friend class WaveAssembler3D;
friend class LameAssembler3D;
public:
MultiBrick(dim_t n0, dim_t n1, dim_t n2, double x0, double y0, double z0,
double x1, double y1, double z1, int d0=-1, int d1=-1, int d2=-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
);
~MultiBrick();
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;
const dim_t* borrowSampleReferenceIDs(int fsType) const;
virtual bool ownSample(int fsType, index_t id) const;
virtual void setToNormal(escript::Data& out) const;
virtual void setToSize(escript::Data& out) const;
virtual void Print_Mesh_Info(const bool full=false) const;
virtual unsigned int getNumSubdivisionsPerElement() const { return m_subdivisions; }
virtual const dim_t* getNumFacesPerBoundary() const { return m_faceCount; }
virtual IndexVector getNodeDistribution() const { return m_nodeDistribution; }
virtual const int* getNumSubdivisionsPerDim() const { return m_NX; }
virtual RankVector getOwnerVector(int fsType) const;
protected:
virtual IndexVector getDiagonalIndices(bool upperOnly) const;
virtual void interpolateNodesToNodesFiner(const escript::Data& source, escript::Data& target, const MultiBrick& other) const;
virtual void interpolateNodesToElementsFiner(const escript::Data& source, escript::Data& target, const MultiBrick& other) const;
virtual void interpolateElementsToElementsCoarser(const escript::Data& source, escript::Data& target, const MultiBrick& other) const;
virtual void interpolateElementsToElementsFiner(const escript::Data& source, escript::Data& target, const MultiBrick& other) const;
virtual void interpolateReducedToElementsFiner(const escript::Data& source, escript::Data& target, const MultiBrick& other) const;
virtual void interpolateReducedToReducedFiner(const escript::Data& source, escript::Data& target, const MultiBrick& other) const;
virtual void populateSampleIds();
virtual std::vector<IndexVector> getConnections(bool includeShared) const;
dim_t findNode(const double *coords) const;
const unsigned int m_subdivisions;
private:
template <typename S>
void interpolateNodesToNodesFinerWorker(const escript::Data& source, escript::Data& target, const MultiBrick& other, S sentinel) const;
template <typename S>
void interpolateNodesToElementsFinerWorker(const escript::Data& source, escript::Data& target, const MultiBrick& other, S sentinel) const;
template <typename S>
void interpolateElementsToElementsCoarserWorker(const escript::Data& source, escript::Data& target, const MultiBrick& other, S sentinel) const;
template <typename S>
void interpolateElementsToElementsFinerWorker(const escript::Data& source, escript::Data& target, const MultiBrick& other, S sentinel) const;
template <typename S>
void interpolateReducedToElementsFinerWorker(const escript::Data& source, escript::Data& target, const MultiBrick& other, S sentinel) const;
template <typename S>
void interpolateReducedToReducedFinerWorker(const escript::Data& source, escript::Data& target, const MultiBrick& other, S sentinel) const;
};
} // end of namespace ripley
#endif // __RIPLEY_MULTIBRICK_H__
ripley::Brick::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/Brick.cpp:475
escript::Data::getNumDataPointsPerSample
int getNumDataPointsPerSample() const
Return the number of data points per sample.
Definition: Data.h:544
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::MultiBrick::interpolateNodesToNodesFiner
virtual void interpolateNodesToNodesFiner(const escript::Data &source, escript::Data &target, const MultiBrick &other) const
Definition: MultiBrick.cpp:143
ripley::RipleyDomain::m_mpiInfo
escript::JMPI m_mpiInfo
Definition: ripley/src/RipleyDomain.h:787
ripley::Brick::m_faceCount
dim_t m_faceCount[6]
number of face elements per edge (left, right, bottom, top, front, back)
Definition: ripley/src/Brick.h:334
ripley::RipleyDomain::getMPIComm
MPI_Comm getMPIComm() const
returns the MPI communicator
Definition: ripley/src/RipleyDomain.h:172
escript::DataTypes::real_t
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:79
ripley::Brick::m_NX
int m_NX[3]
number of spatial subdivisions
Definition: ripley/src/Brick.h:319
ripley::MultiBrick::dump
void dump(const std::string &filename) const
dumps the mesh to a file with the given name
Definition: MultiBrick.cpp:726
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::MultiBrick::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: MultiBrick.cpp:110
INDEX4
#define INDEX4(_X1_, _X2_, _X3_, _X4_, _N1_, _N2_, _N3_)
Definition: index.h:27
ripley::Brick::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/Brick.h:372
ripley::Brick::m_faceId
IndexVector m_faceId
Definition: ripley/src/Brick.h:345
ripley::RipleyDomain::m_faceTags
std::vector< int > m_faceTags
Definition: ripley/src/RipleyDomain.h:791
ripley::Brick::m_ownNE
dim_t m_ownNE[3]
number of own elements for this rank in each dimension
Definition: ripley/src/Brick.h:325
INDEX2
#define INDEX2(_X1_, _X2_, _N1_)
Definition: index.h:23
ripley::RipleyException
RipleyException exception class.
Definition: RipleyException.h:44
ripley::Points
@ Points
Definition: Ripley.h:75
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::Brick::m_dx
double m_dx[3]
grid spacings / cell sizes of domain
Definition: ripley/src/Brick.h:316
ripley::MultiBrick::interpolateReducedToElementsFinerWorker
void interpolateReducedToElementsFinerWorker(const escript::Data &source, escript::Data &target, const MultiBrick &other, S sentinel) const
Definition: MultiBrick.cpp:224
ripley::MultiBrick::operator==
virtual bool operator==(const escript::AbstractDomain &other) const
equality operator
Definition: MultiBrick.cpp:679
ripley::Nodes
@ Nodes
Definition: Ripley.h:69
ripley::ReducedDegreesOfFreedom
@ ReducedDegreesOfFreedom
Definition: Ripley.h:68
ripley::MultiBrick::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: MultiBrick.cpp:598
ripley::MultiBrick::getDiagonalIndices
virtual IndexVector getDiagonalIndices(bool upperOnly) const
returns the indices of the occupied matrix diagonals
Definition: MultiBrick.cpp:1105
ripley::Elements
@ Elements
Definition: Ripley.h:71
ripley::MultiBrick::populateSampleIds
virtual void populateSampleIds()
Definition: MultiBrick.cpp:1131
ripley::DegreesOfFreedom
@ DegreesOfFreedom
Definition: Ripley.h:67
ripley::MultiBrick::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: MultiBrick.cpp:718
ripley::MultiBrick::interpolateReducedToElementsFiner
virtual void interpolateReducedToElementsFiner(const escript::Data &source, escript::Data &target, const MultiBrick &other) const
Definition: MultiBrick.cpp:206
ripley::Brick::getLength
const double * getLength() const
returns the lengths of the domain
Definition: ripley/src/Brick.h:227
ripley::MultiBrick::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: MultiBrick.cpp:1429
ripley::Brick::getNumNodes
virtual dim_t getNumNodes() const
returns the number of nodes per MPI rank
Definition: ripley/src/Brick.h:401
ripley::MultiBrick::interpolateElementsToElementsFinerWorker
void interpolateElementsToElementsFinerWorker(const escript::Data &source, escript::Data &target, const MultiBrick &other, S sentinel) const
Definition: MultiBrick.cpp:542
ripley::RipleyDomain::m_diracPointNodeIDs
IndexVector m_diracPointNodeIDs
Definition: ripley/src/RipleyDomain.h:793
ripley::MultiBrick::interpolateElementsToElementsCoarserWorker
void interpolateElementsToElementsCoarserWorker(const escript::Data &source, escript::Data &target, const MultiBrick &other, S sentinel) const
Definition: MultiBrick.cpp:464
ripley::Brick::m_offset
dim_t m_offset[3]
first node on this rank is at (offset0,offset1,offset2) in global mesh
Definition: ripley/src/Brick.h:331
ripley::ReducedNodes
@ ReducedNodes
Definition: Ripley.h:70
ripley::Brick::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/Brick.cpp:624
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::Brick::dump
void dump(const std::string &filename) const
dumps the mesh to a file with the given name
Definition: ripley/src/Brick.cpp:1050
ripley::Brick::m_faceOffset
IndexVector m_faceOffset
Definition: ripley/src/Brick.h:339
escript::Data::getFunctionSpace
const FunctionSpace & getFunctionSpace() const
Return the function space.
Definition: Data.h:463
ripley::Brick::m_NE
dim_t m_NE[3]
number of elements for this rank in each dimension including shared
Definition: ripley/src/Brick.h:322
ripley::MultiBrick::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: MultiBrick.cpp:812
ripley::MultiBrick::interpolateNodesToElementsFiner
virtual void interpolateNodesToElementsFiner(const escript::Data &source, escript::Data &target, const MultiBrick &other) const
Definition: MultiBrick.cpp:304
ripley::Brick::m_nodeDistribution
IndexVector m_nodeDistribution
Definition: ripley/src/Brick.h:348
ripley::Brick::getNumDataPointsGlobal
virtual dim_t getNumDataPointsGlobal() const
returns the number of data points summed across all MPI processes
Definition: ripley/src/Brick.h:367
ripley::MultiBrick::getDescription
virtual std::string getDescription() const
returns a description for this domain
Definition: MultiBrick.cpp:674
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::MultiBrick::interpolateNodesToNodesFinerWorker
void interpolateNodesToNodesFinerWorker(const escript::Data &source, escript::Data &target, const MultiBrick &other, S sentinel) const
Definition: MultiBrick.cpp:161
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:64
paso::nz
static dim_t nz
Definition: SparseMatrix_saveHB.cpp:52
ripley::RipleyDomain::m_numDim
int m_numDim
Definition: ripley/src/RipleyDomain.h:785
INDEX3
#define INDEX3(_X1_, _X2_, _X3_, _N1_, _N2_)
Definition: index.h:25
ripley::Brick::m_NN
dim_t m_NN[3]
number of nodes for this rank in each dimension
Definition: ripley/src/Brick.h:328
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:93
SECOND_QUAD
#define SECOND_QUAD
Definition: MultiBrick.cpp:27
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::MultiBrick::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: MultiBrick.cpp:710
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::MultiBrick::interpolateReducedToReducedFinerWorker
void interpolateReducedToReducedFinerWorker(const escript::Data &source, escript::Data &target, const MultiBrick &other, S sentinel) const
Definition: MultiBrick.cpp:278
ripley::Brick::m_length
double m_length[3]
side lengths of domain
Definition: ripley/src/Brick.h:313
ripley::MultiBrick::m_subdivisions
const unsigned int m_subdivisions
Definition: MultiBrick.h:221
ripley::MultiBrick::borrowSampleReferenceIDs
const dim_t * borrowSampleReferenceIDs(int fsType) const
returns the array of reference numbers for a function space type
Definition: MultiBrick.cpp:733
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::Brick::m_origin
double m_origin[3]
origin of domain
Definition: ripley/src/Brick.h:310
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::MultiBrick::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: MultiBrick.cpp:702
ripley::FaceElements
@ FaceElements
Definition: Ripley.h:73
ripley::MultiBrick::~MultiBrick
~MultiBrick()
Destructor.
Definition: MultiBrick.cpp:105
ripley::MultiBrick::ownSample
virtual bool ownSample(int fsType, index_t id) const
returns true if this rank owns the sample id.
Definition: MultiBrick.cpp:759
ripley::Brick::getNumElementsPerDim
virtual const dim_t * getNumElementsPerDim() const
returns the number of elements per MPI rank in each dimension
Definition: ripley/src/Brick.h:179
ripley::MultiBrick::interpolateElementsToElementsCoarser
virtual void interpolateElementsToElementsCoarser(const escript::Data &source, escript::Data &target, const MultiBrick &other) const
Definition: MultiBrick.cpp:446
ripley::MultiBrick::Print_Mesh_Info
virtual void Print_Mesh_Info(const bool full=false) const
writes information about the mesh to standard output
Definition: MultiBrick.cpp:1088
ripley::RipleyDomain::updateTagsInUse
void updateTagsInUse(int fsType) const
Definition: ripley/src/RipleyDomain.cpp:1269
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::Brick::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/Brick.cpp:943
ripley::MultiBrick::interpolateNodesToElementsFinerWorker
void interpolateNodesToElementsFinerWorker(const escript::Data &source, escript::Data &target, const MultiBrick &other, S sentinel) const
Definition: MultiBrick.cpp:322
ripley::ReaderParameters
Structure that wraps parameters for the grid reading routines.
Definition: ripley/src/RipleyDomain.h:83
escript::SubWorld_ptr
boost::shared_ptr< SubWorld > SubWorld_ptr
Definition: SubWorld.h:161
ripley::Brick::m_dofMap
IndexVector m_dofMap
Definition: ripley/src/Brick.h:351
ripley::MultiBrick::interpolateElementsToElementsFiner
virtual void interpolateElementsToElementsFiner(const escript::Data &source, escript::Data &target, const MultiBrick &other) const
Definition: MultiBrick.cpp:524
ripley::Brick
Brick is the 3-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Brick.h:43
ripley::Brick::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/Brick.cpp:1279
ripley::Brick::getNumFaceElements
virtual dim_t getNumFaceElements() const
returns the number of face elements on current MPI rank
Definition: ripley/src/Brick.h:413
ripley::MultiBrick::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: MultiBrick.cpp:991
ripley::Brick::getNumDOF
virtual dim_t getNumDOF() const
returns the number of degrees of freedom per MPI rank
Definition: ripley/src/Brick.h:388
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::MultiBrick
Brick is the 3-dimensional implementation of a RipleyDomain.
Definition: MultiBrick.h:43
ripley::Brick::getNumElements
virtual dim_t getNumElements() const
returns the number of elements per MPI rank
Definition: ripley/src/Brick.h:407
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::Brick::m_nodeId
IndexVector m_nodeId
Definition: ripley/src/Brick.h:343
ripley::Brick::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/Brick.cpp:3278
ripley::ReducedFaceElements
@ ReducedFaceElements
Definition: Ripley.h:74
ripley::indexOfMax
int indexOfMax(dim_t a, dim_t b, dim_t c)
Definition: ripley/src/Brick.cpp:76
escript::FunctionSpace::getTypeCode
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:95
ripley::Brick::populateDofMap
void populateDofMap()
Definition: ripley/src/Brick.cpp:3064
ripley::Brick::m_elementId
IndexVector m_elementId
Definition: ripley/src/Brick.h:344
escript::function
FunctionSpace function(const AbstractDomain &domain)
Return a function FunctionSpace.
Definition: FunctionSpaceFactory.cpp:57
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
paso::M
static dim_t M
Definition: SparseMatrix_saveHB.cpp:52
ripley::Brick::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/Brick.cpp:648
ripley::Brick::getNumNodesPerDim
virtual const dim_t * getNumNodesPerDim() const
returns the number of nodes per MPI rank in each dimension
Definition: ripley/src/Brick.h:173
ripley::RipleyDomain::getMPISize
virtual int getMPISize() const
returns the number of processors used for this domain
Definition: ripley/src/RipleyDomain.h:144
escript::AbstractDomain
Base class for all escript domains.
Definition: AbstractDomain.h:64
FIRST_QUAD
#define FIRST_QUAD
Definition: MultiBrick.cpp:26
globalNodeId
#define globalNodeId(x, y, z)
S
#define S(_J_, _I_)
Definition: ShapeFunctions.cpp:140
ripley::Brick::m_gNE
dim_t m_gNE[3]
total number of elements in each dimension
Definition: ripley/src/Brick.h:307
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::MultiBrick::getNumSubdivisionsPerElement
virtual unsigned int getNumSubdivisionsPerElement() const
returns the number of times each root element has been subdivided
Definition: MultiBrick.h:177
ripley::MultiBrick::getNumSubdivisionsPerDim
virtual const int * getNumSubdivisionsPerDim() const
returns the number of spatial subdivisions in each dimension
Definition: MultiBrick.h:196
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::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:857
ripley::Brick::m_dofId
IndexVector m_dofId
vector of sample reference identifiers
Definition: ripley/src/Brick.h:342
ripley::MultiBrick::getConnections
virtual std::vector< IndexVector > getConnections(bool includeShared) const
returns occupied matrix column indices for all matrix rows
Definition: MultiBrick.cpp:1398
ripley::MultiBrick::MultiBrick
MultiBrick(dim_t n0, dim_t n1, dim_t n2, double x0, double y0, double z0, double x1, double y1, double z1, int d0=-1, int d1=-1, int d2=-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 hexagonal mesh with n0 x n1 x n2 elements over the brick [x0,x1] x [y0,y1] x [z0,...
Definition: MultiBrick.cpp:54
ripley::MultiBrick::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: MultiBrick.cpp:694
ripley::MultiBrick::interpolateReducedToReducedFiner
virtual void interpolateReducedToReducedFiner(const escript::Data &source, escript::Data &target, const MultiBrick &other) const
Definition: MultiBrick.cpp:258
ripley::MultiBrick::findNode
dim_t findNode(const double *coords) const
finds the node that the given point coordinates belong to
Definition: MultiBrick.cpp:1436