20 #ifndef GEOS_MESH_CELLELEMENTREGION_HPP_
21 #define GEOS_MESH_CELLELEMENTREGION_HPP_
23 #include "ElementRegionBase.hpp"
71 {
return "CellElementRegion"; }
93 {
return m_cellBlockNames.toViewConst(); }
101 m_cellBlockNames.emplace_back( cellBlockName );
108 template<
typename StringContainerType >
111 m_cellBlockNames.clear();
112 for(
auto const & name: cellBlockNames )
114 m_cellBlockNames.emplace_back( name );
155 std::set< string > computeSelectedCellBlocks( std::set< string >
const & cellBlocksNames )
const;
void addCellBlockName(string const &cellBlockName)
Select a cellBlock by its name for generateMesh().
arrayView1d< string const > getCellBlockNames() const
void setCellBlockNames(StringContainerType const &cellBlockNames)
Select cellBlocks by their names for generateMesh().
static string catalogName()
The key name for the FaceElementRegion in the object catalog.
virtual string getCatalogName() const override final
The key name for the FaceElementRegion in the object catalog.
virtual void generateMesh(Group const &cellBlocks) override
register every cellBlocks that is requested in the cellBlockNames list.
CellElementRegion(string const &name, Group *const parent)
Constructor.
CellElementRegion()=delete
Deleted default constructor.
virtual ~CellElementRegion() override
Destructor.
The ElementRegionBase is the base class to manage the data stored at the element level.
ArrayView< T, 1 > arrayView1d
Alias for 1D array view.
array1d< string > string_array
A 1-dimensional array of geos::string types.
double real64
64-bit floating point type.
A struct to serve as a container for variable strings and keys.
static constexpr char const * sourceCellBlockNamesString()
static constexpr char const * coarseningRatioString()
Struct to serve as a container for variable strings and keys.