273 {
275
276 auto cubit_meshset_ptr =
277 m_field.
getInterface<MeshsetsManager>()->getCubitMeshsetPtr(ms_id,
279
280 std::vector<double> block_data;
281 CHKERR cubit_meshset_ptr->getAttributes(block_data);
284 <<
"BLOCKSET is expected to have " <<
FIELD_DIM
285 << " attributes but has size " << block_data.size();
288 "Size of attribute in BLOCKSET is too small");
289 }
290 }
291
293 << "Flux blockset " << cubit_meshset_ptr->getName();
295 << "Number of attributes " << block_data.size();
296
297 for (
unsigned int ii = 0; ii !=
FIELD_DIM; ++ii) {
298 this->
tForce(ii) = block_data[ii];
299 }
300
301 this->entsPtr = boost::make_shared<Range>();
302 CHKERR m_field.
get_moab().get_entities_by_handle(cubit_meshset_ptr->meshset,
303 *(this->entsPtr), true);
304
306}
#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
FTensor::Tensor1< double, FIELD_DIM > tForce
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.