mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix regression introduced in a9598f
Wrong naming of variables caused wrong refactoring
This commit is contained in:
@@ -828,10 +828,10 @@ bool RimGridCalculation::calculateForCases( const std::vector<RimEclipseCase*>&
|
||||
RimGridCalculationVariable* v = dynamic_cast<RimGridCalculationVariable*>( m_variables[i] );
|
||||
CAF_ASSERT( v != nullptr );
|
||||
|
||||
bool useDataFromDestinationCase = ( v->eclipseCase() == m_destinationCase );
|
||||
auto sourceCase = useDataFromDestinationCase ? m_destinationCase : calculationCase;
|
||||
bool useDataFromSourceCase = ( v->eclipseCase() == m_destinationCase );
|
||||
auto sourceCase = useDataFromSourceCase ? calculationCase : v->eclipseCase();
|
||||
|
||||
auto dataForVariable = getDataForVariable( v, tsId, porosityModel, sourceCase, m_destinationCase );
|
||||
auto dataForVariable = getDataForVariable( v, tsId, porosityModel, sourceCase, calculationCase );
|
||||
if ( dataForVariable.empty() )
|
||||
{
|
||||
RiaLogging::error( QString( " No data found for variable '%1'." ).arg( v->name() ) );
|
||||
|
||||
Reference in New Issue
Block a user