v0.10.0
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 407 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 410 of file BCMultiIndices.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 385 of file BCMultiIndices.cpp.

385  {
386 
387  switch (e.cubitBcType.to_ulong()) {
388  case BLOCKSET: {
389  nAme.resize(NAME_TAG_SIZE);
390  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
391  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
392  (const void **)&e.tagName);
393 
395  CHKERR e.getTypeFromName(type);
396  e.cubitBcType |= type;
397  }; break;
398  case NODESET:
399  case SIDESET: {
400  nAme.resize(NAME_TAG_SIZE);
401  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
402  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
403  (const void **)&e.tagName);
404  }; break;
405  default:
406  THROW_MESSAGE("not implemented for this CubitBC type");
407  }
408 }
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:628
#define CHKERR
Inline error check.
Definition: definitions.h:604
std::bitset< 32 > CubitBCType
Definition: Types.hpp:63

Member Data Documentation

◆ mOab

Interface& MoFEM::CubitMeshSets_change_name::mOab

Definition at line 408 of file BCMultiIndices.hpp.

◆ nAme

std::string MoFEM::CubitMeshSets_change_name::nAme

Definition at line 409 of file BCMultiIndices.hpp.


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