Skip to content

Commit 4628931

Browse files
committed
Resize dofVars_ at contruction
1 parent 0cb70a6 commit 4628931

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

opm/models/discretization/common/fvbaseelementcontext.hh

+6
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ public:
9999
enableStorageCache_ = EWOMS_GET_PARAM(TypeTag, bool, EnableStorageCache);
100100
stashedDofIdx_ = -1;
101101
focusDofIdx_ = -1;
102+
const char* opm_debug = std::getenv("OPM_DEBUG");
103+
const bool debug = opm_debug != NULL && std::string(opm_debug) == "1";
104+
if (debug) {
105+
std::cout << "rd" << std::endl;
106+
dofVars_.resize(1);
107+
}
102108
}
103109

104110
static void *operator new(size_t size)

0 commit comments

Comments
 (0)