IOSS 2.0
Loading...
Searching...
No Matches
Ioss_SurfaceSplit.h
Go to the documentation of this file.
1// Copyright(C) 1999-2020, 2022 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
8namespace Ioss {
9 /** \brief Method used to split sidesets into homogeneous blocks.
10 */
18
19 /** \brief Convert an integer code for the method used to split sidesets into homogeneous blocks.
20 *
21 * \param[in] split_int The code.
22 * \returns The corresponding SurfaceSplitType.
23 */
25 {
27 if (split_int == 1) {
28 split_type = Ioss::SPLIT_BY_TOPOLOGIES;
29 }
30 else if (split_int == 2) {
32 }
33 else if (split_int == 3) {
34 split_type = Ioss::SPLIT_BY_DONT_SPLIT;
35 }
36 return split_type;
37 }
38} // namespace Ioss
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
SurfaceSplitType
Method used to split sidesets into homogeneous blocks.
Definition Ioss_SurfaceSplit.h:11
@ SPLIT_INVALID
Definition Ioss_SurfaceSplit.h:12
@ SPLIT_BY_TOPOLOGIES
Definition Ioss_SurfaceSplit.h:13
@ SPLIT_BY_DONT_SPLIT
Definition Ioss_SurfaceSplit.h:15
@ SPLIT_LAST_ENTRY
Definition Ioss_SurfaceSplit.h:16
@ SPLIT_BY_ELEMENT_BLOCK
Definition Ioss_SurfaceSplit.h:14
SurfaceSplitType int_to_surface_split(int split_int)
Convert an integer code for the method used to split sidesets into homogeneous blocks.
Definition Ioss_SurfaceSplit.h:24