Public Member Functions | Public Attributes | List of all members
MoFEM::CubitMeshSets_change_attributes_data_structure Struct Reference

#include <src/multi_indices/BCMultiIndices.hpp>

Collaboration diagram for MoFEM::CubitMeshSets_change_attributes_data_structure:

Public Member Functions

 CubitMeshSets_change_attributes_data_structure (Interface &moab, const GenericAttributeData &attr)
void operator() (CubitMeshSets &e)

Public Attributes

const GenericAttributeDataaTtr

Detailed Description

change meshset attributes for material data structure

Definition at line 445 of file BCMultiIndices.hpp.

Constructor & Destructor Documentation

◆ CubitMeshSets_change_attributes_data_structure()

MoFEM::CubitMeshSets_change_attributes_data_structure::CubitMeshSets_change_attributes_data_structure ( Interface moab,
const GenericAttributeData attr 

Definition at line 448 of file BCMultiIndices.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 712 of file BCMultiIndices.cpp.

712  {
715  // Need to run this to set tag size in number of doubles, don;t know nothing about structure
716  int tag_size[] = { (int)(aTtr.getSizeOfData()/sizeof(double)) };
717  void const* tag_data[] = { aTtr.getDataPtr() };
718  rval = mOab.tag_set_by_ptr(e.thBlockAttribs,&e.meshset,1,tag_data,tag_size); MOAB_THROW(rval);
719  rval = mOab.tag_get_by_ptr(
720  e.thBlockAttribs,&e.meshset,1,(const void **)&e.tag_block_attributes,&e.tag_block_attributes_size
721  ); MOAB_THROW(rval);
722  // Here I know about structure
723  ierr = e.setAttributeDataStructure(aTtr);
724  if(ierr>0) THROW_MESSAGE("Attributes not changed");
725 }
virtual std::size_t getSizeOfData() const =0
get data structure size
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:641
#define MOAB_THROW(a)
Check error code of MoAB function and throw MoFEM exception.
Definition: definitions.h:623
virtual const void * getDataPtr() const =0
get pointer to data structure
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Common.hpp:78

Member Data Documentation

◆ aTtr

const GenericAttributeData& MoFEM::CubitMeshSets_change_attributes_data_structure::aTtr

Definition at line 447 of file BCMultiIndices.hpp.

◆ mOab

Interface& MoFEM::CubitMeshSets_change_attributes_data_structure::mOab

Definition at line 446 of file BCMultiIndices.hpp.

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