mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add parameter value check to see if it is possible to continue or not. (#8091)
This commit is contained in:
@@ -60,7 +60,14 @@ void RicRunWellIntegrityAnalysisFeature::onActionTriggered( bool isChecked )
|
||||
|
||||
runProgress.setProgressDescription( "Writing input files." );
|
||||
|
||||
modelSettings->extractModelData();
|
||||
if ( !modelSettings->extractModelData() )
|
||||
{
|
||||
QMessageBox::critical( nullptr,
|
||||
wiaTitle,
|
||||
"Unable to get necessary data from the defined model box. Is the model box center "
|
||||
"outside the reservoir?" );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !RifWellIAFileWriter::writeToJsonFile( *modelSettings, outErrorText ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user