Add parameter value check to see if it is possible to continue or not. (#8091)

This commit is contained in:
jonjenssen
2021-10-01 16:32:11 +02:00
committed by GitHub
parent 69c829dc32
commit 72ce82b08b
3 changed files with 39 additions and 10 deletions

View File

@@ -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 ) )
{