Go to the documentation of this file.
18 #ifndef __FINLEY_NODEFILE_H__
19 #define __FINLEY_NODEFILE_H__
26 #include <escript/Distribution.h>
29 #include <paso/Coupler.h>
31 #ifdef ESYS_HAVE_TRILINOS
32 #include <trilinoswrap/types.h>
191 #ifdef ESYS_HAVE_PASO
195 #ifdef ESYS_HAVE_TRILINOS
196 esys_trilinos::const_TrilinosMap_ptr trilinosRowMap;
197 esys_trilinos::const_TrilinosMap_ptr trilinosReducedRowMap;
198 esys_trilinos::const_TrilinosMap_ptr trilinosColMap;
199 esys_trilinos::const_TrilinosMap_ptr trilinosReducedColMap;
334 #endif // __FINLEY_NODEFILE_H__
void updateTagList()
Definition: finley/src/NodeFile.h:325
NodeFile(int nDim, escript::JMPI MPIInfo)
Definition: finley/src/NodeFile.cpp:116
index_t * globalReducedNodesIndex
Definition: finley/src/NodeFile.h:180
Definition: finley/src/NodeMapping.h:42
dim_t createDenseDOFLabeling()
Definition: finley/src/NodeFile.cpp:537
const IndexVector & borrowReducedNodesTarget() const
Definition: finley/src/NodeFile.h:290
const index_t * borrowTargetReducedNodes() const
Definition: finley/src/NodeFile.h:310
std::pair< index_t, index_t > getGlobalIdRange() const
Definition: finley/src/NodeFile.cpp:238
index_t * globalDegreesOfFreedom
Definition: finley/src/NodeFile.h:172
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:37
const index_t * borrowGlobalReducedNodesIndex() const
Definition: finley/src/NodeFile.h:250
std::pair< index_t, index_t > getGlobalDOFRange() const
Definition: finley/src/NodeFile.cpp:243
dim_t getNumReducedNodes() const
returns the number of reduced order FEM nodes (on this rank)
Definition: finley/src/NodeFile.h:260
void assignMPIRankToDOFs(std::vector< int > &mpiRankOfDOF, const IndexVector &distribution)
Definition: finley/src/NodeFile.cpp:450
int * Tag
Tag[i] is the tag of node i.
Definition: finley/src/NodeFile.h:165
index_t getFirstNode() const
Definition: finley/src/NodeFile.h:215
escript::Distribution_ptr nodesDistribution
MPI distribution of nodes.
Definition: finley/src/NodeFile.h:185
index_t * reducedNodesId
Definition: finley/src/NodeFile.h:202
index_t * globalReducedDOFIndex
Definition: finley/src/NodeFile.h:177
dim_t getNumDegreesOfFreedomTargets() const
returns the number of degrees of freedom targets (own and shared)
Definition: finley/src/NodeFile.h:275
dim_t numNodes
number of nodes
Definition: finley/src/NodeFile.h:150
NodeMapping reducedNodesMapping
Definition: finley/src/NodeFile.h:156
void gather(const index_t *index, const NodeFile *in)
Definition: finley/src/NodeFile.cpp:333
void createDOFMappingAndCoupling(bool reduced)
Definition: finley/src/NodeFile.cpp:784
std::pair< index_t, index_t > getGlobalNodeIDIndexRange() const
Definition: finley/src/NodeFile.cpp:248
const IndexVector & borrowReducedDegreesOfFreedomTarget() const
Definition: finley/src/NodeFile.h:300
dim_t getNumReducedDegreesOfFreedom() const
returns the number of reduced order degrees of freedom (on this rank)
Definition: finley/src/NodeFile.h:270
std::vector< index_t > target
target[i] defines the target of FEM node i=0,...,numNodes-1
Definition: finley/src/NodeMapping.h:107
NodeMapping reducedDegreesOfFreedomMapping
Definition: finley/src/NodeFile.h:147
void setValuesInUse(const int *values, dim_t numValues, std::vector< int > &valuesInUse, escript::JMPI mpiinfo)
Definition: finley/src/Util.cpp:368
dim_t getNumNodes() const
returns the number of FEM nodes (on this rank)
Definition: finley/src/NodeFile.h:255
void createNodeMappings(const IndexVector &indexReducedNodes, const IndexVector &dofDistribution, const IndexVector &nodeDistribution)
Definition: finley/src/NodeFile.cpp:1016
double * Coordinates
Coordinates[INDEX2(k,i,numDim)] is the k-th coordinate of node i.
Definition: finley/src/NodeFile.h:174
Data represents a collection of datapoints.
Definition: Data.h:63
index_t getLastNode() const
Definition: finley/src/NodeFile.h:220
index_t getGlobalNumReducedNodes() const
Definition: finley/src/NodeFile.h:245
index_t dim_t
Definition: DataTypes.h:90
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
const index_t * borrowGlobalNodesIndex() const
Definition: finley/src/NodeFile.h:230
dim_t createDenseReducedLabeling(const std::vector< short > &reducedMask, bool useNodes)
Definition: finley/src/NodeFile.cpp:714
~NodeFile()
destructor
Definition: finley/src/NodeFile.cpp:134
escript::JMPI MPIInfo
MPI information.
Definition: finley/src/NodeFile.h:159
dim_t prepareLabeling(const std::vector< short > &mask, IndexVector &buffer, IndexVector &distribution, bool useNodes)
Definition: finley/src/NodeFile.cpp:476
void freeTable()
empties the node table and frees all memory
Definition: finley/src/NodeFile.cpp:174
const IndexVector & borrowNodesTarget() const
Definition: finley/src/NodeFile.h:285
std::vector< index_t > map
maps the target nodes back to the FEM nodes: target[map[i]]=i
Definition: finley/src/NodeMapping.h:109
index_t getFirstReducedNode() const
Definition: finley/src/NodeFile.h:235
index_t * Id
Id[i] is the unique ID number of FEM node i.
Definition: finley/src/NodeFile.h:163
dim_t createDenseNodeLabeling(IndexVector &nodeDistribution, const IndexVector &dofDistribution)
Definition: finley/src/NodeFile.cpp:600
NodeMapping nodesMapping
Definition: finley/src/NodeFile.h:145
int status
Definition: finley/src/NodeFile.h:208
void setCoordinates(const escript::Data &newX)
copies the array newX into this->coordinates
Definition: finley/src/NodeFile.cpp:254
void print() const
Definition: finley/src/NodeFile.cpp:208
escript::Distribution_ptr reducedDegreesOfFreedomDistribution
Definition: finley/src/NodeFile.h:188
escript::Distribution_ptr degreesOfFreedomDistribution
Definition: finley/src/NodeFile.h:187
std::pair< index_t, index_t > getDOFRange() const
Definition: finley/src/NodeFile.cpp:227
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:85
dim_t getGlobalNumNodes() const
Definition: finley/src/NodeFile.h:225
Definition: finley/src/NodeFile.h:40
Definition: AbstractContinuousDomain.cpp:23
index_t * reducedDegreesOfFreedomId
Definition: finley/src/NodeFile.h:204
NodeMapping degreesOfFreedomMapping
Definition: finley/src/NodeFile.h:146
index_t * globalNodesIndex
assigns each local node a global unique ID in a dense labeling
Definition: finley/src/NodeFile.h:182
const index_t * borrowTargetNodes() const
returns the mapping from local nodes to a target
Definition: finley/src/NodeFile.h:305
escript::Distribution_ptr reducedNodesDistribution
Definition: finley/src/NodeFile.h:186
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:50
const index_t * borrowTargetDegreesOfFreedom() const
Definition: finley/src/NodeFile.h:315
dim_t getNumDegreesOfFreedom() const
returns the number of degrees of freedom (on this rank)
Definition: finley/src/NodeFile.h:265
index_t getLastReducedNode() const
Definition: finley/src/NodeFile.h:240
dim_t getNumReducedDegreesOfFreedomTargets() const
returns the number of reduced degrees of freedom targets (own and shared)
Definition: finley/src/NodeFile.h:280
const index_t * borrowTargetReducedDegreesOfFreedom() const
Definition: finley/src/NodeFile.h:320
index_t * degreesOfFreedomId
Definition: finley/src/NodeFile.h:203
void scatter(const index_t *index, const NodeFile *in)
Definition: finley/src/NodeFile.cpp:322
void gather_global(const index_t *index, const NodeFile *in)
Definition: finley/src/NodeFile.cpp:341
std::vector< int > tagsInUse
vector of tags which are actually used
Definition: finley/src/NodeFile.h:167
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:32
void setTags(int newTag, const escript::Data &mask)
set tags to newTag where mask > 0
Definition: finley/src/NodeFile.cpp:279
int numDim
number of spatial dimensions
Definition: finley/src/NodeFile.h:161
void allocTable(dim_t numNodes)
allocates the node table within this node file to hold numNodes nodes.
Definition: finley/src/NodeFile.cpp:139
const IndexVector & borrowDegreesOfFreedomTarget() const
Definition: finley/src/NodeFile.h:295
void copyTable(index_t offset, index_t idOffset, index_t dofOffset, const NodeFile *in)
Definition: finley/src/NodeFile.cpp:297
std::vector< index_t > IndexVector
Definition: DataTypes.h:88
dim_t getNumTargets() const
returns the number of target nodes (number of items in the map array)
Definition: finley/src/NodeMapping.h:104