Skip to content

Commit 0cb70a6

Browse files
committed
Add more output
1 parent 9feac72 commit 0cb70a6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

opm/models/discretization/common/fvbaseelementcontext.hh

+13-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,14 @@ public:
221221
* \param timeIdx The index of the solution vector used by the time discretization.
222222
*/
223223
void updatePrimaryIntensiveQuantities(unsigned timeIdx)
224-
{ updateIntensiveQuantities_(timeIdx, numPrimaryDof(timeIdx)); }
224+
{
225+
const char* opm_debug = std::getenv("OPM_DEBUG");
226+
const bool debug = opm_debug != NULL && std::string(opm_debug) == "1";
227+
if (debug) {
228+
std::cout << "a" << std::endl;
229+
}
230+
updateIntensiveQuantities_(timeIdx, numPrimaryDof(timeIdx));
231+
}
225232

226233
/*!
227234
* \brief Compute the intensive quantities of a single sub-control volume of the
@@ -558,6 +565,11 @@ protected:
558565
*/
559566
void updateIntensiveQuantities_(unsigned timeIdx, size_t numDof)
560567
{
568+
const char* opm_debug = std::getenv("OPM_DEBUG");
569+
const bool debug = opm_debug != NULL && std::string(opm_debug) == "1";
570+
if (debug) {
571+
std::cout << "b" << std::endl;
572+
}
561573
// update the intensive quantities for the whole history
562574
const SolutionVector& globalSol = model().solution(timeIdx);
563575

0 commit comments

Comments
 (0)