v0.8.20
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 706 of file BCMultiIndices.cpp.

706  {
707 
708  switch (e.cubitBcType.to_ulong()) {
709  case BLOCKSET: {
710  nAme.resize(NAME_TAG_SIZE);
711  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
712  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
713  (const void **)&e.tagName);
714 
715  CubitBCType type;
716  ierr = e.getTypeFromName(type);
717  if (ierr > 0)
718  THROW_MESSAGE("unrecognized Cubit name type");
719  e.cubitBcType |= type;
720  }; break;
721  case NODESET:
722  case SIDESET: {
723  nAme.resize(NAME_TAG_SIZE);
724  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
725  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
726  (const void **)&e.tagName);
727  }; break;
728  default:
729  THROW_MESSAGE("not implemented for this CubitBC type");
730  }
731 }
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:618
#define CHKERR
Inline error check.
Definition: definitions.h:594
std::bitset< 32 > CubitBCType
Definition: Types.hpp:63

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: