mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
Add import/export grid calculations to Grid Calculator
Refactoring
This commit is contained in:
1 parent
f49053c61d
commit
69f132ffa5
15 files changed
+403
-6
No files matched your search
@@ -655,6 +655,28 @@ bool RimGridCalculation::calculateForCases( const std::vector<RimEclipseCase*>&
|
||||
return !anyErrorsDetected;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGridCalculation::assignEclipseCaseForNullPointers( RimEclipseCase* eclipseCase )
|
||||
{
|
||||
if ( m_destinationCase() == nullptr )
|
||||
{
|
||||
m_destinationCase = eclipseCase;
|
||||
}
|
||||
|
||||
for ( auto v : m_variables )
|
||||
{
|
||||
if ( auto gridVar = dynamic_cast<RimGridCalculationVariable*>( v.p() ) )
|
||||
{
|
||||
if ( gridVar->eclipseCase() == nullptr )
|
||||
{
|
||||
gridVar->setEclipseCase( eclipseCase );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user