Skip to content

Commit

Permalink
Fix the broken tests by outputting error messages thrown when trying …
Browse files Browse the repository at this point in the history
…to find zero crossings

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19891 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 1, 2014
1 parent 2cac3ca commit 19e43c4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions SimulationRuntime/c/simulation/simulation_runtime.cpp
Expand Up @@ -923,6 +923,8 @@ static void omc_assert_simulation(threadData_t *threadData, FILE_INFO info, cons
threadData = threadData ? threadData : (threadData_t*)pthread_getspecific(mmc_thread_data_key);
switch (threadData->currentErrorStage)
{
case ERROR_EVENTSEARCH:
case ERROR_OPTIMIZE:
case ERROR_SIMULATION:
va_start(ap,msg);
fputs("Error: ",stderr);
Expand Down Expand Up @@ -958,11 +960,6 @@ static void omc_assert_simulation(threadData_t *threadData, FILE_INFO info, cons
}
longjmp(*threadData->simulationJumpBuffer,1);
break;
case ERROR_EVENTSEARCH:
case ERROR_OPTIMIZE:
/* Ignore asserts for event search, since to find events we need to
* step over in regions, which may trigger asserts.
*/
default:
throwStreamPrint(threadData,"Unhandled Assertion-Error");
}
Expand Down

0 comments on commit 19e43c4

Please sign in to comment.