ESYS13
Revision_
|
#include "Finley.h"
#include "NodeMapping.h"
#include "escript/DataC.h"
#include "paso/Distribution.h"
#include "paso/Coupler.h"
#include "esysUtils/Esys_MPI.h"
Go to the source code of this file.
#define MAX_numDim 3 |
typedef struct Finley_NodeFile Finley_NodeFile |
Finley_NodeFile* Finley_NodeFile_alloc | ( | dim_t | , |
Esys_MPIInfo * | MPIInfo | ||
) |
References Finley_NodeFile::Coordinates, Finley_NodeFile::degreesOfFreedomConnector, Finley_NodeFile::degreesOfFreedomDistribution, Finley_NodeFile::degreesOfFreedomId, Finley_NodeFile::degreesOfFreedomMapping, Esys_MPIInfo_getReference(), 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, 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_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, |
Esys_MPI_rank * | mpiRankOfDOF, | ||
index_t * | distribution | ||
) |
References Finley_NodeFile::degreesOfFreedomMapping, and Finley_NodeMapping::map.
References Finley_NodeFile::globalNodesIndex.
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::ownSample().
References Finley_NodeFile::globalReducedNodesIndex.
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::ownSample().
References Finley_NodeMapping::map, and Finley_NodeFile::nodesMapping.
References Finley_NodeMapping::map, and Finley_NodeFile::reducedDegreesOfFreedomMapping.
References Finley_NodeMapping::map, and Finley_NodeFile::reducedNodesMapping.
References Finley_NodeFile::degreesOfFreedomMapping, and Finley_NodeMapping::target.
Referenced by Finley_Assemble_interpolate().
References Finley_NodeFile::nodesMapping, and Finley_NodeMapping::target.
Referenced by Finley_Assemble_interpolate().
References Finley_NodeFile::reducedDegreesOfFreedomMapping, and Finley_NodeMapping::target.
Referenced by Finley_Assemble_interpolate().
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 * | |||
) |
References Esys_MPIInfo::comm, Esys_MPIInfo_mod(), Esys_MPIInfo_setDistribution(), FALSE, Finley_checkPtr(), Finley_NodeFile_setGlobalDOFRange(), Finley_NodeFile::globalDegreesOfFreedom, MPI_INT, Finley_NodeFile::MPIInfo, Esys_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Esys_MPIInfo::rank, Esys_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 Esys_MPIInfo::comm, Esys_MPIInfo_mod(), Finley_checkPtr(), Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::globalNodesIndex, Finley_NodeFile::Id, INDEX_T_MAX, MAX, MIN, MPI_INT, Finley_NodeFile::MPIInfo, Esys_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Esys_MPIInfo::rank, Esys_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 Esys_MPIInfo::comm, Esys_MPIInfo_mod(), Esys_MPIInfo_setDistribution(), Finley_checkPtr(), Finley_NodeFile_setGlobalDOFRange(), Finley_NodeFile::globalDegreesOfFreedom, Finley_NodeFile::globalReducedDOFIndex, MPI_INT, Finley_NodeFile::MPIInfo, Esys_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Esys_MPIInfo::rank, Esys_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 Esys_MPIInfo::comm, Esys_MPIInfo_mod(), Esys_MPIInfo_setDistribution(), Finley_checkPtr(), Finley_NodeFile_setGlobalNodeIDIndexRange(), Finley_NodeFile::globalNodesIndex, Finley_NodeFile::globalReducedNodesIndex, MPI_INT, Finley_NodeFile::MPIInfo, Esys_MPIInfo::msg_tag_counter, Finley_NodeFile::numNodes, Esys_MPIInfo::rank, Esys_MPIInfo::size, Finley_NodeFile::status, TMPMEMALLOC, and TMPMEMFREE.
Referenced by Finley_Mesh_prepare().
void Finley_NodeFile_free | ( | Finley_NodeFile * | ) |
References Esys_MPIInfo_free(), Finley_NodeFile_freeTable(), MEMFREE, and Finley_NodeFile::MPIInfo.
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 Esys_MPIInfo::comm, Finley_NodeFile::Coordinates, Esys_MPIInfo_mod(), Esys_MPIInfo_noError(), Esys_MPIInfo_setDistribution(), 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, Esys_MPIInfo::msg_tag_counter, Finley_NodeFile::numDim, Finley_NodeFile::numNodes, Esys_MPIInfo::rank, Esys_MPIInfo::size, Finley_NodeFile::status, Finley_NodeFile::Tag, TMPMEMALLOC, TMPMEMFREE, and VALUE_ERROR.
Referenced by Finley_Mesh_resolveNodeIds().
void Finley_NodeFile_gatherEntries | ( | dim_t | , |
index_t * | , | ||
index_t | , | ||
index_t | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
dim_t | numDim, | ||
double * | , | ||
double * | |||
) |
References INDEX2.
Referenced by Finley_NodeFile_gather(), and Finley_NodeFile_gather_global().
References Finley_NodeFile::nodesDistribution, and Paso_Distribution_getFirstComponent().
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::ownSample().
References Paso_Distribution_getFirstComponent(), and Finley_NodeFile::reducedNodesDistribution.
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::ownSample().
References Finley_NodeFile::nodesDistribution, and Paso_Distribution_getGlobalNumComponents().
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::getNumDataPointsGlobal().
References Paso_Distribution_getGlobalNumComponents(), and Finley_NodeFile::reducedNodesDistribution.
Referenced by Finley_Mesh_saveVTK().
References Finley_NodeFile::nodesDistribution, and Paso_Distribution_getLastComponent().
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::ownSample().
References Paso_Distribution_getLastComponent(), and Finley_NodeFile::reducedNodesDistribution.
Referenced by Finley_Mesh_saveVTK(), and finley::MeshAdapter::ownSample().
References Finley_NodeFile::nodesMapping, and Finley_NodeMapping::numNodes.
Referenced by Finley_Assemble_CopyNodalData(), Finley_Assemble_interpolate(), and finley::MeshAdapter::getDataShape().
References Finley_NodeMapping::numTargets, and Finley_NodeFile::reducedNodesMapping.
Referenced by Finley_Assemble_CopyNodalData(), Finley_Assemble_interpolate(), and finley::MeshAdapter::getDataShape().
References Finley_NodeFile_setGlobalDOFRange().
References Finley_NodeFile_setGlobalNodeIDIndexRange().
void Finley_NodeFile_scatter | ( | index_t * | , |
Finley_NodeFile * | , | ||
Finley_NodeFile * | |||
) |
void Finley_NodeFile_scatterEntries | ( | dim_t | , |
index_t * | , | ||
index_t | , | ||
index_t | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
index_t * | , | ||
dim_t | numDim, | ||
double * | , | ||
double * | |||
) |
References INDEX2.
Referenced by Finley_NodeFile_gather_global(), and Finley_NodeFile_scatter().
void Finley_NodeFile_setCoordinates | ( | Finley_NodeFile * | , |
escriptDataC * | |||
) |
References Finley_increaseStatus, Finley_setError(), 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 Esys_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 Esys_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 | ) |