v0.8.23
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 410 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 413 of file BCMultiIndices.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 699 of file BCMultiIndices.cpp.

699  {
700 
701  switch (e.cubitBcType.to_ulong()) {
702  case BLOCKSET: {
703  nAme.resize(NAME_TAG_SIZE);
704  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
705  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
706  (const void **)&e.tagName);
707 
708  CubitBCType type;
709  CHKERR e.getTypeFromName(type);
710  e.cubitBcType |= type;
711  }; break;
712  case NODESET:
713  case SIDESET: {
714  nAme.resize(NAME_TAG_SIZE);
715  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
716  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
717  (const void **)&e.tagName);
718  }; break;
719  default:
720  THROW_MESSAGE("not implemented for this CubitBC type");
721  }
722 }
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:620
#define CHKERR
Inline error check.
Definition: definitions.h:596
std::bitset< 32 > CubitBCType
Definition: Types.hpp:63

Member Data Documentation

◆ mOab

Interface& MoFEM::CubitMeshSets_change_name::mOab

Definition at line 411 of file BCMultiIndices.hpp.

◆ nAme

std::string MoFEM::CubitMeshSets_change_name::nAme

Definition at line 412 of file BCMultiIndices.hpp.


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