mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Convert to enum class
This commit is contained in:
@@ -163,16 +163,17 @@ void RivNNCGeometryGenerator::textureCoordinates( cvf::Vec2fArray*
|
||||
textureCoords->resize( numVertices );
|
||||
cvf::Vec2f* rawPtr = textureCoords->ptr();
|
||||
const std::vector<double>* nncResultVals = nullptr;
|
||||
if ( resultType == RiaDefines::STATIC_NATIVE || resultType == RiaDefines::FORMATION_NAMES ||
|
||||
resultType == RiaDefines::ALLEN_DIAGRAMS )
|
||||
if ( resultType == RiaDefines::ResultCatType::STATIC_NATIVE ||
|
||||
resultType == RiaDefines::ResultCatType::FORMATION_NAMES ||
|
||||
resultType == RiaDefines::ResultCatType::ALLEN_DIAGRAMS )
|
||||
{
|
||||
nncResultVals = m_nncData->staticConnectionScalarResult( resVarAddr );
|
||||
}
|
||||
else if ( resultType == RiaDefines::DYNAMIC_NATIVE )
|
||||
else if ( resultType == RiaDefines::ResultCatType::DYNAMIC_NATIVE )
|
||||
{
|
||||
nncResultVals = m_nncData->dynamicConnectionScalarResult( resVarAddr, nativeTimeStepIndex );
|
||||
}
|
||||
else if ( resultType == RiaDefines::GENERATED )
|
||||
else if ( resultType == RiaDefines::ResultCatType::GENERATED )
|
||||
{
|
||||
nncResultVals = m_nncData->generatedConnectionScalarResult( resVarAddr, nativeTimeStepIndex );
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ void RivReservoirFaultsPartMgr::appendPartsToModel( cvf::ModelBasicList* model )
|
||||
eclipseResultAddress = cellResultColors->eclipseResultAddress();
|
||||
}
|
||||
|
||||
if ( eclipseResultAddress.m_resultCatType == RiaDefines::ALLEN_DIAGRAMS )
|
||||
if ( eclipseResultAddress.m_resultCatType == RiaDefines::ResultCatType::ALLEN_DIAGRAMS )
|
||||
{
|
||||
showCompleteNncGeo = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user