Skip to content

Commit

Permalink
Adapt test to new solver method ExplicitEuler
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Jan 6, 2017
1 parent 94bbd23 commit b6f31a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmodelica/cppruntime/clockedTest.mos
Expand Up @@ -17,9 +17,9 @@ model DID \"Double Integrator Discrete-time\"
output Real y2(start = y2_start, fixed = true);
Real ud;
equation
ud = sample(u, Clock(Clock(intervalCounter, resolution), solverMethod = \"ImplicitEuler\"));
ud = sample(u, Clock(Clock(intervalCounter, resolution), solverMethod = \"ExplicitEuler\"));
der(y1) = p * ud;
der(y2) = previous(y1) + 0.5 * p * ud * interval(ud);
der(y2) = y1 + 0.5 * p * ud * interval(ud);
end DID;
");
getErrorString();
Expand Down

0 comments on commit b6f31a2

Please sign in to comment.