IOSS
2.0
Ioss_SurfaceSplit.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_SurfaceSplit_h
8
#define IOSS_Ioss_SurfaceSplit_h
9
namespace
Ioss
{
10
/** \brief Method used to split sidesets into homogeneous blocks.
11
*/
12
enum
SurfaceSplitType
{
13
SPLIT_INVALID
= -1,
14
SPLIT_BY_TOPOLOGIES
= 1,
15
SPLIT_BY_ELEMENT_BLOCK
= 2,
16
SPLIT_BY_DONT_SPLIT
= 3,
17
SPLIT_LAST_ENTRY
= 4
18
};
19
20
/** \brief Convert an integer code for the method used to split sidesets into homogeneous blocks.
21
*
22
* \param[in] split_int The code.
23
* \returns The corresponding SurfaceSplitType.
24
*/
25
inline
SurfaceSplitType
int_to_surface_split
(
int
split_int)
26
{
27
SurfaceSplitType
split_type =
Ioss::SPLIT_INVALID
;
28
if
(split_int == 1) {
29
split_type =
Ioss::SPLIT_BY_TOPOLOGIES
;
30
}
31
else
if
(split_int == 2) {
32
split_type =
Ioss::SPLIT_BY_ELEMENT_BLOCK
;
33
}
34
else
if
(split_int == 3) {
35
split_type =
Ioss::SPLIT_BY_DONT_SPLIT
;
36
}
37
return
split_type;
38
}
39
}
// namespace Ioss
40
#endif
Ioss::SPLIT_INVALID
@ SPLIT_INVALID
Definition:
Ioss_SurfaceSplit.h:13
Ioss::SPLIT_BY_ELEMENT_BLOCK
@ SPLIT_BY_ELEMENT_BLOCK
Definition:
Ioss_SurfaceSplit.h:15
Ioss
The main namespace for the Ioss library.
Definition:
Ioad_DatabaseIO.C:40
Ioss::SurfaceSplitType
SurfaceSplitType
Method used to split sidesets into homogeneous blocks.
Definition:
Ioss_SurfaceSplit.h:12
Ioss::SPLIT_BY_DONT_SPLIT
@ SPLIT_BY_DONT_SPLIT
Definition:
Ioss_SurfaceSplit.h:16
Ioss::SPLIT_BY_TOPOLOGIES
@ SPLIT_BY_TOPOLOGIES
Definition:
Ioss_SurfaceSplit.h:14
Ioss::int_to_surface_split
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:25
Ioss::SPLIT_LAST_ENTRY
@ SPLIT_LAST_ENTRY
Definition:
Ioss_SurfaceSplit.h:17
src
Ioss_SurfaceSplit.h
Generated by
1.8.19