mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Formation Names : Make use of formation names more robust
This commit is contained in:
1 parent
41dc2244fc
commit
63896f8c3a
1 file changed
+11
-1
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaDefines.h"
|
||||
#include "RiaResultNames.h"
|
||||
|
||||
#include "WellLogCommands/RicNewWellLogPlotFeatureImpl.h"
|
||||
|
||||
@@ -81,7 +82,16 @@ RimWellLogExtractionCurve*
|
||||
curve->setWellPath( wellPath );
|
||||
curve->setCase( eclipseCase );
|
||||
curve->setCurrentTimeStep( timeStep );
|
||||
curve->setEclipseResultVariable( propertyName );
|
||||
|
||||
if ( resultCategoryType == RiaDefines::ResultCatType::FORMATION_NAMES )
|
||||
{
|
||||
// The result name for formations is fragile. Always use the application result name for this
|
||||
curve->setEclipseResultVariable( RiaResultNames::activeFormationNamesResultName() );
|
||||
}
|
||||
else
|
||||
{
|
||||
curve->setEclipseResultVariable( propertyName );
|
||||
}
|
||||
|
||||
curve->setEclipseResultCategory( resultCategoryType );
|
||||
|
||||
|
||||
Reference in new issue
Block a user