mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[solver] If one equation is undefined, display a warning
This commit is contained in:
@@ -147,6 +147,9 @@ void ListController::resolveEquations() {
|
||||
}
|
||||
EquationStore::Error e = m_equationStore->exactSolve(static_cast<App *>(app())->localContext());
|
||||
switch (e) {
|
||||
case EquationStore::Error::EquationUndefined:
|
||||
app()->displayWarning(I18n::Message::UndefinedEquation);
|
||||
return;
|
||||
case EquationStore::Error::TooManyVariables:
|
||||
app()->displayWarning(I18n::Message::TooManyVariables);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user