Go to the documentation of this file.
30 #ifndef __PASO_MKL_H__
31 #define __PASO_MKL_H__
37 #ifdef ESYS_INDEXTYPE_LONG
38 #define ES_PARDISO pardiso_64
39 #define ES_MKL_INT MKL_INT64
41 #define ES_PARDISO pardiso
42 #define ES_MKL_INT MKL_INT
46 #include <mkl_pardiso.h>
50 #define MKL_ERROR_NO 0
51 #define MKL_MTYPE_REAL_SYM -2
52 #define MKL_MTYPE_REAL_UNSYM 11
54 #define MKL_REORDERING_MINIMUM_DEGREE 0
55 #define MKL_REORDERING_NESTED_DISSECTION 2
56 #define MKL_REORDERING_NESTED_DISSECTION_OMP 3
57 #define MKL_PHASE_SYMBOLIC_FACTORIZATION 11
58 #define MKL_PHASE_FACTORIZATION 22
59 #define MKL_PHASE_SOLVE 33
60 #define MKL_PHASE_RELEASE_MEMORY -1
65 dim_t numRefinements,
bool verbose);
69 #endif // __PASO_MKL_H__
#define MATRIX_FORMAT_BLK1
Definition: Paso.h:63
index_t * globalDegreesOfFreedom
Definition: dudley/src/NodeFile.h:156
void setContactElements(ElementFile *elements)
replaces the contact element file by elements
Definition: finley/src/FinleyDomain.cpp:134
#define ES_MKL_INT
Definition: MKL.h:54
static const real_t LARGE_POSITIVE_FLOAT
Definition: FCT_Solver.cpp:44
int MPI_Status
Definition: EsysMPI.h:44
#define PASO_ONE
Definition: Paso.h:67
#define MKL_REORDERING_NESTED_DISSECTION_OMP
Definition: MKL.h:68
int * Tag
Tag[i] is the tag of element i.
Definition: dudley/src/ElementFile.h:133
escript::JMPI m_mpiInfo
MPI information.
Definition: DudleyDomain.h:772
index_t minColor
minimum color value
Definition: finley/src/ElementFile.h:165
void joinFaces(double safetyFactor, double tolerance, bool optimize)
Definition: Mesh_joinFaces.cpp:49
Definition: ReferenceElements.h:85
FinleyDomain implements the AbstractContinuousDomain interface for the Finley library.
Definition: finley/src/FinleyDomain.h:139
void relabelElementNodes(const IndexVector &newNode, index_t offset)
Definition: finley/src/FinleyDomain.cpp:203
Definition: ReferenceElements.h:40
void printElementInfo(const ElementFile *e, const std::string &title, const std::string &defaultType, bool full) const
Definition: dudley/src/Mesh_write.cpp:50
index_t * globalReducedNodesIndex
Definition: finley/src/NodeFile.h:180
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:76
int MPI_Op
Definition: EsysMPI.h:43
int approximationOrder
Definition: finley/src/FinleyDomain.h:933
#define MKL_REORDERING_MINIMUM_DEGREE
Definition: MKL.h:66
Definition: ElementType.h:51
static escript::Domain_ptr createRec8(dim_t NE0, dim_t NE1, double l0, double l1, bool periodic0, bool periodic1, int order, int reducedOrder, bool useElementsOnFace, bool useFullElementOrder, bool useMacroElements, bool optimize, escript::JMPI jmpi)
Creates a 2-dimensional rectangular domain with second order (Rec8 or Rec9) elements in the rectangle...
Definition: Mesh_rec8.cpp:25
escript::JMPI m_mpiInfo
MPI information.
Definition: finley/src/FinleyDomain.h:930
Definition: DudleyException.h:37
Definition: ReferenceElements.h:48
TagMap m_tagMap
the tag map mapping names to tag keys
Definition: finley/src/FinleyDomain.h:948
int numDim
number of spatial dimensions
Definition: dudley/src/NodeFile.h:145
Definition: ReferenceElements.h:98
SolverResult Solver_MINRES(SystemMatrix_ptr A, double *R, double *X, dim_t *iter, double *tolerance, Performance *pp)
Definition: MINRES.cpp:72
Definition: ReferenceElements.h:106
void resolveNodeIds()
Definition: Mesh_resolveNodeIds.cpp:35
std::pair< index_t, index_t > getNodeRange() const
Definition: dudley/src/ElementFile.h:182
static Pattern_ptr fromIndexListArray(dim_t n0, dim_t n, const escript::IndexList *index_list_array, index_t range_min, index_t range_max, index_t index_offset)
Definition: Pattern.cpp:101
Definition: dudley/src/NodeFile.h:38
void allocTable(dim_t NE)
allocates the element table within an element file to hold NE elements
Definition: finley/src/ElementFile.cpp:77
index_t * globalDegreesOfFreedom
Definition: finley/src/NodeFile.h:172
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:37
#define MKL_PHASE_SYMBOLIC_FACTORIZATION
Definition: MKL.h:69
void glueFaces(double safetyFactor, double tolerance, bool optimize)
Definition: Mesh_glueFaces.cpp:49
std::string m_name
domain description
Definition: DudleyDomain.h:774
#define INDEX2(_X1_, _X2_, _N1_)
Definition: index.h:22
boost::shared_ptr< const ReferenceElementSet > const_ReferenceElementSet_ptr
Definition: ReferenceElementSets.h:92
void write(const std::string &fileName) const
writes the current mesh to a file with the given name in the fly file format.
Definition: dudley/src/Mesh_write.cpp:83
const index_t * borrowTargetDegreesOfFreedom() const
returns the mapping from local degrees of freedom to a target
Definition: dudley/src/NodeFile.h:233
#define MISSING_NODES
Definition: finley/src/Mesh_readGmsh.cpp:29
int * Tag
Tag[i] is the tag of node i.
Definition: finley/src/NodeFile.h:165
Definition: ReferenceElements.h:79
static ElementTypeId getTypeId(const char *)
returns the element type id from its textual representation
Definition: ReferenceElements.cpp:666
Definition: ReferenceElements.h:52
int * Tag
Tag[i] is the tag of element i.
Definition: finley/src/ElementFile.h:141
index_t * Nodes
Nodes[INDEX(k, i, numNodes)] is the k-th node in the i-th element.
Definition: dudley/src/ElementFile.h:145
void IndexList_insertElementsWithRowRangeNoMainDiagonal(IndexList *indexList, index_t firstRow, index_t lastRow, const ElementFile *elements, const index_t *map)
Definition: dudley/src/IndexList.cpp:76
void setElements(ElementFile *elements)
replaces the element file by elements
Definition: DudleyDomain.cpp:106
An exception class for features which are not (yet) implemented.
Definition: EsysException.h:91
Definition: FinleyException.h:38
Domain_ptr getPtr()
Returns smart pointer which is managing this object. If one does not exist yet it creates one.
Definition: AbstractDomain.cpp:38
Definition: ReferenceElements.h:112
#define ERROR
Definition: finley/src/Mesh_readGmsh.cpp:33
boost::shared_ptr< SystemMatrix > SystemMatrix_ptr
Definition: SystemMatrix.h:53
int integrationOrder
Definition: finley/src/FinleyDomain.h:935
int refId
Definition: Mesh_findMatchingFaces.cpp:57
ElementFile * m_elements
the table of the elements
Definition: DudleyDomain.h:778
void allocTable(dim_t NE)
allocates the element table within an element file to hold NE elements
Definition: dudley/src/ElementFile.cpp:66
dim_t getNumNodes() const
returns the number of FEM nodes (on this rank)
Definition: dudley/src/NodeFile.h:203
ElementFile * m_faceElements
the table of face elements
Definition: finley/src/FinleyDomain.h:942
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:52
index_t * globalReducedDOFIndex
Definition: finley/src/NodeFile.h:177
DudleyDomain(const std::string &name, int numDim, escript::JMPI jmpi)
Constructor for DudleyDomain.
Definition: DudleyDomain.cpp:68
#define PASO_MINIMUM_FILL_IN
Definition: Options.h:52
void writeElementInfo(std::ostream &stream, const ElementFile *e, const std::string &defaultType) const
Definition: dudley/src/Mesh_write.cpp:32
dim_t getNumDegreesOfFreedomTargets() const
returns the number of degrees of freedom targets (own and shared)
Definition: finley/src/NodeFile.h:275
std::vector< double > x
Definition: Mesh_findMatchingFaces.cpp:58
boost::shared_ptr< const ReferenceElement > const_ReferenceElement_ptr
Definition: ReferenceElements.h:212
virtual int getMPISize() const
returns the number of processors used for this domain
Definition: finley/src/FinleyDomain.h:390
void MKL_solve(SparseMatrix_ptr A, double *out, double *in, index_t reordering, dim_t numRefinements, bool verbose)
Definition: MKL.cpp:80
int * Owner
Owner[i] contains the rank that owns element i.
Definition: dudley/src/ElementFile.h:136
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:53
void AXPY(dim_t N, double *x, double a, const double *y)
x = x+a*y
Definition: PasoUtil.h:125
static escript::Domain_ptr readGmsh(escript::JMPI mpiInfo, const std::string &filename, int numDim, int integrationOrder=-1, int reducedIntegrationOrder=-1, bool optimize=false, bool useMacroElements=false)
reads a gmsh mesh file.
Definition: finley/src/Mesh_readGmsh.cpp:1571
real_t real_t_max()
Returns the maximum finite value for the real_t type.
Definition: DataTypes.h:114
#define MAX3(_arg1_, _arg2_, _arg3_)
Definition: Mesh_hex20.cpp:31
Definition: ReferenceElements.h:66
void gather(const index_t *index, const NodeFile *in)
Definition: finley/src/NodeFile.cpp:333
static double lockingGridSize
Definition: Mesh_findMatchingFaces.cpp:52
index_t * Nodes
Definition: finley/src/ElementFile.h:156
Definition: ReferenceElements.h:86
static escript::Domain_ptr createHex20(dim_t NE0, dim_t NE1, dim_t NE2, double l0, double l1, double l2, bool periodic0, bool periodic1, bool periodic2, int order, int reducedOrder, bool useElementsOnFace, bool useFullElementOrder, bool useMacroElements, bool optimize, escript::JMPI jmpi)
Creates a 3-dimensional rectangular domain with second order (Hex20 or Hex27) elements.
Definition: Mesh_hex20.cpp:37
#define SUCCESS
Definition: finley/src/Mesh_readGmsh.cpp:32
NodeFile * m_nodes
the table of the nodes
Definition: finley/src/FinleyDomain.h:938
const char * ename
name of element type
Definition: dudley/src/ElementFile.h:168
void resolveNodeIds()
Definition: finley/src/FinleyDomain.cpp:2970
void distributeByRankOfDOF(const int *mpiRankOfDOF, const index_t *nodesId)
redistributes the elements including overlap by rank
Definition: ElementFile_distributeByRankOfDOF.cpp:36
dim_t getNumReducedDegreesOfFreedom() const
returns the number of reduced order degrees of freedom (on this rank)
Definition: finley/src/NodeFile.h:270
#define PASO_MKL
Definition: Options.h:49
ElementFile * getElements() const
returns a pointer to this domain's element file
Definition: finley/src/FinleyDomain.h:342
#define MATRIX_FORMAT_OFFSET1
Definition: Paso.h:64
Definition: ReferenceElements.h:42
index_t maxColor
maximum color value
Definition: finley/src/ElementFile.h:168
Definition: ReferenceElements.h:111
#define MPI_INT
Definition: EsysMPI.h:45
index_t index_t_max()
Returns the maximum finite value for the index_t type.
Definition: DataTypes.h:105
static escript::Domain_ptr read(escript::JMPI mpiInfo, const std::string &filename, bool optimize)
reads a mesh from a fly file. For MPI parallel runs fans out the mesh to multiple processes.
Definition: dudley/src/Mesh_read.cpp:149
Definition: ReferenceElements.h:56
Definition: ReferenceElements.h:87
void findMatchingFaces(double safetyFactor, double tolerance, int *numPairs, int *elem0, int *elem1, int *matchingNodes) const
Definition: Mesh_findMatchingFaces.cpp:86
index_t maxColor
maximum color value
Definition: dudley/src/ElementFile.h:156
#define MPI_MAX
Definition: EsysMPI.h:53
ElementFile * m_points
the table of points (treated as elements of dimension 0)
Definition: finley/src/FinleyDomain.h:946
#define ES_PARDISO
Definition: MKL.h:53
ElementFile * m_points
the table of points (treated as elements of dimension 0)
Definition: DudleyDomain.h:782
dim_t getNumNodes() const
returns the number of FEM nodes (on this rank)
Definition: finley/src/NodeFile.h:255
Definition: ReferenceElements.h:77
void IndexList_insertElements(IndexList *index_list, const ElementFile *elements, const index_t *map)
Definition: dudley/src/IndexList.cpp:48
void copy(dim_t N, double *out, const double *in)
out = in
Definition: PasoUtil.h:113
dim_t getNumDegreesOfFreedomTargets() const
returns the number of degrees of freedom targets (own and shared)
Definition: dudley/src/NodeFile.h:213
double * Coordinates
Coordinates[INDEX2(k,i,numDim)] is the k-th coordinate of node i.
Definition: finley/src/NodeFile.h:174
index_t minColor
minimum color value
Definition: dudley/src/ElementFile.h:153
dim_t numElements
number of elements
Definition: finley/src/ElementFile.h:134
A suite of factory methods for creating 2D and 3D dudley domains.
Definition: dudley/src/Assemble.h:32
#define MKL_PHASE_RELEASE_MEMORY
Definition: MKL.h:72
int * Owner
Owner[i] contains the rank that owns element i.
Definition: finley/src/ElementFile.h:144
void assignMPIRankToDOFs(int *mpiRankOfDOF, const IndexVector &distribution)
Definition: dudley/src/NodeFile.cpp:232
static escript::Domain_ptr create3D(dim_t NE0, dim_t NE1, dim_t NE2, double l0, double l1, double l2, bool optimize, escript::JMPI jmpi)
Creates a 3-dimensional rectangular domain.
Definition: Mesh_tet4.cpp:27
double l2(dim_t n, const double *x, escript::JMPI mpiinfo)
returns the global L2 norm of x
Definition: PasoUtil.cpp:527
An exception class for Input/Output errors.
Definition: EsysException.h:81
void Print_Mesh_Info(bool full=false) const
Definition: finley/src/Mesh_write.cpp:147
#define INDEX3(_X1_, _X2_, _X3_, _N1_, _N2_)
Definition: index.h:24
index_t dim_t
Definition: DataTypes.h:90
dim_t numElements
number of elements
Definition: dudley/src/ElementFile.h:125
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
ElementFile * getFaceElements() const
returns a pointer to this domain's face element file
Definition: finley/src/FinleyDomain.h:354
Definition: dudley/src/ElementFile.h:64
Definition: ReferenceElements.h:110
void optimizeDOFDistribution(IndexVector &distribution)
Definition: dudley/src/Mesh_optimizeDOFDistribution.cpp:76
Definition: ReferenceElements.h:113
Definition: ReferenceElements.h:47
static escript::Domain_ptr create2D(dim_t NE0, dim_t NE1, double l0, double l1, bool optimize, escript::JMPI jmpi)
Creates a 2-dimensional rectangular domain.
Definition: Mesh_tri3.cpp:25
NodeFile * m_nodes
the table of the nodes
Definition: DudleyDomain.h:776
index_t * Id
Definition: dudley/src/ElementFile.h:130
void addDiracPoints(const std::vector< double > &points, const std::vector< int > &tags)
adds Dirac delta points. Do NOT call this at any time other than construction! Using them later creat...
Definition: Mesh_addPoints.cpp:47
Definition: ReferenceElements.h:114
void markNodes(std::vector< short > &mask, index_t offset) const
Definition: DudleyDomain.cpp:150
Definition: ReferenceElements.h:65
void optimizeDOFLabeling(const IndexVector &distribution)
optimizes the labeling of the DOFs on each processor
Definition: Mesh_optimizeDOFLabeling.cpp:38
index_t * Color
Definition: finley/src/ElementFile.h:162
std::string m_name
domain description
Definition: finley/src/FinleyDomain.h:932
Definition: SystemMatrixPattern.h:57
NodeFile * getNodes() const
returns a pointer to this domain's node file
Definition: finley/src/FinleyDomain.h:330
index_t getMaxInt(int dim, dim_t N, const index_t *values)
calculates the maximum value from a dim X N integer array
Definition: finley/src/Util.cpp:283
SolverResult
Definition: Paso.h:55
TagMap m_tagMap
the tag map mapping names to tag keys
Definition: DudleyDomain.h:784
Definition: ReferenceElements.h:105
#define MAX3(_arg1_, _arg2_, _arg3_)
Definition: Mesh_tet4.cpp:23
Definition: ReferenceElements.h:38
virtual int getDim() const
returns the dimensionality of this domain
Definition: finley/src/FinleyDomain.h:559
int reducedApproximationOrder
Definition: finley/src/FinleyDomain.h:934
void Print_Mesh_Info(bool full=false) const
Definition: dudley/src/Mesh_write.cpp:139
index_t * Id
Id[i] is the unique ID number of FEM node i.
Definition: finley/src/NodeFile.h:163
#define MKL_REORDERING_NESTED_DISSECTION
Definition: MKL.h:67
void gather(int len, const index_t *index, int numData, const double *in, double *out)
Definition: finley/src/Util.cpp:69
index_t * Id
Definition: finley/src/ElementFile.h:138
std::vector< index_t > packMask(const std::vector< short > &mask)
Definition: dudley/src/Util.cpp:238
void MKL_free(SparseMatrix *A)
Definition: MKL.cpp:49
#define MKL_ERROR_NO
Definition: MKL.h:62
Definition: ReferenceElements.h:55
FinleyDomain(const std::string &name, int numDim, escript::JMPI jmpi)
Constructor for FinleyDomain.
Definition: finley/src/FinleyDomain.cpp:73
#define MKL_MTYPE_REAL_UNSYM
Definition: MKL.h:64
#define MAX_numNodes_gmsh
Definition: finley/src/Mesh_readGmsh.cpp:26
NodeFile * getNodes() const
returns a pointer to this domain's node file
Definition: DudleyDomain.h:212
double getDist(int e0, int i0, int e1, int i1, int numDim, int NN, const double *X)
Definition: Mesh_findMatchingFaces.cpp:75
Definition: ReferenceElements.h:82
int reducedIntegrationOrder
Definition: finley/src/FinleyDomain.h:936
Definition: ReferenceElements.h:97
boost::shared_ptr< SparseMatrix > SparseMatrix_ptr
Definition: SparseMatrix.h:48
escript::Distribution_ptr reducedDegreesOfFreedomDistribution
Definition: finley/src/NodeFile.h:188
ElementFile * m_contactElements
the table of contact elements
Definition: finley/src/FinleyDomain.h:944
Definition: ReferenceElements.h:73
#define MPI_DOUBLE
Definition: EsysMPI.h:46
Definition: ReferenceElements.h:54
ElementFile * getContactElements() const
returns a pointer to this domain's contact element file
Definition: finley/src/FinleyDomain.h:366
std::pair< index_t, index_t > getDOFRange() const
Definition: dudley/src/NodeFile.cpp:158
Definition: ReferenceElements.h:43
void allocTable(dim_t numNodes)
allocates the node table within this node file to hold numNodes nodes.
Definition: dudley/src/NodeFile.cpp:75
Definition: ReferenceElements.h:81
PasoException exception class.
Definition: PasoException.h:45
static escript::Domain_ptr read(escript::JMPI mpiInfo, const std::string &fileName, int integrationOrder=-1, int reducedIntegrationOrder=-1, bool optimize=false)
reads a mesh from a fly file. For MPI parallel runs fans out the mesh to multiple processes.
Definition: finley/src/Mesh_read.cpp:152
Definition: ReferenceElements.h:39
escript::Distribution_ptr degreesOfFreedomDistribution
Definition: finley/src/NodeFile.h:187
double gettime()
returns the current ticks for timing
Definition: EsysMPI.h:186
ElementTypeId
Definition: ReferenceElements.h:37
void scale(dim_t N, double *x, double a)
x = a*x
Definition: PasoUtil.h:119
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:85
#define MAX_numNodes_gmsh
Definition: dudley/src/Mesh_readGmsh.cpp:25
Definition: ReferenceElements.h:109
Definition: ReferenceElements.h:51
#define EARLY_EOF
Definition: finley/src/Mesh_readGmsh.cpp:28
escript::Distribution_ptr dofDistribution
MPI distribution of degrees of freedom.
Definition: dudley/src/NodeFile.h:166
static escript::Domain_ptr readGmsh(escript::JMPI mpiInfo, const std::string &filename, int numDim, bool optimize)
reads a gmsh mesh file.
Definition: dudley/src/Mesh_readGmsh.cpp:28
void setElements(ElementFile *elements)
replaces the element file by elements
Definition: finley/src/FinleyDomain.cpp:122
void createColoring(const index_t *dofMap)
tries to reduce the number of colours for all element files
Definition: DudleyDomain.cpp:2146
Definition: finley/src/NodeFile.h:40
ElementFile * getPoints() const
returns a pointer to this domain's point (nodal) element file
Definition: finley/src/FinleyDomain.h:378
Definition: ElementType.h:54
virtual void setTagMap(const std::string &name, int tag)
sets a map from a clear tag name to a tag key
Definition: DudleyDomain.cpp:1955
void copyTable(index_t offset, index_t nodeOffset, index_t idOffset, const ElementFile *in)
Definition: finley/src/ElementFile.cpp:118
void relabelElementNodes(const index_t *newNode, index_t offset)
Definition: DudleyDomain.cpp:157
bool FaceCenterCompare(const FaceCenter &e1, const FaceCenter &e2)
comparison function for findMatchingFaces
Definition: Mesh_findMatchingFaces.cpp:62
void setPoints(ElementFile *elements)
replaces the point element file by elements
Definition: DudleyDomain.cpp:118
#define MKL_PHASE_FACTORIZATION
Definition: MKL.h:70
Definition: ReferenceElements.h:74
void setPoints(ElementFile *elements)
replaces the point element file by elements
Definition: finley/src/FinleyDomain.cpp:140
index_t * globalNodesIndex
assigns each local node a global unique ID in a dense labeling
Definition: finley/src/NodeFile.h:182
void IndexList_insertElementsWithRowRangeNoMainDiagonal(IndexList *index_list, index_t firstRow, index_t lastRow, ElementFile *elements, index_t *row_map, index_t *col_map)
Definition: finley/src/IndexList.cpp:103
void distributeByRankOfDOF(const IndexVector &distribution)
Definition: Mesh_distributeByRankOfDOF.cpp:38
DudleyDomain implements the AbstractContinuousDomain interface for the Dudley library.
Definition: DudleyDomain.h:121
index_t * Id
Id[i] is the unique ID number of FEM node i.
Definition: dudley/src/NodeFile.h:147
void IndexList_insertElements(IndexList *index_list, ElementFile *elements, bool reduce_row_order, const index_t *row_map, bool reduce_col_order, const index_t *col_map)
Definition: finley/src/IndexList.cpp:50
Definition: finley/src/ElementFile.h:74
int * Tag
Tag[i] is the tag of node i.
Definition: dudley/src/NodeFile.h:149
void prepare(bool optimize)
prepares the mesh for further use
Definition: DudleyDomain.cpp:2100
void optimizeDOFDistribution(IndexVector &distribution)
Definition: finley/src/Mesh_optimizeDOFDistribution.cpp:78
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:50
index_t * Color
Definition: dudley/src/ElementFile.h:150
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:50
virtual void setTagMap(const std::string &name, int tag)
sets a map from a clear tag name to a tag key
Definition: finley/src/FinleyDomain.cpp:2606
void setFaceElements(ElementFile *elements)
replaces the face element file by elements
Definition: DudleyDomain.cpp:112
const index_t * borrowTargetDegreesOfFreedom() const
Definition: finley/src/NodeFile.h:315
#define THROW_ERROR
Definition: finley/src/Mesh_readGmsh.cpp:31
dim_t getNumDegreesOfFreedom() const
returns the number of degrees of freedom (on this rank)
Definition: finley/src/NodeFile.h:265
virtual int getDim() const
Returns the spatial dimension of the domain.
Definition: DudleyDomain.h:429
Definition: ElementType.h:58
dim_t getNumReducedDegreesOfFreedomTargets() const
returns the number of reduced degrees of freedom targets (own and shared)
Definition: finley/src/NodeFile.h:280
void printElementInfo(const ElementFile *e, const std::string &title, const std::string &defaultType, bool full) const
Definition: finley/src/Mesh_write.cpp:52
Definition: ReferenceElementSets.h:39
const index_t * borrowTargetReducedDegreesOfFreedom() const
Definition: finley/src/NodeFile.h:320
#define MAX3(_arg1_, _arg2_, _arg3_)
Definition: Mesh_hex8.cpp:32
void setFaceElements(ElementFile *elements)
replaces the face element file by elements
Definition: finley/src/FinleyDomain.cpp:128
Definition: escriptcore/src/IndexList.h:28
const_ReferenceElementSet_ptr referenceElementSet
the reference element to be used
Definition: finley/src/ElementFile.h:132
Definition: BiCGStab.cpp:26
#define MKL_PHASE_SOLVE
Definition: MKL.h:71
Definition: ElementType.h:52
void write(const std::string &fileName) const
writes the current mesh to a file with the given name in the fly file format.
Definition: finley/src/Mesh_write.cpp:87
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:32
int numDim
number of spatial dimensions
Definition: finley/src/NodeFile.h:161
#define ESYS_ASSERT(a, b)
EsysAssert is a MACRO that will throw an exception if the boolean condition specified is false.
Definition: Assert.h:78
Definition: ElementType.h:53
dim_t getNumDegreesOfFreedom() const
returns the number of degrees of freedom (on this rank)
Definition: dudley/src/NodeFile.h:208
void allocTable(dim_t numNodes)
allocates the node table within this node file to hold numNodes nodes.
Definition: finley/src/NodeFile.cpp:139
double * Coordinates
Coordinates[INDEX2(k,i,numDim)] is the k-th coordinate of node i.
Definition: dudley/src/NodeFile.h:158
An exception class that signals an invalid argument value.
Definition: EsysException.h:101
ElementTypeId
Definition: ElementType.h:37
void prepare(bool optimize)
prepares the mesh for further use
Definition: finley/src/FinleyDomain.cpp:2782
ElementFile * m_elements
the table of the elements
Definition: finley/src/FinleyDomain.h:940
double innerProduct(dim_t n, const double *x, const double *y, escript::JMPI mpiinfo)
returns the inner product of global arrays x and y
Definition: PasoUtil.cpp:454
ElementTypeId etype
element type ID
Definition: dudley/src/ElementFile.h:165
Definition: ReferenceElements.h:78
ElementFile * m_faceElements
the table of face elements
Definition: DudleyDomain.h:780
ElementTypeId eltTypeFromString(const std::string &s)
Definition: ElementType.h:48
#define MATRIX_FORMAT_DEFAULT
Definition: Paso.h:61
void copyTable(index_t offset, index_t idOffset, index_t dofOffset, const NodeFile *in)
Definition: finley/src/NodeFile.cpp:297
#define MISSING_ELEMENTS
Definition: finley/src/Mesh_readGmsh.cpp:30
int numNodes
number of nodes per element
Definition: dudley/src/ElementFile.h:142
index_t * globalNodesIndex
assigns each local node a global unique ID in a dense labeling
Definition: dudley/src/NodeFile.h:160
static escript::Domain_ptr createHex8(dim_t NE0, dim_t NE1, dim_t NE2, double l0, double l1, double l2, bool periodic0, bool periodic1, bool periodic2, int order, int reducedOrder, bool useElementsOnFace, bool optimize, escript::JMPI jmpi)
Creates a 3-dimensional rectangular domain with first order (Hex8) elements.
Definition: Mesh_hex8.cpp:38
#define PASO_ZERO
Definition: Paso.h:68
Definition: ReferenceElements.h:46
static FinleyDomain * merge(const std::vector< const FinleyDomain * > &meshes)
Definition: Mesh_merge.cpp:24
#define SSCANF_CHECK(scan_ret)
Definition: finley/src/Mesh_readGmsh.cpp:25
std::vector< index_t > IndexVector
Definition: DataTypes.h:88
int numNodes
number of nodes per element
Definition: finley/src/ElementFile.h:150
void writeElementInfo(std::ostream &stream, const ElementFile *e, const std::string &defaultType) const
Definition: finley/src/Mesh_write.cpp:33
static escript::Domain_ptr createRec4(dim_t NE0, dim_t NE1, double L0, double L1, bool periodic0, bool periodic1, int order, int reducedOrder, bool useElementsOnFace, bool optimize, escript::JMPI jmpi)
Creates a 2-dimensional rectangular domain with first order (Rec4) elements in the rectangle [0,...
Definition: Mesh_rec4.cpp:25