mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Formation Names : Make use of formation names more robust
This commit is contained in:
parent
41dc2244fc
commit
63896f8c3a
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user