Ignore:
Timestamp:
2016-04-11T10:08:25+02:00 (8 years ago)
Author:
hudson <openmodelica@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
390188e2
Parents:
3a64133c
git-author:
Lennart Ochel <lennart.ochel@…> (04/11/16 10:08:25)
git-committer:
hudson <openmodelica@…> (04/11/16 10:08:25)
Message:

Add new flag to set maximum number of bisection iterations

to determine state event time value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SimulationRuntime/c/simulation/simulation_runtime.cpp

    r7d8f15f2 r0c3a76e  
    7777#include "simulation_info_json.h"
    7878#include "modelinfo.h"
     79#include "simulation/solver/events.h"
    7980#include "simulation/solver/model_help.h"
    8081#include "simulation/solver/mixedSystem.h"
     
    525526    init_lambda_steps_string = omc_flagValue[FLAG_ILS];
    526527    init_lambda_steps = atoi(init_lambda_steps_string.c_str());
     528  }
     529  if(omc_flag[FLAG_MAX_BISECTION_ITERATIONS]) {
     530    maxBisectionIterations = atoi(omc_flagValue[FLAG_MAX_BISECTION_ITERATIONS]);
     531    infoStreamPrint(LOG_STDOUT, 0, "Maximum number of bisection iterations changed to %d", maxBisectionIterations);
    527532  }
    528533  if(omc_flag[FLAG_MAX_EVENT_ITERATIONS]) {
Note: See TracChangeset for help on using the changeset viewer.