v0.8.19
Public Member Functions | Public Attributes | List of all members
MoFEM::CubitMeshSets_change_name Struct Reference

change meshset name More...

#include <src/multi_indices/BCMultiIndices.hpp>

Collaboration diagram for MoFEM::CubitMeshSets_change_name:
[legend]

Public Member Functions

 CubitMeshSets_change_name (Interface &moab, const std::string &name)
 
void operator() (CubitMeshSets &e)
 

Public Attributes

InterfacemOab
 
std::string nAme
 

Detailed Description

change meshset name

Definition at line 396 of file BCMultiIndices.hpp.

Constructor & Destructor Documentation

◆ CubitMeshSets_change_name()

MoFEM::CubitMeshSets_change_name::CubitMeshSets_change_name ( Interface moab,
const std::string &  name 
)

Definition at line 399 of file BCMultiIndices.hpp.

Member Function Documentation

◆ operator()()

void MoFEM::CubitMeshSets_change_name::operator() ( CubitMeshSets e)

Definition at line 718 of file BCMultiIndices.cpp.

718  {
719 
720  switch (e.cubitBcType.to_ulong()) {
721  case BLOCKSET: {
722  nAme.resize(NAME_TAG_SIZE);
723  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
724  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
725  (const void **)&e.tagName);
726 
727  CubitBCType type;
728  ierr = e.getTypeFromName(type);
729  if (ierr > 0)
730  THROW_MESSAGE("unrecognized Cubit name type");
731  e.cubitBcType |= type;
732  }; break;
733  case NODESET:
734  case SIDESET: {
735  nAme.resize(NAME_TAG_SIZE);
736  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
737  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
738  (const void **)&e.tagName);
739  }; break;
740  default:
741  THROW_MESSAGE("not implemented for this CubitBC type");
742  }
743 }
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:618
std::bitset< 32 > CubitBCType
Definition: Common.hpp:200
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80
#define CHKERR
Inline error check.
Definition: definitions.h:594

Member Data Documentation

◆ mOab

Interface& MoFEM::CubitMeshSets_change_name::mOab

Definition at line 397 of file BCMultiIndices.hpp.

◆ nAme

std::string MoFEM::CubitMeshSets_change_name::nAme

Definition at line 398 of file BCMultiIndices.hpp.


The documentation for this struct was generated from the following files: