Ticket #5258: OneState.mo

File OneState.mo, 532 bytes (added by J-Ph Tavella <jean-philippe.tavella@…>, 6 years ago)
Line 
1model OneState
2
3 parameter Real quantum = 1.0;
4 parameter Boolean variableQuantum = false;
5 parameter Real tolerance = 0.05;
6 parameter Boolean rollback = true;
7
8 // impossible to directly use parameter tolerance in the classes -> OM bug?
9 NewMaster.Stepper2 s(quantum = quantum, variableQuantum = variableQuantum, tolerance = 0.05, rollback = rollback);
10 NewMaster.Stepper2 bads(quantum = quantum, variableQuantum = variableQuantum, tolerance = tolerance, rollback = rollback);
11
12equation
13
14end OneState;