mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
Fix regression introduced in a9598f
Wrong naming of variables caused wrong refactoring
This commit is contained in:
1 parent
251952e6ef
commit
0c7a8ad2de
1 file changed
+3
-3
@@ -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