Skip to content

Commit

Permalink
Use config flag for total tearing
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed Jun 1, 2016
1 parent 22f7bdf commit 55a76f7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
14 changes: 6 additions & 8 deletions simulation/modelica/tearing/totalTearing1.mos
Expand Up @@ -4,7 +4,7 @@

loadFile("Tearing1.mo"); getErrorString();

setCommandLineOptions("+d=backenddaeinfo, +tearingMethod=totalTearing"); getErrorString();
setCommandLineOptions("+d=backenddaeinfo, --totalTearing=2"); getErrorString();
simulate(Tearing1); getErrorString();


Expand Down Expand Up @@ -34,14 +34,12 @@ simulate(Tearing1); getErrorString();
// * Record equations: 0
// * When equations: 0
// * If-equations: 0
// * Equation systems (linear and non-linear blocks): 1
// * Torn equation systems: 0
// * Equation systems (linear and non-linear blocks): 0
// * Torn equation systems: 1
// * Mixed (continuous/discrete) equation systems: 0
// Notification: Equation system details:
// * Constant Jacobian: 0
// * Linear Jacobian (size,density): 1 {(5,44.0%)}
// * Non-linear Jacobian: 0
// * Without analytic Jacobian: 0
// Notification: Torn system details for strict tearing set:
// * Linear torn systems: 1 {(2,100.0%) 3}
// * Non-linear torn systems: 0
// Notification: Model statistics after passing the back-end for simulation:
// * Number of independent subsystems: 1
// * Number of states: 0 ('+d=stateselection' for list of states)
Expand Down
14 changes: 6 additions & 8 deletions simulation/modelica/tearing/totalTearing2.mos
Expand Up @@ -13,7 +13,7 @@ equation
end totalTearing2;
"); getErrorString();

setCommandLineOptions("+d=backenddaeinfo,totaltearingdump, +tearingMethod=totalTearing"); getErrorString();
setCommandLineOptions("+d=backenddaeinfo,totaltearingdump, --totalTearing=2"); getErrorString();
simulate(totalTearing2); getErrorString();


Expand Down Expand Up @@ -253,14 +253,12 @@ simulate(totalTearing2); getErrorString();
// * Record equations: 0
// * When equations: 0
// * If-equations: 0
// * Equation systems (linear and non-linear blocks): 1
// * Torn equation systems: 0
// * Equation systems (linear and non-linear blocks): 0
// * Torn equation systems: 1
// * Mixed (continuous/discrete) equation systems: 0
// Notification: Equation system details:
// * Constant Jacobian: 0
// * Linear Jacobian (size,density): 0
// * Non-linear Jacobian: 1 {3}
// * Without analytic Jacobian: 0
// Notification: Torn system details for strict tearing set:
// * Linear torn systems: 0
// * Non-linear torn systems: 1 {2 1}
// Notification: Model statistics after passing the back-end for simulation:
// * Number of independent subsystems: 1
// * Number of states: 0 ('+d=stateselection' for list of states)
Expand Down
14 changes: 6 additions & 8 deletions simulation/modelica/tearing/totalTearing3.mos
Expand Up @@ -5,7 +5,7 @@

loadFile("Tearing11.mo"); getErrorString();

setCommandLineOptions("+d=backenddaeinfo, +tearingmethod=totalTearing"); getErrorString();
setCommandLineOptions("+d=backenddaeinfo, --totalTearing=2"); getErrorString();
simulate(Tearing11); getErrorString();

// Result:
Expand Down Expand Up @@ -34,14 +34,12 @@ simulate(Tearing11); getErrorString();
// * Record equations: 0
// * When equations: 0
// * If-equations: 0
// * Equation systems (linear and non-linear blocks): 1
// * Torn equation systems: 0
// * Equation systems (linear and non-linear blocks): 0
// * Torn equation systems: 1
// * Mixed (continuous/discrete) equation systems: 0
// Notification: Equation system details:
// * Constant Jacobian: 0
// * Linear Jacobian (size,density): 1 {(10,23.0%)}
// * Non-linear Jacobian: 0
// * Without analytic Jacobian: 0
// Notification: Torn system details for strict tearing set:
// * Linear torn systems: 1 {(3,88.9%) 7}
// * Non-linear torn systems: 0
// Notification: Model statistics after passing the back-end for simulation:
// * Number of independent subsystems: 1
// * Number of states: 0 ('+d=stateselection' for list of states)
Expand Down

0 comments on commit 55a76f7

Please sign in to comment.