IOSS  2.0
Ioss_DBUsage.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 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 // See packages/seacas/LICENSE for details
6 
7 #ifndef IOSS_Ioss_DBUsage_h
8 #define IOSS_Ioss_DBUsage_h
9 
10 namespace Ioss {
11 
12  /** \brief Specifies how an Ioss::DatabaseIO object will be used.
13  */
15  WRITE_RESTART = 1, /**< The current state of the simulation, including model and field data
16  will be written to this database. */
17  READ_RESTART = 2, /**< A previous state of the simulation, including model and field data
18  will be read from this database. */
19  WRITE_RESULTS = 4, /**< Mesh-based results data, such as nodal displacements, will be written
20  to this database. */
21  READ_MODEL = 8, /**< Model data such as node coordinates, element connectivities will be read
22  from this database. */
24  16, /**< Global results data, such as total energy, will be written to this database. */
26  32 /**< Text-based results data for particular nodes, edges, faces, elements,
27  or global variables at particular times will be written to this database. */
28  };
29 
37  }; // Used if topology change in DB_OVERWRITE mode
38 
39  inline bool is_input_event(Ioss::DatabaseUsage db_usage)
40  {
41  return db_usage == Ioss::READ_MODEL || db_usage == Ioss::READ_RESTART;
42  }
43 } // namespace Ioss
44 #endif // IOSS_Ioss_DBUsage_h
Ioss::is_input_event
bool is_input_event(Ioss::DatabaseUsage db_usage)
Definition: Ioss_DBUsage.h:39
Ioss::READ_RESTART
@ READ_RESTART
Definition: Ioss_DBUsage.h:17
Ioss::DB_OVERWRITE
@ DB_OVERWRITE
Definition: Ioss_DBUsage.h:31
Ioss::IfDatabaseExistsBehavior
IfDatabaseExistsBehavior
Definition: Ioss_DBUsage.h:30
Ioss::DB_ADD_SUFFIX
@ DB_ADD_SUFFIX
Definition: Ioss_DBUsage.h:35
Ioss::DB_ADD_SUFFIX_OVERWRITE
@ DB_ADD_SUFFIX_OVERWRITE
Definition: Ioss_DBUsage.h:36
Ioss::DatabaseUsage
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition: Ioss_DBUsage.h:14
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioss::DB_APPEND_GROUP
@ DB_APPEND_GROUP
Definition: Ioss_DBUsage.h:33
Ioss::WRITE_HEARTBEAT
@ WRITE_HEARTBEAT
Definition: Ioss_DBUsage.h:25
Ioss::WRITE_HISTORY
@ WRITE_HISTORY
Definition: Ioss_DBUsage.h:23
Ioss::WRITE_RESULTS
@ WRITE_RESULTS
Definition: Ioss_DBUsage.h:19
Ioss::WRITE_RESTART
@ WRITE_RESTART
Definition: Ioss_DBUsage.h:15
Ioss::DB_ABORT
@ DB_ABORT
Definition: Ioss_DBUsage.h:34
Ioss::READ_MODEL
@ READ_MODEL
Definition: Ioss_DBUsage.h:21
Ioss::DB_APPEND
@ DB_APPEND
Definition: Ioss_DBUsage.h:32