Merge pull request #870 from totto82/fixOutputDisp

Only output warning if dispersion is activated
This commit is contained in:
Tor Harald Sandve 2024-02-01 11:54:21 +01:00 committed by GitHub
commit 5f7180b1f8

View File

@ -122,6 +122,10 @@ public:
#if HAVE_ECL_INPUT
static void initFromState(const EclipseState& eclState)
{
if (!eclState.getSimulationConfig().rock_config().dispersion()) {
return;
}
if (eclState.getSimulationConfig().hasVAPWAT() || eclState.getSimulationConfig().hasVAPOIL()) {
OpmLog::warning("Dispersion is activated in combination with VAPWAT/VAPOIL. \n"
"Water/oil is still allowed to vaporize, but dispersion in the "