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 419 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 

Member Function Documentation

◆ operator()()

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

Definition at line 746 of file BCMultiIndices.cpp.

746  {
748  // Need to run this to set tag size in number of doubles, don;t know nothing
749  // about structure
750  int tag_size[] = {(int)(aTtr.getSizeOfData() / sizeof(double))};
751  void const *tag_data[] = {aTtr.getDataPtr()};
752  CHKERR mOab.tag_set_by_ptr(e.thBlockAttribs, &e.meshset, 1, tag_data,
753  tag_size);
754  CHKERR mOab.tag_get_by_ptr(e.thBlockAttribs, &e.meshset, 1,
755  (const void **)&e.tag_block_attributes,
756  &e.tag_block_attributes_size);
757  // Here I know about structure
758  ierr = e.setAttributeDataStructure(aTtr);
759  if (ierr > 0)
760  THROW_MESSAGE("Attributes not changed");
761 }
virtual std::size_t getSizeOfData() const =0
get data structure size
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:618
virtual const void * getDataPtr() const =0
get pointer to data structure
#define CHKERR
Inline error check.
Definition: definitions.h:594

Member Data Documentation

◆ aTtr

const GenericAttributeData& MoFEM::CubitMeshSets_change_attributes_data_structure::aTtr

Definition at line 421 of file BCMultiIndices.hpp.

◆ mOab

Interface& MoFEM::CubitMeshSets_change_attributes_data_structure::mOab

Definition at line 420 of file BCMultiIndices.hpp.

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