237 {
239
240 std::vector<EntityHandle> contained;
242 if (contained.size() <= (
unsigned int)
step_number) {
244 }
245
247 int handles_size;
249 1, (const void **)&handles_ptr, &handles_size);
250
252 int uids_size;
254 (const void **)&uids_ptr, &uids_size);
256
257 if (handles_size != uids_size) {
259 }
260
262 int data_size;
264 (const void **)&data_ptr, &data_size);
266
267 if (data_size != uids_size) {
269 }
270
271 typedef multi_index_container<
272 boost::shared_ptr<DofEntity>,
273 indexed_by<
274
275 hashed_non_unique<
276 tag<Composite_Ent_and_ShortId_mi_tag>,
277 composite_key<
278 DofEntity,
279 const_mem_fun<DofEntity, EntityHandle, &DofEntity::getEnt>,
280 const_mem_fun<DofEntity,
ShortId,
282
283 >>
284 DofEntity_multiIndex_short_uid_view;
285
286 DofEntity_multiIndex_short_uid_view short_uid_view;
287 short_uid_view.insert(dofsField.begin(), dofsField.end());
288
289 for (int ii = 0; ii < uids_size; ii++) {
293
294 auto dit = short_uid_view.find(boost::make_tuple(ent, uid));
295 if (dit != short_uid_view.end()) {
296 (*dit)->getFieldData() = val;
297 } else {
299 "data inconsistency, getting data series, dof on ENTITY and "
300 "ShortId can't be found");
301 }
302 }
303
305}
#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.
double FieldData
Field data type.
int ShortId
Unique Id in the field.
ShortId getNonNonuniqueShortId() const
get short uid it is unique in combination with entity handle