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

#include <UnitTestIotmTextMeshFixture.h>

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

Public Member Functions

 CoordinateVerifier (const Ioss::Region &r, const EntityIdVector &ids, const std::vector< double > &coords)
 
void verify ()
 

Private Member Functions

template<typename T >
size_t field_data_from_ioss (Ioss::GroupingEntity *io_entity, const std::string &io_fld_name, std::vector< T > &io_field_data)
 
size_t db_api_int_size () const
 
template<typename INT >
EntityIdVector get_node_ids_impl () const
 
EntityIdVector get_node_ids () const
 
template<typename INT >
bool is_valid_node_impl (EntityId nodeId) const
 
bool is_valid_node (EntityId nodeId) const
 
void verify_num_nodes ()
 
void fill_coordinate_map (const EntityIdVector &nodeIds, const std::vector< double > &coordinates)
 
void fill_coordinates_from_ioss ()
 
const std::vector< double > & operator[] (const EntityId nodeId) const
 
const double * get_nodal_coordinates (const EntityId &nodeId) const
 
void verify_nodal_coordinates (const EntityId &nodeId, const double *goldCoords, const double *nodalCoords)
 
std::string error_message (const EntityId &nodeId, unsigned coordIndex)
 

Private Attributes

const Ioss::Regionregion
 
const unsigned spatialDim
 
const EntityIdVectorgoldNodeIds
 
const std::vector< double > & goldCoordinates
 
std::unordered_map< EntityId, std::vector< double > > m_nodalCoords
 

Constructor & Destructor Documentation

◆ CoordinateVerifier()

Iotm::unit_test::TextMeshFixture::CoordinateVerifier::CoordinateVerifier ( const Ioss::Region & r,
const EntityIdVector & ids,
const std::vector< double > & coords )
inline

Member Function Documentation

◆ db_api_int_size()

size_t Iotm::unit_test::TextMeshFixture::CoordinateVerifier::db_api_int_size ( ) const
inlineprivate

◆ error_message()

std::string Iotm::unit_test::TextMeshFixture::CoordinateVerifier::error_message ( const EntityId & nodeId,
unsigned coordIndex )
inlineprivate

◆ field_data_from_ioss()

template<typename T >
size_t Iotm::unit_test::TextMeshFixture::CoordinateVerifier::field_data_from_ioss ( Ioss::GroupingEntity * io_entity,
const std::string & io_fld_name,
std::vector< T > & io_field_data )
inlineprivate

◆ fill_coordinate_map()

void Iotm::unit_test::TextMeshFixture::CoordinateVerifier::fill_coordinate_map ( const EntityIdVector & nodeIds,
const std::vector< double > & coordinates )
inlineprivate

◆ fill_coordinates_from_ioss()

void Iotm::unit_test::TextMeshFixture::CoordinateVerifier::fill_coordinates_from_ioss ( )
inlineprivate

◆ get_nodal_coordinates()

const double * Iotm::unit_test::TextMeshFixture::CoordinateVerifier::get_nodal_coordinates ( const EntityId & nodeId) const
inlineprivate

◆ get_node_ids()

EntityIdVector Iotm::unit_test::TextMeshFixture::CoordinateVerifier::get_node_ids ( ) const
inlineprivate

◆ get_node_ids_impl()

template<typename INT >
EntityIdVector Iotm::unit_test::TextMeshFixture::CoordinateVerifier::get_node_ids_impl ( ) const
inlineprivate

◆ is_valid_node()

bool Iotm::unit_test::TextMeshFixture::CoordinateVerifier::is_valid_node ( EntityId nodeId) const
inlineprivate

◆ is_valid_node_impl()

template<typename INT >
bool Iotm::unit_test::TextMeshFixture::CoordinateVerifier::is_valid_node_impl ( EntityId nodeId) const
inlineprivate

◆ operator[]()

const std::vector< double > & Iotm::unit_test::TextMeshFixture::CoordinateVerifier::operator[] ( const EntityId nodeId) const
inlineprivate

◆ verify()

void Iotm::unit_test::TextMeshFixture::CoordinateVerifier::verify ( )
inline

◆ verify_nodal_coordinates()

void Iotm::unit_test::TextMeshFixture::CoordinateVerifier::verify_nodal_coordinates ( const EntityId & nodeId,
const double * goldCoords,
const double * nodalCoords )
inlineprivate

◆ verify_num_nodes()

void Iotm::unit_test::TextMeshFixture::CoordinateVerifier::verify_num_nodes ( )
inlineprivate

Member Data Documentation

◆ goldCoordinates

const std::vector<double>& Iotm::unit_test::TextMeshFixture::CoordinateVerifier::goldCoordinates
private

◆ goldNodeIds

const EntityIdVector& Iotm::unit_test::TextMeshFixture::CoordinateVerifier::goldNodeIds
private

◆ m_nodalCoords

std::unordered_map<EntityId, std::vector<double> > Iotm::unit_test::TextMeshFixture::CoordinateVerifier::m_nodalCoords
private

◆ region

const Ioss::Region& Iotm::unit_test::TextMeshFixture::CoordinateVerifier::region
private

◆ spatialDim

const unsigned Iotm::unit_test::TextMeshFixture::CoordinateVerifier::spatialDim
private

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