Skip to content

Commit

Permalink
- added makefile dependency from runtimeCPPinstall to omc, because th…
Browse files Browse the repository at this point in the history
…e suitesparse libraries should be used by the cpp-runtime

- the "--nls_continue" flag is now working again, if the kinsol solver is used
  • Loading branch information
Marcus Walther authored and OpenModelica-Hudson committed Aug 17, 2015
1 parent 92eaf4a commit e949cdd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.common
Expand Up @@ -174,7 +174,7 @@ runtimeCPP: CMinpack
CMAKE_ARGS=$(filter CMAKE_%, $(MAKEFLAGS))


runtimeCPPinstall: CMinpack copycppheader
runtimeCPPinstall: CMinpack copycppheader omc
$(MAKE) -C SimulationRuntime/cpp/ -f $(defaultMakefileTarget) CC="$(CC)" CXX="$(CXX)" install ANALYZATION_MODE="$(ANALYZATION_MODE)" $(CMAKE_ARGS) OMBUILDDIR=$(OMBUILDDIR)
test ! `uname` = Darwin || install_name_tool -id @rpath/cpp/libOMCppCVode.dylib $(OMBUILDDIR)/$(LIB_OMC)/cpp/libOMCppCVode.dylib
test ! `uname` = Darwin || install_name_tool -id @rpath/cpp/libOMCppDataExchange.dylib $(OMBUILDDIR)/$(LIB_OMC)/cpp/libOMCppDataExchange.dylib
Expand Down
2 changes: 0 additions & 2 deletions SimulationRuntime/cpp/Solver/Kinsol/Kinsol.cpp
Expand Up @@ -549,7 +549,6 @@ void Kinsol::solve()

if(_iterationStatus == SOLVERERROR && !_eventRetry)
{
/*Always throw an exception if kinsol stops with error
if(_kinsolSettings->getContinueOnError())
{
if(!_solverErrorNotificationGiven)
Expand All @@ -559,7 +558,6 @@ void Kinsol::solve()
}
}
else
*/
throw ModelicaSimulationError(ALGLOOP_SOLVER,"Nonlinear solver failed!");
}
}
Expand Down

0 comments on commit e949cdd

Please sign in to comment.