ripley/src/RipleyDomain.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_DOMAIN_H__
#define __RIPLEY_DOMAIN_H__
#include <ripley/Ripley.h>
#include <ripley/AbstractAssembler.h>
#include <ripley/RipleyException.h>
#include <escript/AbstractContinuousDomain.h>
#include <escript/Data.h>
#include <escript/FunctionSpace.h>
#include <escript/SubWorld.h>
#ifdef ESYS_HAVE_PASO
#include <paso/Coupler.h>
#include <paso/SystemMatrix.h>
#endif
#ifdef ESYS_HAVE_TRILINOS
#include <trilinoswrap/types.h>
#endif
#include <boost/python/list.hpp>
#include <boost/python/tuple.hpp>
namespace ripley {
enum assembler_t {
DEFAULT_ASSEMBLER,
WAVE_ASSEMBLER,
LAME_ASSEMBLER
};
enum SystemMatrixType {
SMT_PASO = 1<<8,
SMT_CUSP = 1<<9,
SMT_TRILINOS = 1<<10,
SMT_SYMMETRIC = 1<<15,
SMT_COMPLEX = 1<<16,
SMT_UNROLL = 1<<17
};
enum DecompositionPolicy {
DECOMP_ADD_ELEMENTS,
DECOMP_EXPAND,
DECOMP_STRICT
};
struct ReaderParameters
{
std::vector<dim_t> first;
std::vector<dim_t> numValues;
std::vector<int> multiplier;
std::vector<int> reverse;
int byteOrder;
int dataType;
};
struct DiracPoint
{
dim_t node;
int tag;
};
class RIPLEY_DLL_API RipleyDomain : public escript::AbstractContinuousDomain
{
public:
RipleyDomain(dim_t dim, escript::SubWorld_ptr p=escript::SubWorld_ptr());
~RipleyDomain();
static void setDecompositionPolicy(DecompositionPolicy value);
static DecompositionPolicy getDecompositionPolicy();
virtual escript::JMPI getMPI() const { return m_mpiInfo; }
virtual int getMPISize() const { return m_mpiInfo->size; }
virtual int getMPIRank() const { return m_mpiInfo->rank; }
virtual void MPIBarrier() const {
#ifdef ESYS_MPI
MPI_Barrier(m_mpiInfo->comm);
#endif
}
virtual bool onMasterProcessor() const { return getMPIRank()==0; }
MPI_Comm getMPIComm() const { return m_mpiInfo->comm; }
virtual bool isValidFunctionSpaceType(int fsType) const;
virtual std::string functionSpaceTypeAsString(int fsType) const;
virtual int getDim() const { return m_numDim; }
virtual bool operator==(const escript::AbstractDomain& other) const;
virtual bool operator!=(const escript::AbstractDomain& other) const {
return !(operator==(other));
}
virtual std::pair<int,dim_t> getDataShape(int fsType) const;
int getTagFromSampleNo(int fsType, dim_t sampleNo) const;
virtual void setTagMap(const std::string& name, int tag) {
m_tagMap[name] = tag;
}
virtual int getTag(const std::string& name) const {
if (m_tagMap.find(name) != m_tagMap.end()) {
return m_tagMap.find(name)->second;
} else {
throw escript::ValueError("getTag: invalid tag name");
}
}
virtual bool isValidTagName(const std::string& name) const {
return (m_tagMap.find(name)!=m_tagMap.end());
}
virtual std::string showTagNames() const;
virtual void setNewX(const escript::Data& arg);
virtual void interpolateOnDomain(escript::Data& target, const escript::Data& source) const;
virtual bool probeInterpolationOnDomain(int fsType_source, int fsType_target) const;
virtual signed char preferredInterpolationOnDomain(int fsType_source,
int fsType_target) const;
bool
commonFunctionSpace(const std::vector<int>& fs, int& resultcode) const;
virtual void interpolateAcross(escript::Data& target,
const escript::Data& source) const;
virtual bool probeInterpolationAcross(int, const escript::AbstractDomain&, int) const;
virtual escript::Data getX() const;
#ifdef ESYS_HAVE_BOOST_NUMPY
virtual boost::python::numpy::ndarray getNumpyX() const;
virtual boost::python::numpy::ndarray getConnectivityInfo() const;
#endif
virtual escript::Data getNormal() const;
virtual escript::Data getSize() const;
virtual void setToX(escript::Data& arg) const;
virtual void setToGradient(escript::Data& out, const escript::Data& in) const;
virtual void setTags(int fsType, int newTag, const escript::Data& mask) const;
virtual bool isCellOriented(int fsType) const;
virtual StatusType getStatus() const { return m_status; }
virtual int getNumberOfTagsInUse(int fsType) const;
virtual const int* borrowListOfTagsInUse(int fsType) const;
virtual bool canTag(int fsType) const;
virtual int getApproximationOrder(int fsType) const { return 1; }
virtual bool supportsContactElements() const { return false; }
virtual int getContinuousFunctionCode() const { return Nodes; }
virtual int getReducedContinuousFunctionCode() const { return ReducedNodes; }
virtual int getFunctionCode() const { return Elements; }
virtual int getReducedFunctionCode() const { return ReducedElements; }
virtual int getFunctionOnBoundaryCode() const { return FaceElements; }
virtual int getReducedFunctionOnBoundaryCode() const { return ReducedFaceElements; }
virtual int getFunctionOnContactZeroCode() const {
throw escript::NotImplementedError("Ripley does not support contact elements");
}
virtual int getReducedFunctionOnContactZeroCode() const {
throw escript::NotImplementedError("Ripley does not support contact elements");
}
virtual int getFunctionOnContactOneCode() const {
throw escript::NotImplementedError("Ripley does not support contact elements");
}
virtual int getReducedFunctionOnContactOneCode() const {
throw escript::NotImplementedError("Ripley does not support contact elements");
}
virtual int getSolutionCode() const { return DegreesOfFreedom; }
virtual int getReducedSolutionCode() const { return ReducedDegreesOfFreedom; }
virtual int getDiracDeltaFunctionsCode() const { return Points; }
virtual int getSystemMatrixTypeId(const boost::python::object& options) const;
virtual int getTransportTypeId(int solver, int preconditioner, int package,
bool symmetry) const;
virtual void setToIntegrals(std::vector<real_t>& integrals,
const escript::Data& arg) const;
virtual void setToIntegrals(std::vector<cplx_t>& integrals,
const escript::Data& arg) const;
virtual void addToSystem(escript::AbstractSystemMatrix& mat,
escript::Data& rhs, const DataMap& data,
Assembler_ptr assembler) const;
virtual void addToSystemFromPython(escript::AbstractSystemMatrix& mat,
escript::Data& rhs, const boost::python::list& data,
Assembler_ptr assembler) const;
virtual void addToRHS(escript::Data& rhs, const DataMap& data,
Assembler_ptr assembler) const;
virtual void addToRHSFromPython(escript::Data& rhs,
const boost::python::list& data,
Assembler_ptr assembler) const;
virtual void addPDEToTransportProblem(escript::AbstractTransportProblem& tp,
escript::Data& source, const DataMap& data,
Assembler_ptr assembler) const;
virtual void addPDEToTransportProblem(
escript::AbstractTransportProblem& tp, escript::Data& source,
const escript::Data& M,
const escript::Data& A, const escript::Data& B, const escript::Data& C,const escript::Data& D,
const escript::Data& X,const escript::Data& Y,
const escript::Data& d, const escript::Data& y,
const escript::Data& d_contact,const escript::Data& y_contact,
const escript::Data& d_dirac,const escript::Data& y_dirac) const;
void addPDEToTransportProblemFromPython(
escript::AbstractTransportProblem& tp,
escript::Data& source, const boost::python::list& data,
Assembler_ptr assembler) const;
virtual escript::ASM_ptr newSystemMatrix(int row_blocksize,
const escript::FunctionSpace& row_functionspace,
int column_blocksize,
const escript::FunctionSpace& column_functionspace, int type) const;
virtual escript::ATP_ptr newTransportProblem(int blocksize,
const escript::FunctionSpace& functionspace,
int type) const;
virtual void Print_Mesh_Info(bool full=false) const;
/************************************************************************/
virtual void write(const std::string& filename) const = 0;
virtual std::string getDescription() const = 0;
void dump(const std::string& filename) const = 0;
const dim_t* borrowSampleReferenceIDs(int fsType) const = 0;
virtual void setToNormal(escript::Data& out) const = 0;
virtual void setToSize(escript::Data& out) const = 0;
virtual void readNcGrid(escript::Data& out, std::string filename,
std::string varname, const ReaderParameters& params) const = 0;
virtual void readBinaryGrid(escript::Data& out, std::string filename,
const ReaderParameters& params) const = 0;
virtual void readBinaryGridFromZipped(escript::Data& out,
std::string filename, const ReaderParameters& params) const = 0;
virtual void writeBinaryGrid(const escript::Data& in, std::string filename,
int byteOrder, int dataType) const = 0;
virtual bool ownSample(int fsType, index_t id) const = 0;
virtual dim_t getNumDataPointsGlobal() const = 0;
virtual const dim_t* getNumNodesPerDim() const = 0;
virtual const dim_t* getNumElementsPerDim() const = 0;
virtual const dim_t* getNumFacesPerBoundary() const = 0;
virtual IndexVector getNodeDistribution() const = 0;
virtual const int* getNumSubdivisionsPerDim() const = 0;
virtual double getLocalCoordinate(index_t index, int dim) const = 0;
virtual boost::python::tuple getGridParameters() const = 0;
virtual const double *getLength() const = 0;
virtual const double *getElementLength() const = 0;
virtual RankVector getOwnerVector(int fsType) const = 0;
virtual bool supportsFilter(const boost::python::tuple& t) const;
virtual Assembler_ptr createAssembler(std::string type,
const DataMap& options) const {
throw escript::NotImplementedError("Domain does not support custom assemblers");
}
Assembler_ptr createAssemblerFromPython(std::string type,
const boost::python::list& options) const;
protected:
int m_numDim;
StatusType m_status;
escript::JMPI m_mpiInfo;
TagMap m_tagMap;
mutable std::vector<int> m_nodeTags, m_nodeTagsInUse;
mutable std::vector<int> m_elementTags, m_elementTagsInUse;
mutable std::vector<int> m_faceTags, m_faceTagsInUse;
std::vector<DiracPoint> m_diracPoints;
IndexVector m_diracPointNodeIDs; //for borrowSampleID
assembler_t assembler_type;
template<typename Scalar>
void copyData(escript::Data& out, const escript::Data& in) const;
template<typename Scalar>
void averageData(escript::Data& out, const escript::Data& in) const;
template<typename Scalar>
void multiplyData(escript::Data& out, const escript::Data& in) const;
// this is const because setTags is const
void updateTagsInUse(int fsType) const;
#ifdef ESYS_HAVE_PASO
void createPasoConnector(const RankVector& neighbour,
const IndexVector& offsetInSharedSend,
const IndexVector& offsetInSharedRecv,
const IndexVector& sendShared,
const IndexVector& recvShared);
paso::Connector_ptr getPasoConnector() const { return m_connector; }
paso::Pattern_ptr createPasoPattern(const std::vector<IndexVector>& indices,
dim_t N) const;
#endif
#ifdef ESYS_HAVE_TRILINOS
esys_trilinos::const_TrilinosGraph_ptr createTrilinosGraph(
const IndexVector& myRows, const IndexVector& myColumns) const;
#endif
template<typename Scalar>
void addToSystemMatrix(escript::AbstractSystemMatrix* mat,
const IndexVector& nodes, dim_t numEq,
const std::vector<Scalar>& array) const;
void addPoints(const std::vector<double>& coords,
const std::vector<int>& tags);
/***********************************************************************/
virtual dim_t getNumNodes() const = 0;
virtual dim_t getNumElements() const = 0;
virtual dim_t getNumDOF() const = 0;
virtual dim_t getNumFaceElements() const = 0;
virtual IndexVector getDiagonalIndices(bool upperOnly) const = 0;
virtual void assembleCoordinates(escript::Data& arg) const = 0;
virtual void assembleGradient(escript::Data& out, const escript::Data& in) const = 0;
virtual void assembleIntegrate(std::vector<real_t>& integrals, const escript::Data& arg) const = 0;
virtual void assembleIntegrate(std::vector<cplx_t>& integrals, const escript::Data& arg) const = 0;
#ifdef ESYS_HAVE_TRILINOS
virtual esys_trilinos::const_TrilinosGraph_ptr getTrilinosGraph() const = 0;
#endif
virtual std::vector<IndexVector> getConnections(bool includeShared) const = 0;
#ifdef ESYS_HAVE_PASO
virtual paso::SystemMatrixPattern_ptr getPasoMatrixPattern(
bool reducedRowOrder,
bool reducedColOrder) const = 0;
#endif
virtual void interpolateNodesOnElements(escript::Data& out,
const escript::Data& in,
bool reduced) const = 0;
virtual void interpolateNodesOnFaces(escript::Data& out,
const escript::Data& in,
bool reduced) const = 0;
virtual void nodesToDOF(escript::Data& out, const escript::Data& in) const = 0;
template<typename Scalar>
void dofToNodes(escript::Data& out, const escript::Data& in) const;
virtual dim_t getDofOfNode(dim_t node) const = 0;
private:
static DecompositionPolicy m_decompPolicy;
#ifdef ESYS_HAVE_PASO
// Paso connector used by the system matrix and to interpolate DOF to
// nodes
paso::Connector_ptr m_connector;
void addToPasoMatrix(paso::SystemMatrix* in, const IndexVector& nodes,
dim_t numEq, const DoubleVector& array) const;
#endif
void assemblePDE(escript::AbstractSystemMatrix* mat, escript::Data& rhs,
const DataMap& coefs, Assembler_ptr assembler) const;
void assemblePDEBoundary(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const DataMap& coefs,
Assembler_ptr assembler) const;
void assemblePDEDirac(escript::AbstractSystemMatrix* mat,
escript::Data& rhs, const DataMap& coefs,
Assembler_ptr assembler) const;
template<typename Scalar>
void setToIntegralsWorker(std::vector<Scalar>& integrals,
const escript::Data& arg) const;
virtual dim_t findNode(const double *coords) const = 0;
};
} // end of namespace ripley
#endif // __RIPLEY_DOMAIN_H__
ripley::RipleyDomain::assembleCoordinates
virtual void assembleCoordinates(escript::Data &arg) const =0
populates the data object 'arg' with the node coordinates
ripley::RipleyDomain::getNumElements
virtual dim_t getNumElements() const =0
returns the number of elements per MPI rank
escript::SolverOptions
SolverOptions
Definition: SolverOptions.h:94
escript::Data::getNumDataPointsPerSample
int getNumDataPointsPerSample() const
Return the number of data points per sample.
Definition: Data.h:544
escript::SolverBuddy
Definition: SolverOptions.h:172
ripley::ReducedElements
@ ReducedElements
Definition: Ripley.h:72
ripley::isNotEmpty
bool isNotEmpty(const std::string target, const DataMap &mapping)
Definition: ripley/src/domainhelpers.h:54
escript::Data::isComplex
bool isComplex() const
True if components of this data are stored as complex.
Definition: Data.cpp:1160
paso::N
static dim_t N
Definition: SparseMatrix_saveHB.cpp:52
ripley
Definition: ripley/src/AbstractAssembler.h:26
ripley::RipleyDomain::m_mpiInfo
escript::JMPI m_mpiInfo
Definition: ripley/src/RipleyDomain.h:787
escript::FunctionSpace::getSize
escript::Data getSize() const
Returns the sample size (e.g. the diameter of elements, radius of particles).
Definition: FunctionSpace.cpp:295
ripley::RipleyDomain::readBinaryGrid
virtual void readBinaryGrid(escript::Data &out, std::string filename, const ReaderParameters &params) const =0
reads grid data from a raw binary file into a Data object
ripley::DECOMP_STRICT
@ DECOMP_STRICT
Definition: ripley/src/RipleyDomain.h:76
ripley::RipleyDomain::getNumFaceElements
virtual dim_t getNumFaceElements() const =0
returns the number of face elements on current MPI rank
escript::DataTypes::real_t
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:79
ripley::RipleyDomain::preferredInterpolationOnDomain
virtual signed char preferredInterpolationOnDomain(int fsType_source, int fsType_target) const
Preferred direction of interpolation. If you really need to test for a particular direction,...
Definition: ripley/src/RipleyDomain.cpp:326
ripley::RipleyDomain::getDofOfNode
virtual dim_t getDofOfNode(dim_t node) const =0
ripley::SMT_CUSP
@ SMT_CUSP
Definition: ripley/src/RipleyDomain.h:66
ripley::DataMap
std::map< std::string, escript::Data > DataMap
Definition: ripley/src/domainhelpers.h:39
weipa::RipleyDomain::reorderGhostZones
virtual void reorderGhostZones(int ownIndex)
Reorders elements so that 'ghost' elements (i.e. those that do not belong to ownIndex) appear last.
Definition: weipa/src/RipleyDomain.cpp:216
REGISTER_ESCRIPT_EXCEPTION_TRANSLATORS
#define REGISTER_ESCRIPT_EXCEPTION_TRANSLATORS
Definition: ExceptionTranslators.h:26
getTag
int getTag(unsigned char sourcex, unsigned char sourcey, unsigned char sourcez, unsigned char targetx, unsigned char targety, unsigned char targetz)
Definition: blocktools.cpp:413
ripley::RipleyDomain::readBinaryGridFromZipped
virtual void readBinaryGridFromZipped(escript::Data &out, std::string filename, const ReaderParameters &params) const =0
reads grid data from a compressed raw binary file into a Data object
escript::reducedContinuousFunction
FunctionSpace reducedContinuousFunction(const AbstractDomain &domain)
Return a continuous with reduced order FunctionSpace (overlapped node values on reduced element order...
Definition: FunctionSpaceFactory.cpp:51
ripley::SMT_COMPLEX
@ SMT_COMPLEX
Definition: ripley/src/RipleyDomain.h:69
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
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(ripleycpp)
Definition: ripleycpp.cpp:492
ripley::ReaderParameters::first
std::vector< dim_t > first
the (global) offset into the data object to start writing into
Definition: ripley/src/RipleyDomain.h:86
ripley::RipleyDomain::operator==
virtual bool operator==(const escript::AbstractDomain &other) const
equality operator
Definition: ripley/src/RipleyDomain.cpp:95
ripley::RipleyDomain::m_faceTags
std::vector< int > m_faceTags
Definition: ripley/src/RipleyDomain.h:791
paso::SystemMatrix
this class holds a (distributed) stiffness matrix
Definition: SystemMatrix.h:62
weipa::RipleyDomain::removeGhostZones
virtual void removeGhostZones(int ownIndex)
Removes 'ghost' elements and nodes.
Definition: weipa/src/RipleyDomain.cpp:229
escript::SO_METHOD_DIRECT
@ SO_METHOD_DIRECT
Definition: SolverOptions.h:128
ripley::RipleyDomain::canTag
virtual bool canTag(int fsType) const
checks if this domain allows tags for the specified function space type
Definition: ripley/src/RipleyDomain.cpp:725
MATRIX_FORMAT_CSC
#define MATRIX_FORMAT_CSC
Definition: Paso.h:63
ripley::RipleyDomain::m_elementTagsInUse
std::vector< int > m_elementTagsInUse
Definition: ripley/src/RipleyDomain.h:790
ripley::RipleyDomain::setToIntegrals
virtual void setToIntegrals(std::vector< real_t > &integrals, const escript::Data &arg) const
copies the integrals of the function defined by arg into integrals. arg has to be defined on this dom...
Definition: ripley/src/RipleyDomain.cpp:653
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
ripley::RipleyDomain::getConnections
virtual std::vector< IndexVector > getConnections(bool includeShared) const =0
returns occupied matrix column indices for all matrix rows
ripley::RipleyDomain::multiplyData
void multiplyData(escript::Data &out, const escript::Data &in) const
copies data in 'in' to 'out' (from reduced to non-reduced fs)
Definition: ripley/src/RipleyDomain.cpp:1250
ripley::DECOMP_ADD_ELEMENTS
@ DECOMP_ADD_ELEMENTS
Definition: ripley/src/RipleyDomain.h:74
ripley::RipleyDomain::m_nodeTagsInUse
std::vector< int > m_nodeTagsInUse
Definition: ripley/src/RipleyDomain.h:789
ripley::tupleListToMap
void tupleListToMap(DataMap &mapping, const bp::list &list)
Definition: ripley/src/RipleyDomain.cpp:63
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::RipleyDomain::probeInterpolationAcross
virtual bool probeInterpolationAcross(int, const escript::AbstractDomain &, int) const
determines whether interpolation from source to target is possible
Definition: ripley/src/RipleyDomain.cpp:1781
ripley::RipleyDomain::newTransportProblem
virtual escript::ATP_ptr newTransportProblem(int blocksize, const escript::FunctionSpace &functionspace, int type) const
creates a transport problem
Definition: ripley/src/RipleyDomain.cpp:1071
weipa::VisItControl::initialized
bool initialized
Definition: VisItControl.cpp:66
ripley::DATATYPE_FLOAT64
@ DATATYPE_FLOAT64
Definition: ripley/src/system_dep.h:62
ripley::RipleyDomain::getNumberOfTagsInUse
virtual int getNumberOfTagsInUse(int fsType) const
returns the number of tags in use for a function space type
Definition: ripley/src/RipleyDomain.cpp:817
ripley::DATATYPE_INT32
@ DATATYPE_INT32
Definition: ripley/src/system_dep.h:60
weipa::RipleyElements
Stores and manipulates one type of ripley mesh elements (cells, faces).
Definition: RipleyElements.h:45
escript::SolverBuddy::getPackage
SolverOptions getPackage() const
Definition: SolverOptions.cpp:472
paso::Coupler
Definition: Coupler.h:56
escript::continuousFunction
FunctionSpace continuousFunction(const AbstractDomain &domain)
Create function space objects.
Definition: FunctionSpaceFactory.cpp:45
ripley::RipleyDomain::onMasterProcessor
virtual bool onMasterProcessor() const
returns true if on MPI processor 0, else false
Definition: ripley/src/RipleyDomain.h:166
escript::NotImplementedError
An exception class for features which are not (yet) implemented.
Definition: EsysException.h:93
ripley::SMT_PASO
@ SMT_PASO
Definition: ripley/src/RipleyDomain.h:65
ripley::Nodes
@ Nodes
Definition: Ripley.h:69
weipa::RipleyDomain::cells
RipleyElements_ptr cells
Definition: weipa/src/RipleyDomain.h:92
ripley::ReducedDegreesOfFreedom
@ ReducedDegreesOfFreedom
Definition: Ripley.h:68
ripley::_multibrick
escript::Domain_ptr _multibrick(double _n0, double _n1, double _n2, const object &l0, const object &l1, const object &l2, int d0, int d1, int d2, const object &objpoints, const object &objtags, escript::SubWorld_ptr world, unsigned int multiplier)
Definition: ripleycpp.cpp:240
ripley::RipleyDomain::getNumDOF
virtual dim_t getNumDOF() const =0
returns the number of degrees of freedom per MPI rank
ripley::Elements
@ Elements
Definition: Ripley.h:71
ripley::SystemMatrixType
SystemMatrixType
Definition: ripley/src/RipleyDomain.h:64
paso::TransportProblem::borrowMassMatrix
SystemMatrix_ptr borrowMassMatrix() const
Definition: Transport.h:70
escript::SolverBuddy::getSolverMethod
SolverOptions getSolverMethod() const
Definition: SolverOptions.cpp:409
ripley::WAVE_ASSEMBLER
@ WAVE_ASSEMBLER
Definition: ripley/src/RipleyDomain.h:74
ripley::RipleyDomain::addToRHSFromPython
virtual void addToRHSFromPython(escript::Data &rhs, const boost::python::list &data, Assembler_ptr assembler) const
a wrapper for addToRHS that allows calling from Python
Definition: ripley/src/RipleyDomain.cpp:1041
escript::AbstractDomain::StatusType
int StatusType
Definition: AbstractDomain.h:67
ripley::DegreesOfFreedom
@ DegreesOfFreedom
Definition: Ripley.h:67
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:54
ripley::SMT_TRILINOS
@ SMT_TRILINOS
Definition: ripley/src/RipleyDomain.h:67
ripley::RipleyDomain::createAssembler
virtual Assembler_ptr createAssembler(std::string type, const DataMap &options) const
Definition: ripley/src/RipleyDomain.h:772
ripley::DiracPoint::node
dim_t node
Definition: ripley/src/RipleyDomain.h:106
ripley::RipleyDomain::interpolateNodesOnElements
virtual void interpolateNodesOnElements(escript::Data &out, const escript::Data &in, bool reduced) const =0
interpolates data on nodes in 'in' onto (reduced) elements in 'out'
ripley::RipleyDomain::getMPIRank
virtual int getMPIRank() const
returns the MPI rank of this processor
Definition: ripley/src/RipleyDomain.h:150
ripley::BYTEORDER_NATIVE
@ BYTEORDER_NATIVE
Definition: ripley/src/system_dep.h:47
ripley::RipleyDomain::borrowListOfTagsInUse
virtual const int * borrowListOfTagsInUse(int fsType) const
returns a pointer to the list of tags in use for a function space type
Definition: ripley/src/RipleyDomain.cpp:837
ripley::RipleyDomain::commonFunctionSpace
bool commonFunctionSpace(const std::vector< int > &fs, int &resultcode) const
given a vector of FunctionSpace type codes, passes back a code which all can be interpolated to
Definition: ripley/src/RipleyDomain.cpp:193
ripley::RipleyDomain::m_faceTagsInUse
std::vector< int > m_faceTagsInUse
Definition: ripley/src/RipleyDomain.h:791
paso::SharedComponents
Definition: SharedComponents.h:55
ripley::ReaderParameters::byteOrder
int byteOrder
byte order in the file (used by binary reader only)
Definition: ripley/src/RipleyDomain.h:95
ripley::RipleyDomain::m_diracPointNodeIDs
IndexVector m_diracPointNodeIDs
Definition: ripley/src/RipleyDomain.h:793
escript::Domain_ptr
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:55
ripley::ReaderParameters::numValues
std::vector< dim_t > numValues
the number of values to read from file
Definition: ripley/src/RipleyDomain.h:88
escript::AbstractTransportProblem
Give a short description of what AbstractTransportProblem does.
Definition: AbstractTransportProblem.h:58
ripley::DiracPoint
A struct to contain a dirac point's information.
Definition: ripley/src/RipleyDomain.h:104
ripley::_rectangle
escript::Domain_ptr _rectangle(double _n0, double _n1, const object &l0, const object &l1, int d0, int d1, const object &objpoints, const object &objtags, escript::SubWorld_ptr world)
Definition: ripleycpp.cpp:410
ripley::RipleyDomain::readNcGrid
virtual void readNcGrid(escript::Data &out, std::string filename, std::string varname, const ReaderParameters &params) const =0
reads grid data from a netCDF file into a Data object
escript::SO_PRECONDITIONER_ILUT
@ SO_PRECONDITIONER_ILUT
Definition: SolverOptions.h:148
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
escript::SolverBuddy::isComplex
bool isComplex() const
Definition: SolverOptions.cpp:638
ripley::RipleyDomain::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: ripley/src/RipleyDomain.cpp:1787
ripley::unpackData
const escript::Data unpackData(const std::string target, const DataMap &mapping)
Definition: ripley/src/domainhelpers.h:43
escript::FunctionSpace
Definition: FunctionSpace.h:49
ripley::RipleyDomain::MPIBarrier
virtual void MPIBarrier() const
if compiled for MPI then executes an MPI_Barrier, else does nothing
Definition: ripley/src/RipleyDomain.h:156
paso::Connector
Definition: Coupler.h:61
escript::makeInfo
JMPI makeInfo(MPI_Comm comm, bool owncom)
Definition: EsysMPI.cpp:43
ripley::DEFAULT_ASSEMBLER
@ DEFAULT_ASSEMBLER
Definition: ripley/src/RipleyDomain.h:73
escript::Data::getFunctionSpace
const FunctionSpace & getFunctionSpace() const
Return the function space.
Definition: Data.h:463
ripley::RipleyDomain::setToGradient
virtual void setToGradient(escript::Data &out, const escript::Data &in) const
copies the gradient of 'in' into 'out'. The actual function space to be considered for the gradient i...
Definition: ripley/src/RipleyDomain.cpp:602
weipa::DataVar_ptr
boost::shared_ptr< DataVar > DataVar_ptr
Definition: weipa.h:65
weipa
Definition: DataVar.cpp:51
MATRIX_FORMAT_OFFSET1
#define MATRIX_FORMAT_OFFSET1
Definition: Paso.h:65
speckley::probeInterpolationAcross
bool probeInterpolationAcross(int fsType_source, const escript::AbstractDomain &domain, int fsType_target, int dim)
Definition: CrossDomainCoupler.cpp:32
ripley::RipleyDomain::averageData
void averageData(escript::Data &out, const escript::Data &in) const
averages data in 'in' to 'out' (from non-reduced to reduced fs)
Definition: ripley/src/RipleyDomain.cpp:1228
escript::FunctionSpace::getDomain
const_Domain_ptr getDomain() const
Returns the function space domain.
Definition: FunctionSpace.cpp:103
MPI_INT
#define MPI_INT
Definition: EsysMPI.h:46
weipa::RipleyDomain::nodes
RipleyNodes_ptr nodes
Definition: weipa/src/RipleyDomain.h:91
ripley::RipleyDomain::getSize
virtual escript::Data getSize() const
returns the element size
Definition: ripley/src/RipleyDomain.cpp:578
weipa::RipleyDomain
Represents a full Ripley domain including nodes and elements.
Definition: weipa/src/RipleyDomain.h:50
paso::Pattern
Definition: Pattern.h:56
ripley::RipleyDomain::assembler_type
assembler_t assembler_type
Definition: ripley/src/RipleyDomain.h:794
weipa::RipleyElements_ptr
boost::shared_ptr< RipleyElements > RipleyElements_ptr
Definition: RipleyElements.h:33
weipa::RipleyDomain::siloPath
std::string siloPath
Definition: weipa/src/RipleyDomain.h:94
ripley::RipleyDomain::m_nodeTags
std::vector< int > m_nodeTags
Definition: ripley/src/RipleyDomain.h:789
weipa::RipleyDomain::writeToSilo
virtual bool writeToSilo(DBfile *dbfile, const std::string &pathInSilo, const StringVec &labels, const StringVec &units, bool writeMeshData)
Writes the domain to a Silo file.
Definition: weipa/src/RipleyDomain.cpp:243
ripley::BYTEORDER_LITTLE_ENDIAN
@ BYTEORDER_LITTLE_ENDIAN
Definition: ripley/src/system_dep.h:55
ripley::DATATYPE_FLOAT32
@ DATATYPE_FLOAT32
Definition: ripley/src/system_dep.h:61
ripley::RipleyDomain::createAssemblerFromPython
Assembler_ptr createAssemblerFromPython(std::string type, const boost::python::list &options) const
Definition: ripley/src/RipleyDomain.cpp:1033
weipa::RipleyNodes
Stores and manipulates ripley mesh nodes.
Definition: RipleyNodes.h:39
ripley::RankVector
std::vector< int > RankVector
Definition: Ripley.h:63
weipa::ZONE_CENTERED
@ ZONE_CENTERED
Definition: DomainChunk.h:33
escript::Data::getNumSamples
int getNumSamples() const
Return the number of samples.
Definition: Data.h:533
escript::FunctionSpace::getNormal
escript::Data getNormal() const
Returns the surface normal field.
Definition: FunctionSpace.cpp:286
paso::util::copy
void copy(dim_t N, double *out, const double *in)
out = in
Definition: PasoUtil.h:116
ripley::Rectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Rectangle.h:43
ripley::RipleyDomain::addToRHS
virtual void addToRHS(escript::Data &rhs, const DataMap &data, Assembler_ptr assembler) const
adds a PDE onto rhs, used for custom solvers with varying arguments counts and so on
Definition: ripley/src/RipleyDomain.cpp:1049
MPI_COMM_WORLD
#define MPI_COMM_WORLD
Definition: EsysMPI.h:48
escript::Data
Data represents a collection of datapoints.
Definition: Data.h:64
ripley::RipleyDomain
RipleyDomain extends the AbstractContinuousDomain interface for the Ripley library and is the base cl...
Definition: ripley/src/RipleyDomain.h:116
ripley::RipleyDomain::getNumDataPointsGlobal
virtual dim_t getNumDataPointsGlobal() const =0
returns the number of data points summed across all MPI processes
paso::util::l2
double l2(dim_t n, const double *x, escript::JMPI mpiinfo)
returns the global L2 norm of x
Definition: PasoUtil.cpp:530
paso::TransportProblem::borrowTransportMatrix
SystemMatrix_ptr borrowTransportMatrix() const
Definition: Transport.h:65
ripley::RipleyDomain::m_numDim
int m_numDim
Definition: ripley/src/RipleyDomain.h:785
ripley::RipleyDomain::getGridParameters
virtual boost::python::tuple getGridParameters() const =0
returns the tuple (origin, spacing, number_of_elements)
escript::FunctionSpace::getX
escript::Data getX() const
Returns the spatial locations of the data points.
Definition: FunctionSpace.cpp:229
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:93
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:72
paso::SystemMatrix::type
SystemMatrixType type
Definition: SystemMatrix.h:324
escript::ATP_ptr
boost::shared_ptr< AbstractTransportProblem > ATP_ptr
Definition: AbstractTransportProblem.h:175
escript::AbstractSystemMatrix
Base class for escript system matrices.
Definition: AbstractSystemMatrix.h:57
weipa::RipleyDomain::initFromEscript
virtual bool initFromEscript(const escript::AbstractDomain *domain)
Initialises the domain using an escript domain instance.
Definition: weipa/src/RipleyDomain.cpp:50
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::RipleyDomain::interpolateOnDomain
virtual void interpolateOnDomain(escript::Data &target, const escript::Data &source) const
interpolates data given on source onto target where source and target have to be given on the same do...
Definition: ripley/src/RipleyDomain.cpp:374
paso::SystemMatrix::mainBlock
SparseMatrix_ptr mainBlock
main block
Definition: SystemMatrix.h:342
paso::Coupler_ptr
boost::shared_ptr< Coupler< T > > Coupler_ptr
Definition: Coupler.h:57
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::RipleyDomain::isValidFunctionSpaceType
virtual bool isValidFunctionSpaceType(int fsType) const
returns true if the argument is a valid function space type for this domain
Definition: ripley/src/RipleyDomain.cpp:106
weipa::RipleyDomain::getVarNames
virtual StringVec getVarNames() const
Returns the names of all 'special' domain variables.
Definition: weipa/src/RipleyDomain.cpp:146
ripley::RipleyDomain::newSystemMatrix
virtual escript::ASM_ptr newSystemMatrix(int row_blocksize, const escript::FunctionSpace &row_functionspace, int column_blocksize, const escript::FunctionSpace &column_functionspace, int type) const
creates a stiffness matrix and initializes it with zeros
Definition: ripley/src/RipleyDomain.cpp:943
weipa::ElementData_ptr
boost::shared_ptr< ElementData > ElementData_ptr
Definition: weipa.h:67
ripley::RipleyDomain::addToSystemFromPython
virtual void addToSystemFromPython(escript::AbstractSystemMatrix &mat, escript::Data &rhs, const boost::python::list &data, Assembler_ptr assembler) const
a wrapper for addToSystem that allows calling from Python
Definition: ripley/src/RipleyDomain.cpp:1023
weipa::RipleyDomain::initFromFile
virtual bool initFromFile(const std::string &filename)
Reads the domain from a dump file.
Definition: weipa/src/RipleyDomain.cpp:71
weipa::RipleyDomain::getDataVarByName
virtual DataVar_ptr getDataVarByName(const std::string &name) const
Creates and returns a variable with domain data.
Definition: weipa/src/RipleyDomain.cpp:161
weipa::NODE_CENTERED
@ NODE_CENTERED
Definition: DomainChunk.h:32
ripley::RipleyDomain::assembleGradient
virtual void assembleGradient(escript::Data &out, const escript::Data &in) const =0
computes the gradient of 'in' and puts the result in 'out'
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::assembler_t
assembler_t
Definition: ripley/src/RipleyDomain.h:58
ripley::RipleyDomain::assemblePDEBoundary
void assemblePDEBoundary(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs, Assembler_ptr assembler) const
Definition: ripley/src/RipleyDomain.cpp:1668
weipa::RipleyDomain::faces
RipleyElements_ptr faces
Definition: weipa/src/RipleyDomain.h:93
ripley::RipleyDomain::assembleIntegrate
virtual void assembleIntegrate(std::vector< real_t > &integrals, const escript::Data &arg) const =0
copies the integrals of the function defined by 'arg' into 'integrals'
ripley::ReaderParameters::multiplier
std::vector< int > multiplier
Definition: ripley/src/RipleyDomain.h:91
paso::SystemMatrix::row_coupleBlock
SparseMatrix_ptr row_coupleBlock
coupling to neighbouring processors (col - row)
Definition: SystemMatrix.h:346
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
escript::Data::isEmpty
bool isEmpty() const
Definition: Data.cpp:1132
ripley::DoubleVector
std::vector< real_t > DoubleVector
Definition: Ripley.h:62
escript::Data::getNumDataPoints
int getNumDataPoints() const
Return the number of data points.
Definition: Data.h:523
paso::SystemMatrix::col_block_size
dim_t col_block_size
Definition: SystemMatrix.h:331
ripley::RipleyDomain::supportsFilter
virtual bool supportsFilter(const boost::python::tuple &t) const
returns true if this domain can handle the specified tuple of filter options.
Definition: ripley/src/RipleyDomain.cpp:1794
ripley::RipleyDomain::getDim
virtual int getDim() const
returns the number of spatial dimensions of the domain
Definition: ripley/src/RipleyDomain.h:191
ripley::FaceElements
@ FaceElements
Definition: Ripley.h:73
ripley::RipleyDomain::getTransportTypeId
virtual int getTransportTypeId(int solver, int preconditioner, int package, bool symmetry) const
returns the identifier of the transport problem type to be used when a particular solver,...
Definition: ripley/src/RipleyDomain.cpp:932
weipa::RipleyDomain::getElementsByName
virtual ElementData_ptr getElementsByName(const std::string &name) const
Returns element data with given name.
Definition: weipa/src/RipleyDomain.cpp:193
ripley::RipleyDomain::addToSystem
virtual void addToSystem(escript::AbstractSystemMatrix &mat, escript::Data &rhs, const DataMap &data, Assembler_ptr assembler) const
adds a PDE onto the stiffness matrix mat and rhs, used for custom solvers with varying arguments coun...
Definition: ripley/src/RipleyDomain.cpp:1010
ripley::RipleyDomain::setNewX
virtual void setNewX(const escript::Data &arg)
assigns new location to the domain.
Definition: ripley/src/RipleyDomain.cpp:1143
paso::SharedComponents_ptr
boost::shared_ptr< SharedComponents > SharedComponents_ptr
Definition: SharedComponents.h:50
escript::SO_PRECONDITIONER_AMG
@ SO_PRECONDITIONER_AMG
Definition: SolverOptions.h:145
paso::TransportProblem
Definition: Transport.h:36
ripley::RipleyDomain::setToIntegralsWorker
void setToIntegralsWorker(std::vector< Scalar > &integrals, const escript::Data &arg) const
Definition: ripley/src/RipleyDomain.cpp:664
ripley::RipleyDomain::getDescription
virtual std::string getDescription() const =0
returns a description for this domain
paso::TransportProblem::getTypeId
static int getTypeId(int solver, int preconditioner, int package, bool symmetry, const escript::JMPI &mpi_info)
Definition: Transport.h:95
ripley::DiracPoint::tag
int tag
Definition: ripley/src/RipleyDomain.h:107
ripley::RipleyDomain::isCellOriented
virtual bool isCellOriented(int fsType) const
returns true if data on this domain and given function space type has to be considered as cell center...
Definition: ripley/src/RipleyDomain.cpp:702
ripley::RipleyDomain::assemblePDEDirac
void assemblePDEDirac(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs, Assembler_ptr assembler) const
Definition: ripley/src/RipleyDomain.cpp:1734
ripley::RipleyDomain::updateTagsInUse
void updateTagsInUse(int fsType) const
Definition: ripley/src/RipleyDomain.cpp:1269
weipa::RipleyDomain::getElementsForFunctionSpace
virtual ElementData_ptr getElementsForFunctionSpace(int fsCode) const
Returns the element data for given function space code.
Definition: weipa/src/RipleyDomain.cpp:97
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
paso::SystemMatrix::row_block_size
dim_t row_block_size
Definition: SystemMatrix.h:330
ripley::RipleyDomain::dump
void dump(const std::string &filename) const =0
dumps the mesh to a file with the given name
ripley::BYTEORDER_BIG_ENDIAN
@ BYTEORDER_BIG_ENDIAN
Definition: ripley/src/system_dep.h:56
escript::SolverBuddy::isSymmetric
bool isSymmetric() const
Definition: SolverOptions.cpp:648
ripley::RipleyDomain::borrowSampleReferenceIDs
const dim_t * borrowSampleReferenceIDs(int fsType) const =0
returns the array of reference numbers for a function space type
ripley::SMT_UNROLL
@ SMT_UNROLL
Definition: ripley/src/RipleyDomain.h:70
ripley::ReaderParameters
Structure that wraps parameters for the grid reading routines.
Definition: ripley/src/RipleyDomain.h:83
ripley::RipleyDomain::copyData
void copyData(escript::Data &out, const escript::Data &in) const
copies data in 'in' to 'out' (both must be on same function space)
Definition: ripley/src/RipleyDomain.cpp:1213
paso::SystemMatrix::pattern
SystemMatrixPattern_ptr pattern
Definition: SystemMatrix.h:325
ripley::RipleyDomain::findNode
virtual dim_t findNode(const double *coords) const =0
finds the node that the given point coordinates belong to
ripley::RipleyDomain::getX
virtual escript::Data getX() const
returns locations in the FEM nodes
Definition: ripley/src/RipleyDomain.cpp:556
escript::SolverBuddy::getPreconditioner
SolverOptions getPreconditioner() const
Definition: SolverOptions.cpp:353
ripley::RipleyDomain::assemblePDE
void assemblePDE(escript::AbstractSystemMatrix *mat, escript::Data &rhs, const DataMap &coefs, Assembler_ptr assembler) const
calls the right PDE assembly routines after performing input checks
Definition: ripley/src/RipleyDomain.cpp:1596
escript::SubWorld_ptr
boost::shared_ptr< SubWorld > SubWorld_ptr
Definition: SubWorld.h:161
ripley::RipleyDomain::getSystemMatrixTypeId
virtual int getSystemMatrixTypeId(const boost::python::object &options) const
returns the identifier of the matrix type to be used for the global stiffness matrix when a particula...
Definition: ripley/src/RipleyDomain.cpp:873
MPI_MIN
#define MPI_MIN
Definition: EsysMPI.h:53
escript::isDirectSolver
bool isDirectSolver(const SolverOptions &method)
returns true if the passed solver method refers to a direct solver type
Definition: SolverOptions.h:157
ripley::Brick
Brick is the 3-dimensional implementation of a RipleyDomain.
Definition: ripley/src/Brick.h:43
ripley::setDecompositionPolicy
void setDecompositionPolicy(int policy)
Definition: ripleycpp.cpp:140
ripley::RipleyDomain::writeBinaryGrid
virtual void writeBinaryGrid(const escript::Data &in, std::string filename, int byteOrder, int dataType) const =0
writes a Data object to a file in raw binary format
ripley::RipleyDomain::isValidTagName
virtual bool isValidTagName(const std::string &name) const
returns true if name is a defined tag name
Definition: ripley/src/RipleyDomain.h:249
weipa::RipleyDomain::getMeshNames
virtual StringVec getMeshNames() const
Returns the names of all meshes within this domain.
Definition: weipa/src/RipleyDomain.cpp:130
ripley::RipleyDomain::nodesToDOF
virtual void nodesToDOF(escript::Data &out, const escript::Data &in) const =0
converts data on nodes in 'in' to degrees of freedom in 'out'
ripley::RipleyDomain::setTags
virtual void setTags(int fsType, int newTag, const escript::Data &mask) const
assigns new tag newTag to all samples of given function space with a positive value of mask for any o...
Definition: ripley/src/RipleyDomain.cpp:748
escript::RuntimeErrorTranslator
void RuntimeErrorTranslator(const EsysException &e)
Function which translates an EsysException into a python RuntimeError.
Definition: ExceptionTranslators.cpp:51
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::RipleyDomain::addPDEToTransportProblemFromPython
void addPDEToTransportProblemFromPython(escript::AbstractTransportProblem &tp, escript::Data &source, const boost::python::list &data, Assembler_ptr assembler) const
adds a PDE onto a transport problem
Definition: ripley/src/RipleyDomain.cpp:1096
weipa::RipleyDomain::RipleyDomain
RipleyDomain()
Definition: weipa/src/RipleyDomain.cpp:36
ripley::ReaderParameters::reverse
std::vector< int > reverse
if non-zero, values are written from last index to first index
Definition: ripley/src/RipleyDomain.h:93
ripley::RipleyDomain::showTagNames
virtual std::string showTagNames() const
returns all tag names in a single string separated by commas
Definition: ripley/src/RipleyDomain.cpp:182
weipa::RipleyDomain::initialized
bool initialized
Definition: weipa/src/RipleyDomain.h:90
ripley::DecompositionPolicy
DecompositionPolicy
Definition: ripley/src/RipleyDomain.h:73
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
escript::Data::isExpanded
bool isExpanded() const
Return true if this Data is expanded.
Definition: Data.cpp:1111
ripley::RipleyDomain::addPoints
void addPoints(const std::vector< double > &coords, const std::vector< int > &tags)
Definition: ripley/src/RipleyDomain.cpp:1812
ripley::RipleyDomain::setToX
virtual void setToX(escript::Data &arg) const
copies the location of data points into arg. The domain of arg has to match this domain.
Definition: ripley/src/RipleyDomain.cpp:583
weipa::NodeData_ptr
boost::shared_ptr< NodeData > NodeData_ptr
Definition: weipa.h:69
ripley::ReducedFaceElements
@ ReducedFaceElements
Definition: Ripley.h:74
escript::SO_DEFAULT
@ SO_DEFAULT
Definition: SolverOptions.h:110
weipa::StringVec
std::vector< std::string > StringVec
Definition: weipa.h:61
escript::FunctionSpace::getTypeCode
int getTypeCode() const
Returns the function space type code.
Definition: FunctionSpace.cpp:95
escript::FunctionSpace::getDim
int getDim() const
Return the number of spatial dimensions of the underlying domain.
Definition: FunctionSpace.h:197
escript::function
FunctionSpace function(const AbstractDomain &domain)
Return a function FunctionSpace.
Definition: FunctionSpaceFactory.cpp:57
ripley::RipleyDomain::~RipleyDomain
~RipleyDomain()
Destructor.
Definition: ripley/src/RipleyDomain.cpp:90
ripley::RipleyDomain::dofToNodes
void dofToNodes(escript::Data &out, const escript::Data &in) const
converts data on degrees of freedom in 'in' to nodes in 'out'
Definition: ripley/src/RipleyDomain.cpp:1150
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::LAME_ASSEMBLER
@ LAME_ASSEMBLER
Definition: ripley/src/RipleyDomain.h:75
weipa::RipleyDomain::getCenteringForFunctionSpace
virtual Centering getCenteringForFunctionSpace(int fsCode) const
Returns whether data on given function space is node or cell centered.
Definition: weipa/src/RipleyDomain.cpp:77
ripley::RipleyDomain::probeInterpolationOnDomain
virtual bool probeInterpolationOnDomain(int fsType_source, int fsType_target) const
returns true if data on fsType_source can be interpolated onto fsType_target, false otherwise
Definition: ripley/src/RipleyDomain.cpp:288
paso::M
static dim_t M
Definition: SparseMatrix_saveHB.cpp:52
escript::functionOnBoundary
FunctionSpace functionOnBoundary(const AbstractDomain &domain)
Return a function on boundary FunctionSpace.
Definition: FunctionSpaceFactory.cpp:69
MPI_Comm
int MPI_Comm
Definition: EsysMPI.h:42
weipa::RipleyDomain::getMeshForFunctionSpace
virtual NodeData_ptr getMeshForFunctionSpace(int fsCode) const
Returns the node mesh for given function space code.
Definition: weipa/src/RipleyDomain.cpp:83
paso::Connector_ptr
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:52
paso::Pattern_ptr
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:52
ripley::RipleyDomain::getMPISize
virtual int getMPISize() const
returns the number of processors used for this domain
Definition: ripley/src/RipleyDomain.h:144
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:1118
escript::AbstractDomain
Base class for all escript domains.
Definition: AbstractDomain.h:64
ripley::RipleyDomain::getTagFromSampleNo
int getTagFromSampleNo(int fsType, dim_t sampleNo) const
returns the tag key for the given sample number
Definition: ripley/src/RipleyDomain.cpp:787
paso::SystemMatrix::getSystemMatrixTypeId
static int getSystemMatrixTypeId(int solver, int preconditioner, int package, bool symmetry, const escript::JMPI &mpi_info)
Definition: SystemMatrix.cpp:547
escript::SO_PACKAGE_TRILINOS
@ SO_PACKAGE_TRILINOS
Definition: SolverOptions.h:119
escript::ASM_ptr
boost::shared_ptr< AbstractSystemMatrix > ASM_ptr
Definition: AbstractSystemMatrix.h:47
ripley::SMT_SYMMETRIC
@ SMT_SYMMETRIC
Definition: ripley/src/RipleyDomain.h:68
ripley::RipleyDomain::getDataShape
virtual std::pair< int, dim_t > getDataShape(int fsType) const
returns the number of data points per sample, and the number of samples as a pair.
Definition: ripley/src/RipleyDomain.cpp:152
ripley::RipleyDomain::getTag
virtual int getTag(const std::string &name) const
returns the tag key for tag name
Definition: ripley/src/RipleyDomain.h:236
ripley::RipleyDomain::m_diracPoints
std::vector< DiracPoint > m_diracPoints
Definition: ripley/src/RipleyDomain.h:792
weipa::Centering
Centering
Definition: DomainChunk.h:31
escript::AbstractSystemMatrix::getRowBlockSize
int getRowBlockSize() const
returns the row block size
Definition: AbstractSystemMatrix.h:128
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:63
ripley::ReaderParameters::dataType
int dataType
data type in the file (used by binary reader only)
Definition: ripley/src/RipleyDomain.h:97
escript::AbstractSystemMatrix::getColumnBlockSize
int getColumnBlockSize() const
returns the column block size
Definition: AbstractSystemMatrix.h:139
weipa::IntVec
std::vector< int > IntVec
Definition: weipa.h:60
ripley::RipleyDomain::m_tagMap
TagMap m_tagMap
Definition: ripley/src/RipleyDomain.h:788
ripley::SystemMatrix
Definition: RipleySystemMatrix.h:39
ripley::MultiRectangle
Rectangle is the 2-dimensional implementation of a RipleyDomain.
Definition: MultiRectangle.h:43
weipa::RipleyDomain::getMeshByName
virtual NodeData_ptr getMeshByName(const std::string &name) const
Returns the node mesh with given name.
Definition: weipa/src/RipleyDomain.cpp:204
escript::ValueError
An exception class that signals an invalid argument value.
Definition: EsysException.h:103
weipa::DataVar
A class that provides functionality to read an escript data object from a dump file or an escript::Da...
Definition: DataVar.h:36
escript::AbstractContinuousDomain
AbstractContinuousDomain, base class for continuous domains.
Definition: AbstractContinuousDomain.h:60
ripley::_multirectangle
escript::Domain_ptr _multirectangle(double _n0, double _n1, const object &l0, const object &l1, int d0, int d1, const object &objpoints, const object &objtags, escript::SubWorld_ptr world, unsigned int multiplier)
Definition: ripleycpp.cpp:331
ripley::RipleyDomain::getNormal
virtual escript::Data getNormal() const
returns boundary normals at the quadrature point on the face elements
Definition: ripley/src/RipleyDomain.cpp:573
MATRIX_FORMAT_DEFAULT
#define MATRIX_FORMAT_DEFAULT
Definition: Paso.h:62
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
escript::Domain_ptr _brick(double _n0, double _n1, double _n2, const object &l0, const object &l1, const object &l2, int d0, int d1, int d2, const object &objpoints, const object &objtags, escript::SubWorld_ptr world)
Definition: ripleycpp.cpp:151
weipa::RipleyDomain::getNodes
virtual NodeData_ptr getNodes() const
Returns a pointer to the full nodes.
Definition: weipa/src/RipleyDomain.h:85
ripley::RipleyDomain::getNumNodes
virtual dim_t getNumNodes() const =0
returns the number of nodes per MPI rank
ripley::DECOMP_EXPAND
@ DECOMP_EXPAND
Definition: ripley/src/RipleyDomain.h:75
weipa::RipleyNodes_ptr
boost::shared_ptr< RipleyNodes > RipleyNodes_ptr
Definition: RipleyNodes.h:31
ripley::RipleyDomain::interpolateNodesOnFaces
virtual void interpolateNodesOnFaces(escript::Data &out, const escript::Data &in, bool reduced) const =0
interpolates data on nodes in 'in' onto (reduced) face elements in 'out'
ripley::SystemMatrix::add
void add(const IndexVector &rowIndex, const std::vector< double > &array)
ripley::extractPyArray
std::vector< T > extractPyArray(const object &obj, const std::string &name, int expectedLength=0)
Definition: ripleycpp.cpp:38
ripley::RipleyDomain::addPDEToTransportProblem
virtual void addPDEToTransportProblem(escript::AbstractTransportProblem &tp, escript::Data &source, const DataMap &data, Assembler_ptr assembler) const
adds a PDE onto a transport problem
Definition: ripley/src/RipleyDomain.cpp:1105
paso::SystemMatrix::col_coupleBlock
SparseMatrix_ptr col_coupleBlock
coupling to neighbouring processors (row - col)
Definition: SystemMatrix.h:344
ripley::RipleyDomain::addToSystemMatrix
void addToSystemMatrix(escript::AbstractSystemMatrix *mat, const IndexVector &nodes, dim_t numEq, const std::vector< Scalar > &array) const