53 PetscFOpen(PETSC_COMM_SELF,
DATAFILENAME,
"a+", &datafile);
56 boost::shared_ptr<NumeredDofEntity_multiIndex> numered_dofs_rows =
57 problemPtr->getNumeredRowDofsPtr();
58 auto lit = numered_dofs_rows->lower_bound(
59 FieldEntity::getLoBitNumberUId(bit_number_lambda));
60 auto hi_lit = numered_dofs_rows->upper_bound(
61 FieldEntity::getHiBitNumberUId(bit_number_lambda));
63 if (lit == numered_dofs_rows->end()) {
66 }
else if (std::distance(lit, hi_lit) != 1) {
68 "Only one DOF is expected");
73 NumeredDofEntityByEnt::iterator dit, hi_dit;
74 dit = numered_dofs_rows->get<
Ent_mi_tag>().lower_bound(*nit);
75 hi_dit = numered_dofs_rows->get<
Ent_mi_tag>().upper_bound(*nit);
78 for (; dit != hi_dit; dit++) {
79 PetscPrintf(PETSC_COMM_WORLD,
"%s [ %d ] %6.4e -> ",
80 lit->get()->getName().c_str(), lit->get()->getDofCoeffIdx(),
81 lit->get()->getFieldData());
82 PetscPrintf(PETSC_COMM_WORLD,
"%s [ %d ] %6.4e ",
83 dit->get()->getName().c_str(), dit->get()->getDofCoeffIdx(),
84 dit->get()->getFieldData());
85 PetscPrintf(PETSC_COMM_WORLD,
"-> %3.4f %3.4f %3.4f\n", coords[0],
86 coords[1], coords[2]);
87 PetscFPrintf(PETSC_COMM_WORLD, datafile,
"%6.4e %6.4e ",
88 dit->get()->getFieldData(), lit->get()->getFieldData());
91 PetscFPrintf(PETSC_COMM_WORLD, datafile,
"\n");