Skip to content

Commit

Permalink
cppruntime: minor bugfix linear systems, copy rhs into residuals
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17091 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Christian SChubert committed Sep 6, 2013
1 parent 1cd1da9 commit aa7ffaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -1683,7 +1683,8 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
<<
void <%modelname%>Algloop<%index%>::getRHS(double* residuals)
{
AlgLoopDefaultImplementation::getRHS(residuals);
for(size_t i=0; i<_dimAEq; ++i)
residuals[i] = __b[i];
}
>>
Expand Down
6 changes: 6 additions & 0 deletions SimulationRuntime/cpp/CMakeLists.txt
Expand Up @@ -8,6 +8,12 @@ SET(BLAS_blas_LIBRARY $ENV{OMDEV}/lib/3rdParty/Lapack/Lib/blas_win32.dll CACHE F
SET(LAPACK_lapack_LIBRARY $ENV{OMDEV}/lib/3rdParty/Lapack/Lib/lapack_win32.dll CACHE FILEPATH "Lapack library")
SET(BLAS_DIRY "$ENV{OMDEV}/lib/3rdParty/Lapack/Lib/" CACHE LOCATION "where was yarp built?")

# Disable Optimization for RelWithDebInfo on Windows
if (MSVC)
STRING(REPLACE "/O2" "/Od" CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELWITHDEBINFO})
endif()


#set mico paths
SET(MICO_LIB_HOME $ENV{OMDEV}/lib/mico-msys-mingw/)
SET(MICO_INCLUDE_HOME $ENV{OMDEV}/include/mico-msys-mingw/)
Expand Down

0 comments on commit aa7ffaa

Please sign in to comment.