mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1304 Avoid crash, and send a message to user if the flow diag solver throws
This commit is contained in:
parent
8b3029c3a3
commit
2f17096cde
@ -287,7 +287,8 @@ RigFlowDiagTimeStepResult RigFlowDiagSolverInterface::calculate(size_t timeStepI
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
CVF_ASSERT(false);
|
||||
QMessageBox::critical(nullptr, "ResInsight", "Flow Diagnostics: " + QString(e.what()));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@ -316,7 +317,8 @@ RigFlowDiagTimeStepResult RigFlowDiagSolverInterface::calculate(size_t timeStepI
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
CVF_ASSERT(false);
|
||||
QMessageBox::critical(nullptr, "ResInsight", "Flow Diagnostics: " + QString(e.what()));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user