Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit f15d2b3

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Fix error messages for linear solver
Belonging to [master]: - #2162
1 parent 76bc17e commit f15d2b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Compiler/Template/CodegenCpp.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9664,7 +9664,7 @@ template equationString(SimEqSystem eq, Context context, Text &varDecls, SimCode
96649664
}
96659665
catch (ModelicaSimulationError& ex)
96669666
{
9667-
string error = add_error_info("Nonlinear solver <%ls.index%>", ex.what(), ex.getErrorID(), _simTime);
9667+
string error = add_error_info("Linear solver <%ls.index%>", ex.what(), ex.getErrorID(), _simTime);
96689668
throw ModelicaSimulationError(ALGLOOP_EQ_SYSTEM, error);
96699669
}
96709670
>>
@@ -9714,7 +9714,7 @@ template equationString(SimEqSystem eq, Context context, Text &varDecls, SimCode
97149714
}
97159715
catch (ModelicaSimulationError& ex)
97169716
{
9717-
string error = add_error_info("Nonlinear solver <%ls.index%>", ex.what(), ex.getErrorID(), _simTime);
9717+
string error = add_error_info("Linear solver <%ls.index%>", ex.what(), ex.getErrorID(), _simTime);
97189718
throw ModelicaSimulationError(ALGLOOP_EQ_SYSTEM,error);
97199719
}
97209720
}
@@ -11327,7 +11327,7 @@ template equationLinearOrNonLinear(SimEqSystem eq, Context context,Text &varDecl
1132711327
}
1132811328
catch(ModelicaSimulationError& ex)
1132911329
{
11330-
string error = add_error_info("Nonlinear solver", ex.what(), ex.getErrorID(), _simTime);
11330+
string error = add_error_info("Linear solver <%ls.index%>", ex.what(), ex.getErrorID(), _simTime);
1133111331
throw ModelicaSimulationError(ALGLOOP_EQ_SYSTEM,error);
1133211332
}
1133311333
>>
@@ -11378,7 +11378,7 @@ template equationLinearOrNonLinear(SimEqSystem eq, Context context,Text &varDecl
1137811378
}
1137911379
catch(ModelicaSimulationError& ex)
1138011380
{
11381-
string error = add_error_info("Nonlinear solver <%ls.index%>", ex.what(), ex.getErrorID(), _simTime);
11381+
string error = add_error_info("Linear solver <%ls.index%>", ex.what(), ex.getErrorID(), _simTime);
1138211382
throw ModelicaSimulationError(ALGLOOP_EQ_SYSTEM,error);
1138311383
}
1138411384
}

0 commit comments

Comments
 (0)