505 {
507
508 auto cubit_meshset_ptr =
509 m_field.
getInterface<MeshsetsManager>()->getCubitMeshsetPtr(ms_id,
511 std::vector<double> block_data;
512 CHKERR cubit_meshset_ptr->getAttributes(block_data);
513 if (block_data.size() != 1) {
515 "Expected that block has one attribute, e.g. heat flux value");
516 }
518
519 this->entsPtr = boost::make_shared<Range>();
520 CHKERR m_field.
get_moab().get_entities_by_handle(cubit_meshset_ptr->meshset,
521 *(this->entsPtr), true);
522
524 << "Flux blockset " << cubit_meshset_ptr->getName();
526 <<
"Scalar attribute value: " << this->
scalarValue;
527
529}
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
@ MOFEM_DATA_INCONSISTENCY
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
#define MOFEM_LOG(channel, severity)
Log.
virtual moab::Interface & get_moab()=0
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.