OGS
|
Definition in file ReorderMesh.cpp.
#include <tclap/CmdLine.h>
#include <memory>
#include <string>
#include "BaseLib/MPI.h"
#include "InfoLib/GitInfo.h"
#include "MeshLib/Elements/Element.h"
#include "MeshLib/IO/readMeshFromFile.h"
#include "MeshLib/IO/writeMeshToFile.h"
#include "MeshLib/Mesh.h"
#include "MeshLib/Node.h"
Go to the source code of this file.
Functions | |
std::vector< std::size_t > | generateBulkIDsReverseMapping (std::vector< std::size_t > const &bulk_ids) |
template<typename T > | |
bool | reorderProperty (MeshLib::PropertyVector< T > const &original_pv, std::vector< std::size_t > const &bulk_ids, MeshLib::PropertyVector< T > &reordered_pv) |
template<typename T > | |
bool | reorderProperty (MeshLib::Properties const &original_properties, std::vector< std::size_t > const &bulk_ids, std::string const &property_name, MeshLib::Properties &reordered_properties) |
void | reorderProperties (MeshLib::Properties const &original_properties, std::vector< std::size_t > const &bulk_ids, std::vector< std::string > const &property_names, MeshLib::Properties &reordered_properties) |
int | main (int argc, char *argv[]) |
std::vector< std::size_t > generateBulkIDsReverseMapping | ( | std::vector< std::size_t > const & | bulk_ids | ) |
Definition at line 23 of file ReorderMesh.cpp.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 117 of file ReorderMesh.cpp.
References MeshLib::bulkNodeIDs(), MeshLib::Cell, MeshLib::Edge, MeshLib::Face, generateBulkIDsReverseMapping(), MeshLib::getBulkIDString(), MeshLib::IntegrationPoint, MeshLib::Node, OGS_FATAL, GitInfoLib::GitInfo::ogs_version, MeshLib::IO::readMeshFromFile(), reorderProperties(), WARN(), and MeshLib::IO::writeMeshToFile().
void reorderProperties | ( | MeshLib::Properties const & | original_properties, |
std::vector< std::size_t > const & | bulk_ids, | ||
std::vector< std::string > const & | property_names, | ||
MeshLib::Properties & | reordered_properties ) |
Definition at line 83 of file ReorderMesh.cpp.
References OGS_FATAL, and reorderProperty().
Referenced by main().
bool reorderProperty | ( | MeshLib::Properties const & | original_properties, |
std::vector< std::size_t > const & | bulk_ids, | ||
std::string const & | property_name, | ||
MeshLib::Properties & | reordered_properties ) |
Definition at line 67 of file ReorderMesh.cpp.
References MeshLib::Properties::existsPropertyVector(), MeshLib::Properties::getPropertyVector(), and reorderProperty().
bool reorderProperty | ( | MeshLib::PropertyVector< T > const & | original_pv, |
std::vector< std::size_t > const & | bulk_ids, | ||
MeshLib::PropertyVector< T > & | reordered_pv ) |
Definition at line 38 of file ReorderMesh.cpp.
References MeshLib::PropertyVector< PROP_VAL_TYPE >::getComponent(), MeshLib::PropertyVectorBase::getNumberOfGlobalComponents(), MeshLib::PropertyVectorBase::getPropertyName(), and OGS_FATAL.
Referenced by reorderProperties(), and reorderProperty().