Only output warning if dispersion is activated

This commit is contained in:
Tor Harald Sandve 2024-02-01 09:28:33 +01:00
parent d5d7ad2d20
commit fe1a488e77

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 "