v0.14.0
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:
[legend]

Public Member Functions

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

Public Attributes

InterfacemOab
 
const GenericAttributeDataaTtr
 

Detailed Description

change meshset attributes for material data structure

Definition at line 425 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 
)
inline

Definition at line 428 of file BCMultiIndices.hpp.

430  : mOab(moab), aTtr(attr) {}

Member Function Documentation

◆ operator()()

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

Definition at line 423 of file BCMultiIndices.cpp.

424  {
425  // Need to run this to set tag size in number of doubles, don;t know nothing
426  // about structure
427  int tag_size[] = {(int)(aTtr.getSizeOfData() / sizeof(double))};
428  void const *tag_data[] = {aTtr.getDataPtr()};
429  CHKERR mOab.tag_set_by_ptr(e.thBlockAttribs, &e.meshset, 1, tag_data,
430  tag_size);
431  CHKERR mOab.tag_get_by_ptr(e.thBlockAttribs, &e.meshset, 1,
432  (const void **)&e.tagBlockAttributes,
433  &e.tagBlockAttributesSize);
434  // Here I know about structure
435  CHKERR e.setAttributeDataStructure(aTtr);
436 }

Member Data Documentation

◆ aTtr

const GenericAttributeData& MoFEM::CubitMeshSets_change_attributes_data_structure::aTtr

Definition at line 427 of file BCMultiIndices.hpp.

◆ mOab

Interface& MoFEM::CubitMeshSets_change_attributes_data_structure::mOab

Definition at line 426 of file BCMultiIndices.hpp.


The documentation for this struct was generated from the following files:
MoFEM::CubitMeshSets_change_attributes_data_structure::mOab
Interface & mOab
Definition: BCMultiIndices.hpp:426
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
double
MoFEM::GenericAttributeData::getSizeOfData
virtual std::size_t getSizeOfData() const =0
get data structure size
MoFEM::CubitMeshSets_change_attributes_data_structure::aTtr
const GenericAttributeData & aTtr
Definition: BCMultiIndices.hpp:427
MoFEM::GenericAttributeData::getDataPtr
virtual const void * getDataPtr() const =0
get pointer to data structure
convert.int
int
Definition: convert.py:64