mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Do not compute SOIL if none of SGAS or SWAT is present
p4#: 19303
This commit is contained in:
parent
15044a4db4
commit
fa2fceccf4
@ -395,6 +395,12 @@ void RigReservoirCellResults::loadOrComputeSOIL()
|
||||
sgas = &(cellScalarResults(scalarIndexSGAS));
|
||||
}
|
||||
|
||||
// Early exit if none of SWAT or SGAS is present
|
||||
if (scalarIndexSWAT == cvf::UNDEFINED_SIZE_T && scalarIndexSGAS == cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
size_t soilResultValueCount = 0;
|
||||
size_t soilTimeStepCount = 0;
|
||||
if (swat)
|
||||
|
Loading…
Reference in New Issue
Block a user