#include "Finley.h"
#include "NodeMapping.h"
#include "escript/DataC.h"
#include "paso/Distribution.h"
#include "paso/Coupler.h"
Go to the source code of this file.
#define MAX_numDim 3 |
Referenced by Finley_Mesh_findMatchingFaces(), and Finley_Mesh_findMatchingFaces_compar().
typedef struct Finley_NodeFile Finley_NodeFile |
Finley_NodeFile* Finley_NodeFile_alloc | ( | dim_t | , | |
Paso_MPIInfo * | MPIInfo | |||
) |
References Finley_NodeFile::Coordinates, Finley_NodeFile::degreesOfFreedomConnector, Finley_NodeFile::degreesOfFreedomDistribution, Finley_NodeFile::degreesOfFreedomId, Finley_NodeFile::degreesOfFreedomMapping, Finley_checkPtr(), FINLEY_INITIAL_STATUS, Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::globalNodesIndex, Finley_NodeFile::globalReducedDOFIndex, Finley_NodeFile::globalReducedNodesIndex, Finley_NodeFile::Id, MEMALLOC, Finley_NodeFile::MPIInfo, Finley_NodeFile::nodesDistribution, Finley_NodeFile::nodesMapping, Finley_NodeFile::numDim, Finley_NodeFile::numNodes, Finley_NodeFile::numTagsInUse, Paso_MPIInfo_getReference(), Finley_NodeFile::reducedDegreesOfFreedomConnector, Finley_NodeFile::reducedDegreesOfFreedomDistribution, Finley_NodeFile::reducedDegreesOfFreedomId, Finley_NodeFile::reducedDegreesOfFreedomMapping, Finley_NodeFile::reducedNodesDistribution, Finley_NodeFile::reducedNodesId, Finley_NodeFile::reducedNodesMapping, Finley_NodeFile::status, Finley_NodeFile::Tag, and Finley_NodeFile::tagsInUse.
Referenced by Finley_Mesh_alloc(), Finley_Mesh_glueFaces(), and Finley_Mesh_resolveNodeIds().
void Finley_NodeFile_allocTable | ( | Finley_NodeFile * | , | |
dim_t | ||||
) |
References Finley_NodeFile::Coordinates, Finley_NodeFile::degreesOfFreedomId, Finley_checkPtr(), Finley_NodeFile_freeTable(), Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::globalNodesIndex, Finley_NodeFile::globalReducedDOFIndex, Finley_NodeFile::globalReducedNodesIndex, Finley_NodeFile::Id, INDEX2, MEMALLOC, MEMFREE, Finley_NodeFile::numDim, Finley_NodeFile::numNodes, Finley_NodeFile::reducedDegreesOfFreedomId, Finley_NodeFile::reducedNodesId, and Finley_NodeFile::Tag.
Referenced by Finley_Mesh_glueFaces(), Finley_Mesh_merge(), Finley_Mesh_read(), Finley_Mesh_read_MPI(), Finley_Mesh_readGmsh(), Finley_Mesh_resolveNodeIds(), Finley_RectangularMesh_Hex20(), Finley_RectangularMesh_Hex8(), Finley_RectangularMesh_Rec4(), Finley_RectangularMesh_Rec8(), and finley::loadMesh().
void Finley_NodeFile_assignMPIRankToDOFs | ( | Finley_NodeFile * | in, | |
Paso_MPI_rank * | mpiRankOfDOF, | |||
index_t * | distribution | |||
) |
index_t* Finley_NodeFile_borrowDegreesOfFreedomTarget | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::degreesOfFreedomMapping, and Finley_NodeMapping::map.
index_t* Finley_NodeFile_borrowGlobalNodesIndex | ( | Finley_NodeFile * | in | ) |
index_t* Finley_NodeFile_borrowGlobalReducedNodesIndex | ( | Finley_NodeFile * | in | ) |
index_t* Finley_NodeFile_borrowNodesTarget | ( | Finley_NodeFile * | in | ) |
References Finley_NodeMapping::map, and Finley_NodeFile::nodesMapping.
index_t* Finley_NodeFile_borrowReducedDegreesOfFreedomTarget | ( | Finley_NodeFile * | in | ) |
References Finley_NodeMapping::map, and Finley_NodeFile::reducedDegreesOfFreedomMapping.
index_t* Finley_NodeFile_borrowReducedNodesTarget | ( | Finley_NodeFile * | in | ) |
References Finley_NodeMapping::map, and Finley_NodeFile::reducedNodesMapping.
index_t* Finley_NodeFile_borrowTargetDegreesOfFreedom | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::degreesOfFreedomMapping, and Finley_NodeMapping::target.
Referenced by Finley_Assemble_interpolate().
index_t* Finley_NodeFile_borrowTargetNodes | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::nodesMapping, and Finley_NodeMapping::target.
Referenced by Finley_Assemble_interpolate().
index_t* Finley_NodeFile_borrowTargetReducedDegreesOfFreedom | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::reducedDegreesOfFreedomMapping, and Finley_NodeMapping::target.
Referenced by Finley_Assemble_interpolate().
index_t* Finley_NodeFile_borrowTargetReducedNodes | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::reducedNodesMapping, and Finley_NodeMapping::target.
Referenced by Finley_Assemble_interpolate().
void Finley_NodeFile_copyTable | ( | dim_t | , | |
Finley_NodeFile * | , | |||
dim_t | , | |||
dim_t | , | |||
Finley_NodeFile * | ||||
) |
dim_t Finley_NodeFile_createDenseDOFLabeling | ( | Finley_NodeFile * | ) |
References Paso_MPIInfo::comm, FALSE, Finley_checkPtr(), Finley_NodeFile_setGlobalDOFRange(), Finley_NodeFile::globalDegreesOfFreedom, MPI_INT, Finley_NodeFile::MPIInfo, Paso_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Paso_MPIInfo_mod(), Paso_MPIInfo_setDistribution(), Paso_MPIInfo::rank, Paso_MPIInfo::size, Finley_NodeFile::status, TMPMEMALLOC, TMPMEMFREE, and TRUE.
Referenced by Finley_Mesh_prepare().
dim_t Finley_NodeFile_createDenseNodeLabeling | ( | Finley_NodeFile * | in, | |
index_t * | node_distribution, | |||
const index_t * | dof_distribution | |||
) |
References Paso_MPIInfo::comm, Finley_checkPtr(), Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::globalNodesIndex, Finley_NodeFile::Id, INDEX_T_MAX, MAX, MIN, MPI_INT, Finley_NodeFile::MPIInfo, Paso_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Paso_MPIInfo_mod(), Paso_MPIInfo::rank, Paso_MPIInfo::size, Finley_NodeFile::status, TMPMEMALLOC, and TMPMEMFREE.
Referenced by Finley_Mesh_prepare().
dim_t Finley_NodeFile_createDenseReducedDOFLabeling | ( | Finley_NodeFile * | in, | |
index_t * | reducedNodeMask | |||
) |
References Paso_MPIInfo::comm, Finley_checkPtr(), Finley_NodeFile_setGlobalDOFRange(), Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::globalReducedDOFIndex, MPI_INT, Finley_NodeFile::MPIInfo, Paso_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Paso_MPIInfo_mod(), Paso_MPIInfo_setDistribution(), Paso_MPIInfo::rank, Paso_MPIInfo::size, Finley_NodeFile::status, TMPMEMALLOC, and TMPMEMFREE.
Referenced by Finley_Mesh_prepare().
dim_t Finley_NodeFile_createDenseReducedNodeLabeling | ( | Finley_NodeFile * | in, | |
index_t * | reducedNodeMask | |||
) |
References Paso_MPIInfo::comm, Finley_checkPtr(), Finley_NodeFile_setGlobalNodeIDIndexRange(), Finley_NodeFile::globalNodesIndex, Finley_NodeFile::globalReducedNodesIndex, MPI_INT, Finley_NodeFile::MPIInfo, Paso_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Paso_MPIInfo_mod(), Paso_MPIInfo_setDistribution(), Paso_MPIInfo::rank, Paso_MPIInfo::size, Finley_NodeFile::status, TMPMEMALLOC, and TMPMEMFREE.
Referenced by Finley_Mesh_prepare().
void Finley_NodeFile_free | ( | Finley_NodeFile * | ) |
References Finley_NodeFile_freeTable(), MEMFREE, Finley_NodeFile::MPIInfo, and Paso_MPIInfo_free().
Referenced by Finley_Mesh_free(), Finley_Mesh_glueFaces(), and Finley_Mesh_resolveNodeIds().
void Finley_NodeFile_freeTable | ( | Finley_NodeFile * | ) |
References Finley_NodeFile::Coordinates, Finley_NodeFile::degreesOfFreedomConnector, Finley_NodeFile::degreesOfFreedomDistribution, Finley_NodeFile::degreesOfFreedomId, Finley_NodeFile::degreesOfFreedomMapping, Finley_NodeMapping_free(), Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::globalNodesIndex, Finley_NodeFile::globalReducedDOFIndex, Finley_NodeFile::globalReducedNodesIndex, Finley_NodeFile::Id, MEMFREE, Finley_NodeFile::nodesDistribution, Finley_NodeFile::nodesMapping, Finley_NodeFile::numNodes, Finley_NodeFile::numTagsInUse, Paso_Connector_free(), Paso_Distribution_free(), Finley_NodeFile::reducedDegreesOfFreedomConnector, Finley_NodeFile::reducedDegreesOfFreedomDistribution, Finley_NodeFile::reducedDegreesOfFreedomId, Finley_NodeFile::reducedDegreesOfFreedomMapping, Finley_NodeFile::reducedNodesDistribution, Finley_NodeFile::reducedNodesId, Finley_NodeFile::reducedNodesMapping, Finley_NodeFile::Tag, and Finley_NodeFile::tagsInUse.
Referenced by Finley_NodeFile_allocTable(), and Finley_NodeFile_free().
void Finley_NodeFile_gather | ( | index_t * | , | |
Finley_NodeFile * | , | |||
Finley_NodeFile * | ||||
) |
void Finley_NodeFile_gather_global | ( | index_t * | , | |
Finley_NodeFile * | , | |||
Finley_NodeFile * | ||||
) |
References Paso_MPIInfo::comm, Finley_NodeFile::Coordinates, Finley_checkPtr(), Finley_NodeFile_gatherEntries(), Finley_NodeFile_scatterEntries(), Finley_NodeFile_setGlobalIdRange(), Finley_setError(), Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::Id, MPI_DOUBLE, MPI_INT, Finley_NodeFile::MPIInfo, Paso_MPIInfo::msg_tag_counter, Finley_NodeFile::numDim, Finley_NodeFile::numNodes, Paso_MPIInfo_mod(), Paso_MPIInfo_noError(), Paso_MPIInfo_setDistribution(), Paso_MPIInfo::rank, Paso_MPIInfo::size, Finley_NodeFile::status, Finley_NodeFile::Tag, TMPMEMALLOC, TMPMEMFREE, and VALUE_ERROR.
Referenced by Finley_Mesh_resolveNodeIds().
index_t Finley_NodeFile_getFirstNode | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::nodesDistribution, and Paso_Distribution_getFirstComponent().
Referenced by Finley_Mesh_saveVTK().
index_t Finley_NodeFile_getFirstReducedNode | ( | Finley_NodeFile * | in | ) |
References Paso_Distribution_getFirstComponent(), and Finley_NodeFile::reducedNodesDistribution.
Referenced by Finley_Mesh_saveVTK().
dim_t Finley_NodeFile_getGlobalNumNodes | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::nodesDistribution, and Paso_Distribution_getGlobalNumComponents().
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::getNumDataPointsGlobal().
dim_t Finley_NodeFile_getGlobalNumReducedNodes | ( | Finley_NodeFile * | in | ) |
References Paso_Distribution_getGlobalNumComponents(), and Finley_NodeFile::reducedNodesDistribution.
Referenced by Finley_Mesh_saveVTK().
index_t Finley_NodeFile_getLastNode | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::nodesDistribution, and Paso_Distribution_getLastComponent().
Referenced by Finley_Mesh_saveVTK().
index_t Finley_NodeFile_getLastReducedNode | ( | Finley_NodeFile * | in | ) |
References Paso_Distribution_getLastComponent(), and Finley_NodeFile::reducedNodesDistribution.
Referenced by Finley_Mesh_saveVTK().
dim_t Finley_NodeFile_getNumDegreesOfFreedom | ( | Finley_NodeFile * | in | ) |
dim_t Finley_NodeFile_getNumNodes | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile::nodesMapping, and Finley_NodeMapping::numNodes.
Referenced by Finley_Assemble_CopyNodalData(), Finley_Assemble_interpolate(), and finley::MeshAdapter::getDataShape().
dim_t Finley_NodeFile_getNumReducedDegreesOfFreedom | ( | Finley_NodeFile * | in | ) |
dim_t Finley_NodeFile_getNumReducedNodes | ( | Finley_NodeFile * | in | ) |
References Finley_NodeMapping::numTargets, and Finley_NodeFile::reducedNodesMapping.
Referenced by Finley_Assemble_CopyNodalData(), Finley_Assemble_interpolate(), and finley::MeshAdapter::getDataShape().
index_t Finley_NodeFile_GlobalDegreeOfFreedomIndex | ( | Finley_NodeFile * | in | ) |
index_t Finley_NodeFile_GlobalReducedDegreeOfFreedomIndex | ( | Finley_NodeFile * | in | ) |
index_t Finley_NodeFile_maxGlobalDegreeOfFreedomIndex | ( | Finley_NodeFile * | ) |
References Finley_NodeFile_setGlobalDOFRange().
index_t Finley_NodeFile_maxGlobalNodeIDIndex | ( | Finley_NodeFile * | in | ) |
References Finley_NodeFile_setGlobalNodeIDIndexRange().
index_t Finley_NodeFile_maxGlobalReducedDegreeOfFreedomIndex | ( | Finley_NodeFile * | ) |
index_t Finley_NodeFile_maxGlobalReducedNodeIDIndex | ( | Finley_NodeFile * | in | ) |
void Finley_NodeFile_scatter | ( | index_t * | , | |
Finley_NodeFile * | , | |||
Finley_NodeFile * | ||||
) |
void Finley_NodeFile_setCoordinates | ( | Finley_NodeFile * | , | |
escriptDataC * | ||||
) |
References allocSampleBuffer(), Finley_increaseStatus, Finley_setError(), freeSampleBuffer(), getDataPointSize(), getSampleDataROFast(), INDEX2, LenErrorMsg_MAX, numSamplesEqual(), and VALUE_ERROR.
Referenced by Finley_Mesh_setCoordinates().
void Finley_NodeFile_setDOFGlobalRange | ( | index_t * | , | |
index_t * | , | |||
Finley_NodeFile * | ||||
) |
void Finley_NodeFile_setDOFRange | ( | index_t * | , | |
index_t * | , | |||
Finley_NodeFile * | ||||
) |
void Finley_NodeFile_setGlobalDOFRange | ( | index_t * | , | |
index_t * | , | |||
Finley_NodeFile * | ||||
) |
References Paso_MPIInfo::comm, Finley_Util_getMaxInt(), Finley_Util_getMinInt(), Finley_NodeFile::globalDegreesOfFreedom, MPI_INT, Finley_NodeFile::MPIInfo, and Finley_NodeFile::numNodes.
Referenced by Finley_NodeFile_createDenseDOFLabeling(), Finley_NodeFile_createDenseReducedDOFLabeling(), and Finley_NodeFile_maxGlobalDegreeOfFreedomIndex().
void Finley_NodeFile_setGlobalIdRange | ( | index_t * | , | |
index_t * | , | |||
Finley_NodeFile * | ||||
) |
References Paso_MPIInfo::comm, Finley_Util_getMaxInt(), Finley_Util_getMinInt(), Finley_NodeFile::Id, MPI_INT, Finley_NodeFile::MPIInfo, and Finley_NodeFile::numNodes.
Referenced by Finley_NodeFile_gather(), and Finley_NodeFile_gather_global().
void Finley_NodeFile_setGlobalNodeIDIndexRange | ( | index_t * | min_id, | |
index_t * | max_id, | |||
Finley_NodeFile * | in | |||
) |
void Finley_NodeFile_setGlobalReducedDegreeOfFreedomRange | ( | index_t * | min_id, | |
index_t * | max_id, | |||
Finley_NodeFile * | in | |||
) |
void Finley_NodeFile_setGlobalReducedNodeIDIndexRange | ( | index_t * | min_id, | |
index_t * | max_id, | |||
Finley_NodeFile * | in | |||
) |
void Finley_NodeFile_setIdGlobalRange | ( | index_t * | , | |
index_t * | , | |||
Finley_NodeFile * | ||||
) |
void Finley_NodeFile_setIdRange | ( | index_t * | , | |
index_t * | , | |||
Finley_NodeFile * | ||||
) |
void Finley_NodeFile_setReducedDOFRange | ( | index_t * | , | |
index_t * | , | |||
Finley_NodeFile * | ||||
) |
void Finley_NodeFile_setTags | ( | Finley_NodeFile * | , | |
const | int, | |||
escriptDataC * | ||||
) |
void Finley_NodeFile_setTagsInUse | ( | Finley_NodeFile * | in | ) |