mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[solver] Improve messages for edge cases (No equation, no solution...)
This commit is contained in:
@@ -141,6 +141,10 @@ bool ListController::expressionLayoutFieldDidReceiveEvent(ExpressionLayoutField
|
||||
}
|
||||
|
||||
void ListController::resolveEquations() {
|
||||
if (m_equationStore->numberOfModels() == 0) {
|
||||
app()->displayWarning(I18n::Message::EnterEquation);
|
||||
return;
|
||||
}
|
||||
EquationStore::Error e = m_equationStore->exactSolve(static_cast<App *>(app())->localContext());
|
||||
switch (e) {
|
||||
case EquationStore::Error::TooManyVariables:
|
||||
|
||||
Reference in New Issue
Block a user