Xcos solvers : Renamed "Dormand-Price" to correct name "Dormand-Prince"
[scilab.git] / scilab / modules / xcos / examples / solvers / integDoPri.sce
index 10abf40..fae1fab 100644 (file)
@@ -15,7 +15,7 @@ loadXcosLibs();
 importXcosDiagram("SCI/modules/xcos/examples/solvers/ODE_Example.xcos");
 scs_m.props.tf = 30000;
 
-solverName=["BDF/Newton", "BDF/Functional", "Adams/Newton", "Adams/Functional", "Dormand-Price"];
+solverName=["BDF/Newton", "BDF/Functional", "Adams/Newton", "Adams/Functional", "Dormand-Prince"];
 
 for solver=1:5
 
@@ -23,7 +23,7 @@ for solver=1:5
  scs_m.props.tol(6) = solver;
 
  // Set max step size if DoPri
- if (solver == 5) scs_m.props.tol(7) = 0.01;
+ if (solver == 5) then scs_m.props.tol(7) = 0.01; end
 
  // Start the timer, launch the simulation and display time
  tic();