IOSS 2.0
Loading...
Searching...
No Matches
Ioss_DBUsage.h
Go to the documentation of this file.
1// Copyright(C) 1999-2023 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#pragma once
8
9namespace Ioss {
10
11 /** \brief Specifies how an Ioss::DatabaseIO object will be used.
12 */
14 WRITE_RESTART = 1, /**< The current state of the simulation, including model and field data
15 will be written to this database. */
16 READ_RESTART = 2, /**< A previous state of the simulation, including model and field data
17 will be read from this database. */
18 WRITE_RESULTS = 4, /**< Mesh-based results data, such as nodal displacements, will be written
19 to this database. */
20 READ_MODEL = 8, /**< Model data such as node coordinates, element connectivities will be read
21 from this database. */
23 16, /**< Global results data, such as total energy, will be written to this database. */
25 32, /**< Text-based results data for particular nodes, edges, faces, elements,
26 or global variables at particular times will be written to this database. */
27 QUERY_TIMESTEPS_ONLY = 64 /**< Special mode where the application is *only* going to query
28 the number of timesteps and the timestep values on the database.
29 All other region data will not exist. */
30 };
31
41
42 inline bool is_input_event(Ioss::DatabaseUsage db_usage)
43 {
44 return db_usage == Ioss::READ_MODEL || db_usage == Ioss::READ_RESTART ||
46 }
47} // namespace Ioss
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
bool is_input_event(Ioss::DatabaseUsage db_usage)
Definition Ioss_DBUsage.h:42
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition Ioss_DBUsage.h:13
@ WRITE_RESTART
Definition Ioss_DBUsage.h:14
@ WRITE_HEARTBEAT
Definition Ioss_DBUsage.h:24
@ WRITE_RESULTS
Definition Ioss_DBUsage.h:18
@ READ_MODEL
Definition Ioss_DBUsage.h:20
@ WRITE_HISTORY
Definition Ioss_DBUsage.h:22
@ READ_RESTART
Definition Ioss_DBUsage.h:16
@ QUERY_TIMESTEPS_ONLY
Definition Ioss_DBUsage.h:27
IfDatabaseExistsBehavior
Definition Ioss_DBUsage.h:32
@ DB_ABORT
Definition Ioss_DBUsage.h:37
@ DB_MODIFY
Definition Ioss_DBUsage.h:36
@ DB_APPEND
Definition Ioss_DBUsage.h:34
@ DB_OVERWRITE
Definition Ioss_DBUsage.h:33
@ DB_ADD_SUFFIX
Definition Ioss_DBUsage.h:38
@ DB_APPEND_GROUP
Definition Ioss_DBUsage.h:35
@ DB_ADD_SUFFIX_OVERWRITE
Definition Ioss_DBUsage.h:39