| 1 |
// Copyright(C) 2024 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 |
|
| 9 |
namespace Ioss { |
| 10 |
|
| 11 |
/*! The TopologyModified enumeration is used as an argument to the |
| 12 |
* topology_modified() functions in io to |
| 13 |
* specify the type of topology modification that has occurred. The |
| 14 |
* calls to topology_modified() are cumulative between |
| 15 |
* output steps, so a call with TOPOLOGY_REORDER followed by a call |
| 16 |
* with TOPOLOGY_SHUFFLE will do the right thing. Typical examples |
| 17 |
* of when these would be used are: |
| 18 |
* - TOPOLOGY_SAME: No change, but easier to call function than not. |
| 19 |
* - TOPOLOGY_REORDER: Element Death which reorders the Registrars |
| 20 |
* - TOPOLOGY_SHUFFLE: Load Balancing |
| 21 |
* - TOPOLOGY_HADAPT: H-Adaptivity |
| 22 |
* - TOPOLOGY_GHOST: Ghost nodes/edges/faces/elements created/destroyed |
| 23 |
* - TOPOLOGY_GEOMETRY: Model data is modified, overlap removal. |
| 24 |
* - TOPOLOGY_CREATEDELETE: Surface erosion, particle creation |
| 25 |
* - TOPOLOGY_UNKNOWN: Something else, catchall option. |
| 26 |
*/ |
| 27 |
enum TopologyModified { |
| 28 |
TOPOLOGY_SAME = (0), //!< No change, also used for initialization |
| 29 |
TOPOLOGY_REORDER = |
| 30 |
(1U << 0), //!< Data structures reordered on processor, no change between procs. |
| 31 |
TOPOLOGY_SHUFFLE = (1U << 1), //!< Globally the same, data moved among processors. |
| 32 |
TOPOLOGY_HADAPT = (1U << 2), //!< Elements split/combined; not moved cross-proc |
| 33 |
TOPOLOGY_GHOST = (1U << 3), //!< Ghost entities created/destroyed |
| 34 |
TOPOLOGY_GEOMETRY = |
| 35 |
(1U << 4), //!< Geometry (mesh coordinates) modified. Restart needs to know this. |
| 36 |
TOPOLOGY_CREATEFACE = (1U << 5), //!< Face/Edge are created/deleted. |
| 37 |
TOPOLOGY_CREATEELEM = (1U << 6), //!< Elements are created/deleted. |
| 38 |
TOPOLOGY_CREATENODE = (1U << 7), //!< Nodes are created/deleted. |
| 39 |
TOPOLOGY_CREATEASSEMBLY = (1U << 8), //!< Assemblies are created/deleted. |
| 40 |
TOPOLOGY_UNKNOWN = (1U << 9), //!< Unknown change, recreate from scratch. |
| 41 |
TOPOLOGY_AUXILIARY = (1U << 10), //!< An AUXILIARY relation was created/modified. |
| 42 |
TOPOLOGY_CONSTRAINT = (1U << 11) //!< Contact constraints |
| 43 |
|
| 44 |
}; |
| 45 |
|
| 46 |
enum class FileControlOption { CONTROL_NONE, CONTROL_AUTO_MULTI_FILE, CONTROL_AUTO_GROUP_FILE }; |
| 47 |
|
| 48 |
} // namespace Ioss |