Commit 0cb70a6 1 parent 9feac72 commit 0cb70a6 Copy full SHA for 0cb70a6
File tree 1 file changed +13
-1
lines changed
opm/models/discretization/common
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,14 @@ public:
221
221
* \param timeIdx The index of the solution vector used by the time discretization.
222
222
*/
223
223
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
+ }
225
232
226
233
/* !
227
234
* \brief Compute the intensive quantities of a single sub-control volume of the
@@ -558,6 +565,11 @@ protected:
558
565
*/
559
566
void updateIntensiveQuantities_ (unsigned timeIdx, size_t numDof)
560
567
{
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
+ }
561
573
// update the intensive quantities for the whole history
562
574
const SolutionVector& globalSol = model ().solution (timeIdx);
563
575
You can’t perform that action at this time.
0 commit comments