Skip to content

Commit 2bb0cf6

Browse files
committed
Add more debug output
1 parent 4628931 commit 2bb0cf6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

opm/models/discretization/common/fvbaseelementcontext.hh

+10-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,16 @@ public:
462462
IntensiveQuantities& intensiveQuantities(unsigned dofIdx, unsigned timeIdx)
463463
{
464464
assert(dofIdx < numDof(timeIdx));
465-
return dofVars_[dofIdx].intensiveQuantities[timeIdx];
465+
const char* opm_debug = std::getenv("OPM_DEBUG");
466+
const bool debug = opm_debug != NULL && std::string(opm_debug) == "1";
467+
if (debug) {
468+
std::cout << "iq" << std::endl;
469+
}
470+
auto iq = dofVars_[dofIdx].intensiveQuantities[timeIdx];
471+
if (debug) {
472+
std::cout << "iq2" << std::endl;
473+
}
474+
return iq;
466475
}
467476

468477
/*!

0 commit comments

Comments
 (0)