Skip to content

Commit

Permalink
Fix LOG_STATS (ticket:3922)
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed May 22, 2016
1 parent a52420c commit 58bbbff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions SimulationRuntime/c/simulation/solver/solver_main.c
Expand Up @@ -317,13 +317,6 @@ int initializeSolverData(DATA* data, threadData_t *threadData, SOLVER_INFO* solv
return 1;
}

if(measure_time_flag)
{
rt_accumulate(SIM_TIMER_PREINIT);
rt_tick(SIM_TIMER_INIT);
rt_tick(SIM_TIMER_TOTAL);
}

TRACE_POP
return retValue;
}
Expand Down Expand Up @@ -431,6 +424,13 @@ int initializeModel(DATA* data, threadData_t *threadData, const char* init_initM

SIMULATION_INFO *simInfo = data->simulationInfo;

if(measure_time_flag)
{
rt_accumulate(SIM_TIMER_PREINIT);
rt_tick(SIM_TIMER_INIT);
rt_tick(SIM_TIMER_TOTAL);
}

copyStartValuestoInitValues(data);

/* read input vars */
Expand Down Expand Up @@ -471,7 +471,7 @@ int initializeModel(DATA* data, threadData_t *threadData, const char* init_initM

/* Initialization complete */
if (measure_time_flag) {
rt_accumulate( SIM_TIMER_INIT);
rt_accumulate(SIM_TIMER_INIT);
}

TRACE_POP
Expand Down

0 comments on commit 58bbbff

Please sign in to comment.