Changeset 1441 for trunk


Ignore:
Timestamp:
03/26/12 17:51:24 (12 years ago)
Author:
wschamai
Message:

BUG FIX: default simulation settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.modelicaml.simulation/src/org/openmodelica/modelicaml/simulation/execution/ExecuteSimulation.java

    r1440 r1441  
    187187                }
    188188           
     189                // set default simulation settings
     190                if (model.numberOfIntervals.trim().length() == 0) {
     191                    model.numberOfIntervals = "500";
     192                }
     193                if (model.tolerance.trim().length() == 0 ) {
     194                    model.tolerance = "0.000001";
     195                }
     196                if (model.solver.trim().length() == 0 ) {
     197                    model.solver = "dassl";
     198                }
     199                if (model.outputFormat.trim().length()==0 ) {
     200                    model.outputFormat = "plt";
     201                }
     202               
    189203                //Simulate model
    190204                omcReturnString = omcc.simulate(model.qualifiedName, model.start, model.stop, model.numberOfIntervals, model.tolerance, model.solver, model.outputFormat);
Note: See TracChangeset for help on using the changeset viewer.