Merge pull request #8402 from OPM/8401-flow-vector-result

#8401 Flow Vector Result: Handle empty results for first time step
Use OpenMP for vector calculations

Janitor: Use field of double instead of float to avoid rounding errors. If float is used in field, the current editor is has rounding effects that makes the text representation of 0.1 turn into 0.09999999....
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2022-01-04 07:29:56 +01:00
1 parent 57e4283d26
commit 8defab9bc1
5 files changed
+27 -15

No files matched your search

@@ -65,6 +65,8 @@ cvf::ref<RigResultModifier> RigResultModifierFactory::createResultModifier( RigE
resultValues = &( scalarSetResults->at( timeStepIndex ) );
}
if ( resultValues->empty() ) return nullptr;
bool useGlobalActiveIndex = eclipseCase->results( porosityModel )->isUsingGlobalActiveIndex( resVarAddr );
if ( useGlobalActiveIndex )
{