IOSS  2.0
Ioad_Constants.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2010 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // * Redistributions in binary form must reproduce the above
13 // copyright notice, this list of conditions and the following
14 // disclaimer in the documentation and/or other materials provided
15 // with the distribution.
16 //
17 // * Neither the name of NTESS nor the names of its
18 // contributors may be used to endorse or promote products derived
19 // from this software without specific prior written permission.
20 //
21 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 #ifndef IOSS_Ioad_Constants_h
34 #define IOSS_Ioad_Constants_h
35 
36 #include <map>
37 #include <set>
38 #include <string>
39 #include <vector>
40 
41 namespace Ioad {
42  // Constant variables
43  const std::string Schema_version_string = "IOSS_adios_version";
44  const std::string Sideblock_separator = "::";
45  const std::string Name_separator = "/";
46  const std::string Role_meta = "role";
47  const std::string Var_type_meta = "var_type";
48  const std::string Topology_meta = "topology";
49  const std::string property_meta = "property_";
50  const std::string Parent_topology_meta = "parent_topology";
51  const std::string Time_scale_factor = "time_scale_factor";
52  const std::string Time_meta = "time";
53  const std::string Processor_id_meta = "processor_id";
54  const std::string Processor_number_meta = "processor_number";
55  const std::string globals_entity_type = "globals";
56  const std::string globals_entity_name = "";
57  const std::string region_name = "no_name";
58  const std::string original_name = "original_name";
59  constexpr const char *sideblock_names = "sideblock_names";
60 
61  const std::string coordinate_frame_name = "CoordinateFrame";
62  const std::map<std::string, std::set<std::string>> Use_transformed_storage_map = {
63  {"ElementBlock", {"connectivity_edge", "connectivity_face"}},
64  {"FaceBlock", {"connectivity_edge"}}};
65  const std::map<std::string, std::set<std::string>> Ignore_fields = {
66  {"NodeBlock",
67  {"connectivity", "connectivity_raw", "node_connectivity_status", "implicit_ids",
68  "mesh_model_coordinates_x", "mesh_model_coordinates_y", "mesh_model_coordinates_z"}},
69  {"ElementBlock", {"implicit_ids"}},
70  {"FaceBlock", {"connectivity_raw"}},
71  {"EdgeBlock", {"connectivity_raw"}},
72  {"CommSet", {"ids"}},
73  {"SideSet", {"ids"}},
74  {"SideBlock", {"side_ids", "ids", "connectivity", "connectivity_raw"}}};
75  const std::vector<std::string> Ignore_properties = {{
76  "name", // Name is already known as it is how it is encoded in the output file.
77  "_base_stk_part_name", "db_name", // Not necessary
78  "streaming_status", "streaming", // Properties added during processing. Should not be saved.
79  "entity_count" // Set in GroupingEntity constructor and can be different across mpi
80  // processes.
81  }};
82 
83 } // namespace Ioad
84 
85 #endif
Ioad::Sideblock_separator
const std::string Sideblock_separator
Definition: Ioad_Constants.h:44
Ioad::Processor_id_meta
const std::string Processor_id_meta
Definition: Ioad_Constants.h:53
Ioad::globals_entity_name
const std::string globals_entity_name
Definition: Ioad_Constants.h:56
Ioad::globals_entity_type
const std::string globals_entity_type
Definition: Ioad_Constants.h:55
Ioad::Ignore_fields
const std::map< std::string, std::set< std::string > > Ignore_fields
Definition: Ioad_Constants.h:65
Ioad
A namespace for the adios database format.
Definition: AdiosWrapper.C:37
Ioad::Time_meta
const std::string Time_meta
Definition: Ioad_Constants.h:52
Ioad::Var_type_meta
const std::string Var_type_meta
Definition: Ioad_Constants.h:47
Ioad::Processor_number_meta
const std::string Processor_number_meta
Definition: Ioad_Constants.h:54
Ioad::original_name
const std::string original_name
Definition: Ioad_Constants.h:58
Ioad::Name_separator
const std::string Name_separator
Definition: Ioad_Constants.h:45
Ioad::Time_scale_factor
const std::string Time_scale_factor
Definition: Ioad_Constants.h:51
Ioad::Schema_version_string
const std::string Schema_version_string
Definition: Ioad_Constants.h:43
Ioad::property_meta
const std::string property_meta
Definition: Ioad_Constants.h:49
Ioad::Parent_topology_meta
const std::string Parent_topology_meta
Definition: Ioad_Constants.h:50
Ioad::Use_transformed_storage_map
const std::map< std::string, std::set< std::string > > Use_transformed_storage_map
Definition: Ioad_Constants.h:62
Ioad::Role_meta
const std::string Role_meta
Definition: Ioad_Constants.h:46
Ioad::sideblock_names
constexpr const char * sideblock_names
Definition: Ioad_Constants.h:59
Ioad::coordinate_frame_name
const std::string coordinate_frame_name
Definition: Ioad_Constants.h:61
Ioad::region_name
const std::string region_name
Definition: Ioad_Constants.h:57
Ioad::Ignore_properties
const std::vector< std::string > Ignore_properties
Definition: Ioad_Constants.h:75
Ioad::Topology_meta
const std::string Topology_meta
Definition: Ioad_Constants.h:48