IOSS 2.0
Loading...
Searching...
No Matches
Ioss_Compare.C File Reference
#include <assert.h>
#include <cmath>
#include <fmt/ostream.h>
#include <iosfwd>
#include <stdint.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include "Ioss_Assembly.h"
#include "Ioss_CommSet.h"
#include "Ioss_Compare.h"
#include "Ioss_CoordinateFrame.h"
#include "Ioss_DataPool.h"
#include "Ioss_EdgeBlock.h"
#include "Ioss_EdgeSet.h"
#include "Ioss_ElementBlock.h"
#include "Ioss_ElementSet.h"
#include "Ioss_EntityType.h"
#include "Ioss_FaceBlock.h"
#include "Ioss_FaceSet.h"
#include "Ioss_Field.h"
#include "Ioss_GroupingEntity.h"
#include "Ioss_IOFactory.h"
#include "Ioss_MeshCopyOptions.h"
#include "Ioss_MeshType.h"
#include "Ioss_NodeBlock.h"
#include "Ioss_NodeSet.h"
#include "Ioss_Property.h"
#include "Ioss_Region.h"
#include "Ioss_SideBlock.h"
#include "Ioss_SideSet.h"
#include "Ioss_StructuredBlock.h"
#include "Ioss_Utils.h"
Include dependency graph for Ioss_Compare.C:

Namespaces

namespace  anonymous_namespace{Ioss_Compare.C}
 

Macros

#define COUNT_MISMATCH   "{} count mismatch ({} vs. {})"
 
#define NOTFOUND_1   "{} '{}' not found in input #1"
 
#define NOTFOUND_2   "{} '{}' not found in input #2"
 
#define VALUE_MISMATCH   "{} value mismatch ({} vs. {})"
 
#define ATTRIBUTE_FIELD_VALUE_MISMATCH   "\n\nATTRIBUTE FIELD data mismatch ({})"
 
#define COMMUNICATION_FIELD_VALUE_MISMATCH   "\n\nCOMMUNICATION FIELD data mismatch ({})"
 
#define MESH_FIELD_VALUE_MISMATCH   "\n\nMESH FIELD data mismatch ({})"
 
#define TRANSIENT_FIELD_VALUE_MISMATCH   "\n\nTRANSIENT FIELD data mismatch ({})"
 
#define TRANSIENT_FIELD_STEP_VALUE_MISMATCH   "\n\nTRANSIENT FIELD data mismatch ({} at step {}):"
 

Functions

bool anonymous_namespace{Ioss_Compare.C}::compare_properties (const Ioss::GroupingEntity *ige_1, const Ioss::GroupingEntity *ige_2, std::ostringstream &buf)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_qa_info (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2, std::ostringstream &buf)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_nodeblock (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_assemblies (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_elementblocks (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_edgeblocks (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_faceblocks (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_structuredblocks (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_nodesets (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_edgesets (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_facesets (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_elemsets (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_sidesets (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_commsets (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_coordinate_frames (const Ioss::Region &input_region_1, const Ioss::Region &input_region_2)
 
template<typename T >
bool anonymous_namespace{Ioss_Compare.C}::compare_fields (const std::vector< T * > &in_entities_1, const std::vector< T * > &in_entities_2, Ioss::Field::RoleType role, std::ostringstream &buf)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_fields (const std::vector< Ioss::StructuredBlock * > &in_entities_1, const std::vector< Ioss::StructuredBlock * > &in_entities_2, Ioss::Field::RoleType role, std::ostringstream &buf)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_fields (const Ioss::GroupingEntity *ige_1, const Ioss::GroupingEntity *ige_2, Ioss::Field::RoleType role, std::ostringstream &buf)
 
template<typename T1 , typename T2 >
bool anonymous_namespace{Ioss_Compare.C}::compare_field_data (const std::vector< T1 * > &in_entities_1, const std::vector< T2 * > &in_entities_2, Ioss::DataPool &pool, Ioss::Field::RoleType role, const Ioss::MeshCopyOptions &options, std::ostringstream &buf)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_field_data (const std::vector< Ioss::StructuredBlock * > &in_entities_1, const std::vector< Ioss::StructuredBlock * > &in_entities_2, Ioss::DataPool &pool, Ioss::Field::RoleType role, const Ioss::MeshCopyOptions &options, std::ostringstream &buf)
 
bool anonymous_namespace{Ioss_Compare.C}::compare_field_data (const Ioss::GroupingEntity *ige_1, const Ioss::GroupingEntity *ige_2, Ioss::DataPool &pool, Ioss::Field::RoleType role, const Ioss::MeshCopyOptions &options, std::ostringstream &buf, const std::string &prefix="")
 
bool anonymous_namespace{Ioss_Compare.C}::compare_field_data_internal (const Ioss::GroupingEntity *ige_1, const Ioss::GroupingEntity *ige_2, Ioss::DataPool &in_pool, const std::string &field_name, const Ioss::MeshCopyOptions &options, std::ostringstream &buf)
 
template<typename T >
bool anonymous_namespace{Ioss_Compare.C}::compare_entities (const std::vector< T * > &in_sets_1, const std::vector< T * > &in_sets_2, const std::string &uc_type, const std::string &type)
 
template<typename T1 , typename T2 >
bool anonymous_namespace{Ioss_Compare.C}::compare_field_data (T1 *data1, T2 *data2, size_t count, size_t component_count, const std::string &field_name, const std::string &entity_name, std::ostringstream &buf)
 
template<>
bool anonymous_namespace{Ioss_Compare.C}::compare_field_data (double *data1, double *data2, size_t count, size_t component_count, const std::string &field_name, const std::string &entity_name, std::ostringstream &buf)
 

Variables

double anonymous_namespace{Ioss_Compare.C}::rel_tolerance = 0.0
 
double anonymous_namespace{Ioss_Compare.C}::abs_tolerance = 0.0
 
double anonymous_namespace{Ioss_Compare.C}::tol_floor = 0.0
 

Macro Definition Documentation

◆ ATTRIBUTE_FIELD_VALUE_MISMATCH

#define ATTRIBUTE_FIELD_VALUE_MISMATCH   "\n\nATTRIBUTE FIELD data mismatch ({})"

◆ COMMUNICATION_FIELD_VALUE_MISMATCH

#define COMMUNICATION_FIELD_VALUE_MISMATCH   "\n\nCOMMUNICATION FIELD data mismatch ({})"

◆ COUNT_MISMATCH

#define COUNT_MISMATCH   "{} count mismatch ({} vs. {})"

◆ MESH_FIELD_VALUE_MISMATCH

#define MESH_FIELD_VALUE_MISMATCH   "\n\nMESH FIELD data mismatch ({})"

◆ NOTFOUND_1

#define NOTFOUND_1   "{} '{}' not found in input #1"

◆ NOTFOUND_2

#define NOTFOUND_2   "{} '{}' not found in input #2"

◆ TRANSIENT_FIELD_STEP_VALUE_MISMATCH

#define TRANSIENT_FIELD_STEP_VALUE_MISMATCH   "\n\nTRANSIENT FIELD data mismatch ({} at step {}):"

◆ TRANSIENT_FIELD_VALUE_MISMATCH

#define TRANSIENT_FIELD_VALUE_MISMATCH   "\n\nTRANSIENT FIELD data mismatch ({})"

◆ VALUE_MISMATCH

#define VALUE_MISMATCH   "{} value mismatch ({} vs. {})"