|
IOSS
2.0
|
#include <catch.hpp>#include "Ioss_CommSet.h"#include "Ioss_EdgeBlock.h"#include "Ioss_EdgeSet.h"#include "Ioss_ElementBlock.h"#include "Ioss_ElementSet.h"#include "Ioss_FaceBlock.h"#include "Ioss_FaceSet.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_VariableType.h"#include <Ioss_SubSystem.h>#include "Ioss_DatabaseIO.h"#include "Ioss_IOFactory.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 | CATCH_CONFIG_RUNNER |
| #define | MPI_COMM_WORLD 1 |
| #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", "[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", "[Ioad]") | |
Variables | |
| std::vector< std::string > | ignored_properties = {"database_name"} |
| std::vector< std::string > | ignored_fields = {"implicit_ids"} |
| std::vector< std::string > | ignore_errors = {"owning_processor"} |
| #define CATCH_CONFIG_RUNNER |
| #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 | |||
| ) |
| #define MPI_COMM_WORLD 1 |
| 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" | , |
| "" | [Ioad] | ||
| ) |
| TEST_CASE | ( | "Ioad_BlockNames" | , |
| "" | [Ioad] | ||
| ) |
| 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"} |