Ticket #4360: TestStaticTearing.mos

File TestStaticTearing.mos, 483 bytes (added by Francesco Casella, 9 years ago)
Line 
1loadString("
2model M
3 parameter Real a = 1;
4 parameter Real b = 0.5;
5 parameter Real c = 0.5;
6 parameter Real d = 1;
7 Real x,y;
8equation
9 a*x + b*y = 1;
10 c*x + d*y = -1;
11end M;
12"); getErrorString();
13
14setCommandLineOptions("-d=dumpSimCode");getErrorString();
15simulate(M, simflags="-lv=LOG_STATS");getErrorString();
16simulate(M, simflags="-lv=LOG_STATS -override=b=0");getErrorString();
17simulate(M, simflags="-lv=LOG_STATS -override=b=1e-9");getErrorString();
18