Changeset 82316a99 in OpenModelica
- Timestamp:
- 2020-10-21T18:53:49+02:00 (3 years ago)
- Branches:
- maintenance/v1.16
- Children:
- 7605dee0
- Parents:
- e62a382
- git-author:
- AnHeuermann <andreas.heuermann@…> (10/08/20 12:44:36)
- git-committer:
- Adrian Pop <adrian.pop@…> (10/21/20 18:53:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/SimulationRuntime/c/simulation/solver/initialization/initialization.c
r28e9af2c r82316a99 276 276 char buffer[4096]; 277 277 double lambda; 278 int success = 0; 278 279 279 280 infoStreamPrint(LOG_INIT_HOMOTOPY, 0, "Global homotopy with equidistant step size started."); … … 295 296 296 297 infoStreamPrint(LOG_INIT_HOMOTOPY, 1, "homotopy process\n---------------------------"); 298 /* try */ 299 #ifndef OMC_EMCC 300 MMC_TRY_INTERNAL(simulationJumpBuffer) 301 #endif 297 302 for(step=0; step<init_lambda_steps; ++step) 298 303 { … … 326 331 #endif 327 332 } 333 success = 1; 334 /* catch */ 335 #ifndef OMC_EMCC 336 MMC_CATCH_INTERNAL(simulationJumpBuffer) 337 #endif 338 /* Error handling in case an assert was thrown */ 339 if (!success) 340 { 341 messageClose(LOG_INIT_HOMOTOPY); 342 #if !defined(OMC_NO_FILESYSTEM) 343 if(ACTIVE_STREAM(LOG_INIT_HOMOTOPY)) 344 fclose(pFile); 345 #endif 346 errorStreamPrint(LOG_ASSERT, 0, "Failed to solve the initialization problem with global homotopy with equidistant step size."); 347 throwStreamPrint(threadData, "Unable to solve initialization problem."); 348 } 349 328 350 data->simulationInfo->homotopySteps += init_lambda_steps; 329 351 messageClose(LOG_INIT_HOMOTOPY);
Note: See TracChangeset
for help on using the changeset viewer.