IOSS 2.0
|
#include <catch2/catch_session.hpp>
#include <catch2/catch_test_macros.hpp>
#include "Ioss_CodeTypes.h"
#include "Ioss_SubSystem.h"
#include "init/Ionit_Initializer.h"
#include "adios/Ioad_Constants.h"
#include "adios/Ioad_Helper.h"
#include "adios/Ioad_TemplateToValue.h"
#include <algorithm>
#include <iostream>
#include <ostream>
#include <stddef.h>
#include <stdlib.h>
#include <string>
#include <vector>
Macros | |
#define | COMPARE_POINTERS_AND_THROW_WITH_INDEX(obj_type, obj1, obj2, meth, index) |
#define | COMPARE_VALUES_AND_THROW(obj_type, obj1, obj2, meth) |
#define | COMPARE_VECTORS_AND_THROW(name, vec1, vec2) |
Functions | |
int | main (int argc, char *argv[]) |
void | CompareVariableType (const Ioss::VariableType *var1, const Ioss::VariableType *var2) |
template<typename T > | |
bool | CompareVectors (const std::vector< T > &v1, const std::vector< T > &v2) |
void | CompareFields (const Ioss::Field &field1, const Ioss::Field &field2) |
void | CompareProperties (const Ioss::Property &prop1, const Ioss::Property &prop2) |
template<typename T , typename TF > | |
void | CompareFieldData (const T entity_block1, const T entity_block2, const std::string &field_name) |
template<typename T > | |
void | CompareFieldData (const T entity_block1, const T entity_block2, const std::string &field_name) |
template<typename T > | |
void | CompareAllProperties (const T &obj1, const T &obj2) |
template<typename T > | |
void | CompareContainers (const T &entity_blocks1, const T &entity_blocks2, Ioss::State state) |
void | CompareRegions (Ioss::Region *region1, Ioss::Region *region2) |
void | CompareDB (Ioss::DatabaseIO *db1, Ioss::DatabaseIO *db2) |
template<typename Entity , typename T > | |
void | put_field_data (std::string field_name, int local_size, size_t component_count, Entity *e) |
template<typename Entity > | |
void | write_fields (Entity *e, Ioss::Field::RoleType role) |
void | create_phantom (Ioss::DatabaseIO *db) |
void | create_database (std::string type, std::string file_name) |
TEST_CASE ("Ioad") | |
template<typename T > | |
const std::string | get_entity_type_test () |
template<> | |
const std::string | get_entity_type_test< Ioss::NodeBlock > () |
template<> | |
const std::string | get_entity_type_test< Ioss::SideSet > () |
template<> | |
const std::string | get_entity_type_test< Ioss::SideBlock > () |
TEST_CASE ("Ioad_BlockNames") | |
Variables | |
std::vector< std::string > | ignored_properties = {"database_name", "base_filename", "database_type"} |
std::vector< std::string > | ignored_fields = {"implicit_ids"} |
std::vector< std::string > | ignore_errors = {"owning_processor"} |
#define COMPARE_POINTERS_AND_THROW_WITH_INDEX | ( | obj_type, | |
obj1, | |||
obj2, | |||
meth, | |||
index ) |
#define COMPARE_VALUES_AND_THROW | ( | obj_type, | |
obj1, | |||
obj2, | |||
meth ) |
#define COMPARE_VECTORS_AND_THROW | ( | name, | |
vec1, | |||
vec2 ) |
void CompareAllProperties | ( | const T & | obj1, |
const T & | obj2 ) |
void CompareContainers | ( | const T & | entity_blocks1, |
const T & | entity_blocks2, | ||
Ioss::State | state ) |
void CompareDB | ( | Ioss::DatabaseIO * | db1, |
Ioss::DatabaseIO * | db2 ) |
void CompareFieldData | ( | const T | entity_block1, |
const T | entity_block2, | ||
const std::string & | field_name ) |
void CompareFieldData | ( | const T | entity_block1, |
const T | entity_block2, | ||
const std::string & | field_name ) |
void CompareFields | ( | const Ioss::Field & | field1, |
const Ioss::Field & | field2 ) |
void CompareProperties | ( | const Ioss::Property & | prop1, |
const Ioss::Property & | prop2 ) |
void CompareRegions | ( | Ioss::Region * | region1, |
Ioss::Region * | region2 ) |
void CompareVariableType | ( | const Ioss::VariableType * | var1, |
const Ioss::VariableType * | var2 ) |
bool CompareVectors | ( | const std::vector< T > & | v1, |
const std::vector< T > & | v2 ) |
void create_database | ( | std::string | type, |
std::string | file_name ) |
void create_phantom | ( | Ioss::DatabaseIO * | db | ) |
const std::string get_entity_type_test | ( | ) |
const std::string get_entity_type_test< Ioss::NodeBlock > | ( | ) |
const std::string get_entity_type_test< Ioss::SideBlock > | ( | ) |
const std::string get_entity_type_test< Ioss::SideSet > | ( | ) |
int main | ( | int | argc, |
char * | argv[] ) |
void put_field_data | ( | std::string | field_name, |
int | local_size, | ||
size_t | component_count, | ||
Entity * | e ) |
TEST_CASE | ( | "Ioad" | ) |
TEST_CASE | ( | "Ioad_BlockNames" | ) |
void write_fields | ( | Entity * | e, |
Ioss::Field::RoleType | role ) |
std::vector<std::string> ignore_errors = {"owning_processor"} |
std::vector<std::string> ignored_fields = {"implicit_ids"} |
std::vector<std::string> ignored_properties = {"database_name", "base_filename", "database_type"} |