Skip to content

Commit

Permalink
Improve logging of homotopy-based initialization
Browse files Browse the repository at this point in the history
- see ticket:4220
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Jan 21, 2017
1 parent 20fbe26 commit 1f4d4e0
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -230,10 +230,11 @@ static int symbolic_initialization(DATA *data, threadData_t *threadData, long nu
}
#endif

infoStreamPrint(LOG_INIT, 1, "homotopy process");
infoStreamPrint(LOG_INIT, 1, "homotopy process\n---------------------------");
for(step=0; step<numLambdaSteps; ++step)
{
data->simulationInfo->lambda = ((double)step)/(numLambdaSteps-1);
infoStreamPrint(LOG_INIT, 0, "homotopy parameter lambda = %g", data->simulationInfo->lambda);

if(data->simulationInfo->lambda > 1.0) {
data->simulationInfo->lambda = 1.0;
Expand All @@ -244,7 +245,7 @@ static int symbolic_initialization(DATA *data, threadData_t *threadData, long nu
else
data->callback->functionInitialEquations(data, threadData);

infoStreamPrint(LOG_INIT, 0, "lambda = %g done", data->simulationInfo->lambda);
infoStreamPrint(LOG_INIT, 0, "homotopy parameter lambda = %g done\n---------------------------", data->simulationInfo->lambda);

if(ACTIVE_STREAM(LOG_INIT))
{
Expand Down

0 comments on commit 1f4d4e0

Please sign in to comment.