Skip to content

Commit

Permalink
- minor fixes
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16646 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Jul 19, 2013
1 parent f2db4ea commit cb28bbc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion SimulationRuntime/c/simulation/solver/solver_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,22 @@ int solver_main(DATA* data, const char* init_initMethod,
solverInfo.solverMethod = S_DASSL;
break;

#ifndef WITH_SUNDIALS
case S_RADAU1:
case S_RADAU3:
case S_RADAU5:
case S_LOBATTO2:
case S_LOBATTO4:
case S_LOBATTO6:
WARNING(LOG_STDOUT, "Sundial/kinsol is needed but not available. Please choose other solver.");
return 1;
#endif

case S_OPTIMIZATION:
WARNING(LOG_STDOUT, "not supported yet");
#ifndef WITH_IPOPT
WARNING(LOG_STDOUT, "Ipopt is needed but not available.");
#endif
WARNING(LOG_STDOUT, "optimization is not supported yet");
return 1;

case S_INLINE_EULER:
Expand Down

0 comments on commit cb28bbc

Please sign in to comment.