Skip to content

Commit

Permalink
sort EqnsAndVars for sparse solver.
Browse files Browse the repository at this point in the history
After OpenModelica/OMCompiler#584 lis-test will failed without sort.
  • Loading branch information
vruge authored and OpenModelica-Hudson committed Mar 28, 2016
1 parent 19a9088 commit 07f662d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions simulation/modelica/linear_system/NPendulum.mos
Expand Up @@ -83,7 +83,7 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum_res.mat",
"NPendulum_diff.csv",0.01,0.0001,
{"phi[10]"});
*/
setCommandLineOptions("--disableLinearTearing");
setCommandLineOptions("--disableLinearTearing +d=sortEqnsAndVars");
getErrorString();
buildModel(NPendulum); getErrorString();
system("./NPendulum -ls totalpivot");
Expand All @@ -97,7 +97,6 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum_res.mat",
"ReferenceFiles/NPendulum_10.mat",
"NPendulum_diff.csv",0.01,0.01,
{"phi[10]"});

system("./NPendulum -ls umfpack");
res := OpenModelica.Scripting.compareSimulationResults("NPendulum_res.mat",
"ReferenceFiles/NPendulum_10.mat",
Expand All @@ -110,7 +109,6 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum_res.mat",
"NPendulum_diff.csv",0.01,0.01,
{"phi[10]"});


// Result:
// true
// ""
Expand All @@ -128,7 +126,8 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum_res.mat",
// true
// ""
// {"NPendulum","NPendulum_init.xml"}
// ""
// "Warning: Deprecated debug flag --d=sortEqnsAndVars detected. Use --preOptModules+=sortEqnsVars instead.
// "
// 0
// {"Files Equal!"}
// 0
Expand Down

0 comments on commit 07f662d

Please sign in to comment.