IOSS 2.0
Loading...
Searching...
No Matches
Iotm::unit_test::TextMeshFixture Class Reference

#include <UnitTestIotmTextMeshFixture.h>

Inheritance diagram for Iotm::unit_test::TextMeshFixture:
[legend]
Collaboration diagram for Iotm::unit_test::TextMeshFixture:
[legend]

Classes

class  CoordinateVerifier
 
struct  ElementInfo
 
struct  PartInfo
 

Protected Types

using PartNameId = std::pair<std::string, unsigned>
 

Protected Member Functions

 TextMeshFixture (unsigned spatialDimension)
 
 ~TextMeshFixture ()
 
int get_parallel_size ()
 
int get_parallel_rank ()
 
void fill_mesh (const std::string &meshDesc)
 
Ioss_MPI_Comm get_comm () const
 
std::string get_mesh_desc (const std::string &textMeshDesc)
 
std::string get_mesh_desc (const std::string &textMeshDesc, unsigned dimension)
 
void verify_shared_nodes (const EntityIdVector &nodeIds, int sharingProc)
 
void verify_num_elements (size_t goldCount)
 
void verify_single_element (EntityId elemId, const std::string &textMeshTopologyName, const EntityIdVector &nodeIds)
 
void verify_num_sidesets (size_t goldCount)
 
void verify_sideset_subset (const Ioss::SideSet *sideset, const unsigned id, const std::vector< std::string > &subsetNames)
 
void verify_single_sideset (const std::string &name, const unsigned id, const SideVector &goldElemSidePairs)
 
void verify_single_sideset (const std::string &name, const unsigned id, const std::vector< std::string > &subsets, const SideVector &goldElemSidePairs)
 
void verify_num_nodesets (size_t goldCount)
 
void verify_single_nodeset (const std::string &name, const unsigned id, const EntityIdVector &goldNodeIds)
 
void verify_num_assemblies (size_t goldCount)
 
void verify_single_assembly (const std::string &name, const unsigned id, const std::vector< std::string > &goldMembers)
 
void verify_part_membership (const std::vector< PartInfo > golds)
 
void verify_part_ids (const std::vector< PartNameId > &golds)
 
void verify_nodes_on_element (const ElementInfo &info, const EntityIdVector &goldNodeIds)
 
void verify_coordinates (const EntityIdVector &goldNodeIds, const std::vector< double > &goldCoordinates)
 
void setup_text_mesh (const std::string &textMeshDesc)
 
std::string get_topology_name (const std::string &textMeshTopologyName)
 
size_t db_api_int_size () const
 
size_t get_node_sharing_count (int sharingProc) const
 
template<typename INT >
size_t get_node_sharing_count_impl (int sharingProc) const
 
template<typename INT >
EntityIdVector get_element_ids_from_block_impl (const Ioss::ElementBlock *block) const
 
EntityIdVector get_element_ids_from_block (const Ioss::ElementBlock *block) const
 
template<typename INT >
EntityIdVector get_node_ids_from_nodeset_impl (const Ioss::NodeSet *ns) const
 
EntityIdVector get_node_ids_from_nodeset (const Ioss::NodeSet *ns) const
 
template<typename INT >
SideVector get_element_side_pairs_from_sideset_impl (const Ioss::SideSet *ss) const
 
SideVector get_element_side_pairs_from_sideset (const Ioss::SideSet *ss) const
 
template<typename INT >
ElementInfo get_element_info_from_block_impl (EntityId elemId, const Ioss::ElementBlock *block) const
 
template<typename INT >
ElementInfo get_element_info_impl (EntityId elemId) const
 
ElementInfo get_element_info (EntityId elemId) const
 
template<typename INT >
size_t get_element_count_impl () const
 
size_t get_element_count () const
 
template<typename INT >
bool node_is_shared_with_proc_impl (EntityId nodeId, int sharingProc) const
 
bool node_is_shared_with_proc (EntityId nodeId, int sharingProc) const
 
bool is_valid_element (const ElementInfo &info) const
 
Ioss::ElementBlockget_element_block (const std::string &blockName) const
 
Ioss::NodeSetget_nodeset (const std::string &name) const
 
Ioss::SideSetget_sideset (const std::string &name) const
 
Ioss::Assemblyget_assembly (const std::string &name) const
 
void verify_block (Ioss::ElementBlock *block)
 
void verify_elements_on_block (const Ioss::ElementBlock *block, const std::set< EntityId > &goldIds)
 
void create_ioss_region ()
 
void create_database (const std::string &fileName, const std::string &meshType)
 
void filename_substitution (std::string &filename)
 
std::pair< std::string, std::string > get_database_type_and_filename (const std::string &meshDesc)
 

Protected Attributes

unsigned m_spatialDimension = 3
 
Ioss::PropertyManager m_propertyManager
 
Ioss::DatabaseIOm_database = nullptr
 
Ioss::Regionm_region = nullptr
 
IossTopologyMapping m_topologyMapping
 

Member Typedef Documentation

◆ PartNameId

using Iotm::unit_test::TextMeshFixture::PartNameId = std::pair<std::string, unsigned>
protected

Constructor & Destructor Documentation

◆ TextMeshFixture()

Iotm::unit_test::TextMeshFixture::TextMeshFixture ( unsigned spatialDimension)
inlineprotected

◆ ~TextMeshFixture()

Iotm::unit_test::TextMeshFixture::~TextMeshFixture ( )
inlineprotected

Member Function Documentation

◆ create_database()

void Iotm::unit_test::TextMeshFixture::create_database ( const std::string & fileName,
const std::string & meshType )
inlineprotected

◆ create_ioss_region()

void Iotm::unit_test::TextMeshFixture::create_ioss_region ( )
inlineprotected

◆ db_api_int_size()

size_t Iotm::unit_test::TextMeshFixture::db_api_int_size ( ) const
inlineprotected

◆ filename_substitution()

void Iotm::unit_test::TextMeshFixture::filename_substitution ( std::string & filename)
inlineprotected

◆ fill_mesh()

void Iotm::unit_test::TextMeshFixture::fill_mesh ( const std::string & meshDesc)
inlineprotected

◆ get_assembly()

Ioss::Assembly * Iotm::unit_test::TextMeshFixture::get_assembly ( const std::string & name) const
inlineprotected

◆ get_comm()

Ioss_MPI_Comm Iotm::unit_test::TextMeshFixture::get_comm ( ) const
inlineprotected

◆ get_database_type_and_filename()

std::pair< std::string, std::string > Iotm::unit_test::TextMeshFixture::get_database_type_and_filename ( const std::string & meshDesc)
inlineprotected

◆ get_element_block()

Ioss::ElementBlock * Iotm::unit_test::TextMeshFixture::get_element_block ( const std::string & blockName) const
inlineprotected

◆ get_element_count()

size_t Iotm::unit_test::TextMeshFixture::get_element_count ( ) const
inlineprotected

◆ get_element_count_impl()

template<typename INT >
size_t Iotm::unit_test::TextMeshFixture::get_element_count_impl ( ) const
inlineprotected

◆ get_element_ids_from_block()

EntityIdVector Iotm::unit_test::TextMeshFixture::get_element_ids_from_block ( const Ioss::ElementBlock * block) const
inlineprotected

◆ get_element_ids_from_block_impl()

template<typename INT >
EntityIdVector Iotm::unit_test::TextMeshFixture::get_element_ids_from_block_impl ( const Ioss::ElementBlock * block) const
inlineprotected

◆ get_element_info()

ElementInfo Iotm::unit_test::TextMeshFixture::get_element_info ( EntityId elemId) const
inlineprotected

◆ get_element_info_from_block_impl()

template<typename INT >
ElementInfo Iotm::unit_test::TextMeshFixture::get_element_info_from_block_impl ( EntityId elemId,
const Ioss::ElementBlock * block ) const
inlineprotected

◆ get_element_info_impl()

template<typename INT >
ElementInfo Iotm::unit_test::TextMeshFixture::get_element_info_impl ( EntityId elemId) const
inlineprotected

◆ get_element_side_pairs_from_sideset()

SideVector Iotm::unit_test::TextMeshFixture::get_element_side_pairs_from_sideset ( const Ioss::SideSet * ss) const
inlineprotected

◆ get_element_side_pairs_from_sideset_impl()

template<typename INT >
SideVector Iotm::unit_test::TextMeshFixture::get_element_side_pairs_from_sideset_impl ( const Ioss::SideSet * ss) const
inlineprotected

◆ get_mesh_desc() [1/2]

std::string Iotm::unit_test::TextMeshFixture::get_mesh_desc ( const std::string & textMeshDesc)
inlineprotected

◆ get_mesh_desc() [2/2]

std::string Iotm::unit_test::TextMeshFixture::get_mesh_desc ( const std::string & textMeshDesc,
unsigned dimension )
inlineprotected

◆ get_node_ids_from_nodeset()

EntityIdVector Iotm::unit_test::TextMeshFixture::get_node_ids_from_nodeset ( const Ioss::NodeSet * ns) const
inlineprotected

◆ get_node_ids_from_nodeset_impl()

template<typename INT >
EntityIdVector Iotm::unit_test::TextMeshFixture::get_node_ids_from_nodeset_impl ( const Ioss::NodeSet * ns) const
inlineprotected

◆ get_node_sharing_count()

size_t Iotm::unit_test::TextMeshFixture::get_node_sharing_count ( int sharingProc) const
inlineprotected

◆ get_node_sharing_count_impl()

template<typename INT >
size_t Iotm::unit_test::TextMeshFixture::get_node_sharing_count_impl ( int sharingProc) const
inlineprotected

◆ get_nodeset()

Ioss::NodeSet * Iotm::unit_test::TextMeshFixture::get_nodeset ( const std::string & name) const
inlineprotected

◆ get_parallel_rank()

int Iotm::unit_test::TextMeshFixture::get_parallel_rank ( )
inlineprotected

◆ get_parallel_size()

int Iotm::unit_test::TextMeshFixture::get_parallel_size ( )
inlineprotected

◆ get_sideset()

Ioss::SideSet * Iotm::unit_test::TextMeshFixture::get_sideset ( const std::string & name) const
inlineprotected

◆ get_topology_name()

std::string Iotm::unit_test::TextMeshFixture::get_topology_name ( const std::string & textMeshTopologyName)
inlineprotected

◆ is_valid_element()

bool Iotm::unit_test::TextMeshFixture::is_valid_element ( const ElementInfo & info) const
inlineprotected

◆ node_is_shared_with_proc()

bool Iotm::unit_test::TextMeshFixture::node_is_shared_with_proc ( EntityId nodeId,
int sharingProc ) const
inlineprotected

◆ node_is_shared_with_proc_impl()

template<typename INT >
bool Iotm::unit_test::TextMeshFixture::node_is_shared_with_proc_impl ( EntityId nodeId,
int sharingProc ) const
inlineprotected

◆ setup_text_mesh()

void Iotm::unit_test::TextMeshFixture::setup_text_mesh ( const std::string & textMeshDesc)
inlineprotected

◆ verify_block()

void Iotm::unit_test::TextMeshFixture::verify_block ( Ioss::ElementBlock * block)
inlineprotected

◆ verify_coordinates()

void Iotm::unit_test::TextMeshFixture::verify_coordinates ( const EntityIdVector & goldNodeIds,
const std::vector< double > & goldCoordinates )
inlineprotected

◆ verify_elements_on_block()

void Iotm::unit_test::TextMeshFixture::verify_elements_on_block ( const Ioss::ElementBlock * block,
const std::set< EntityId > & goldIds )
inlineprotected

◆ verify_nodes_on_element()

void Iotm::unit_test::TextMeshFixture::verify_nodes_on_element ( const ElementInfo & info,
const EntityIdVector & goldNodeIds )
inlineprotected

◆ verify_num_assemblies()

void Iotm::unit_test::TextMeshFixture::verify_num_assemblies ( size_t goldCount)
inlineprotected

◆ verify_num_elements()

void Iotm::unit_test::TextMeshFixture::verify_num_elements ( size_t goldCount)
inlineprotected

◆ verify_num_nodesets()

void Iotm::unit_test::TextMeshFixture::verify_num_nodesets ( size_t goldCount)
inlineprotected

◆ verify_num_sidesets()

void Iotm::unit_test::TextMeshFixture::verify_num_sidesets ( size_t goldCount)
inlineprotected

◆ verify_part_ids()

void Iotm::unit_test::TextMeshFixture::verify_part_ids ( const std::vector< PartNameId > & golds)
inlineprotected

◆ verify_part_membership()

void Iotm::unit_test::TextMeshFixture::verify_part_membership ( const std::vector< PartInfo > golds)
inlineprotected

◆ verify_shared_nodes()

void Iotm::unit_test::TextMeshFixture::verify_shared_nodes ( const EntityIdVector & nodeIds,
int sharingProc )
inlineprotected

◆ verify_sideset_subset()

void Iotm::unit_test::TextMeshFixture::verify_sideset_subset ( const Ioss::SideSet * sideset,
const unsigned id,
const std::vector< std::string > & subsetNames )
inlineprotected

◆ verify_single_assembly()

void Iotm::unit_test::TextMeshFixture::verify_single_assembly ( const std::string & name,
const unsigned id,
const std::vector< std::string > & goldMembers )
inlineprotected

◆ verify_single_element()

void Iotm::unit_test::TextMeshFixture::verify_single_element ( EntityId elemId,
const std::string & textMeshTopologyName,
const EntityIdVector & nodeIds )
inlineprotected

◆ verify_single_nodeset()

void Iotm::unit_test::TextMeshFixture::verify_single_nodeset ( const std::string & name,
const unsigned id,
const EntityIdVector & goldNodeIds )
inlineprotected

◆ verify_single_sideset() [1/2]

void Iotm::unit_test::TextMeshFixture::verify_single_sideset ( const std::string & name,
const unsigned id,
const SideVector & goldElemSidePairs )
inlineprotected

◆ verify_single_sideset() [2/2]

void Iotm::unit_test::TextMeshFixture::verify_single_sideset ( const std::string & name,
const unsigned id,
const std::vector< std::string > & subsets,
const SideVector & goldElemSidePairs )
inlineprotected

Member Data Documentation

◆ m_database

Ioss::DatabaseIO* Iotm::unit_test::TextMeshFixture::m_database = nullptr
protected

◆ m_propertyManager

Ioss::PropertyManager Iotm::unit_test::TextMeshFixture::m_propertyManager
protected

◆ m_region

Ioss::Region* Iotm::unit_test::TextMeshFixture::m_region = nullptr
protected

◆ m_spatialDimension

unsigned Iotm::unit_test::TextMeshFixture::m_spatialDimension = 3
protected

◆ m_topologyMapping

IossTopologyMapping Iotm::unit_test::TextMeshFixture::m_topologyMapping
protected

The documentation for this class was generated from the following file: