ebos: run the diagnostics code for relative permeabilities

maybe this needs to be reverted since the code in question can
cause the simulation to abort inadvertently.

As usual, `flow` is unaffected because this functionality is only
called in experimental mode and flow calls it itself.
This commit is contained in:
Andreas Lauser 2019-04-04 14:37:37 +02:00
parent 67a8283000
commit 4805e9fe05

View File

@ -31,6 +31,10 @@
#include <ewoms/common/propertysystem.hh> #include <ewoms/common/propertysystem.hh>
#include <ewoms/common/parametersystem.hh> #include <ewoms/common/parametersystem.hh>
#include <opm/grid/CpGrid.hpp>
#include <opm/grid/cpgrid/GridHelpers.hpp>
#include <opm/core/props/satfunc/RelpermDiagnostics.hpp>
#include <opm/parser/eclipse/Parser/Parser.hpp> #include <opm/parser/eclipse/Parser/Parser.hpp>
#include <opm/parser/eclipse/Parser/ParseContext.hpp> #include <opm/parser/eclipse/Parser/ParseContext.hpp>
#include <opm/parser/eclipse/Parser/ErrorGuard.hpp> #include <opm/parser/eclipse/Parser/ErrorGuard.hpp>
@ -316,6 +320,11 @@ public:
asImp_().filterConnections_(); asImp_().filterConnections_();
asImp_().updateOutputDir_(); asImp_().updateOutputDir_();
asImp_().finalizeInit_(); asImp_().finalizeInit_();
if (enableExperiments) {
Opm::RelpermDiagnostics relpermDiagnostics;
relpermDiagnostics.diagnosis(*internalEclState_, *internalDeck_, asImp_().grid());
}
} }
/*! /*!