Changeset 5599


Ignore:
Timestamp:
2010-05-31T17:27:23+02:00 (14 years ago)
Author:
adrpo
Message:
  • now we are correctly displaying the terminate statement in the flattened code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testsuite/mofiles/drmodelica/Epidemics1.mo

    r5589 r5599  
    2929// Result:
    3030// fclass Epidemics1
    31 // Real Indv(start = 0.005);
    32 // Real S(start = 0.995);
    33 // Real R(start = 0.0);
    34 // parameter Real tau = 0.8;
    35 // parameter Real k = 4.0 "recovery coefficient (from 4people infected one is recoved)";
     31//   Real Indv(start = 0.005);
     32//   Real S(start = 0.995);
     33//   Real R(start = 0.0);
     34//   parameter Real tau = 0.8;
     35//   parameter Real k = 4.0 "recovery coefficient (from 4people infected one is recoved)";
    3636// equation
    3737//   der(Indv) = tau * (Indv * S) - Indv / k;
     
    3939//   der(R) = Indv / k;
    4040//   when Indv < 0.0001 then
     41//   terminate("Simulation terminated");
    4142//   end when;
    4243//   when S < 0.0001 then
     44//   terminate("Simulation terminated");
    4345//   end when;
    4446// end Epidemics1;
Note: See TracChangeset for help on using the changeset viewer.