Skip to content

Commit

Permalink
fixup! cleanup: remove indirection through nrniv/*.cpp files to paral…
Browse files Browse the repository at this point in the history
…lel/*.cpp files
  • Loading branch information
mgeplf committed Apr 26, 2024
1 parent cd1d5e1 commit e2b369f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 6 additions & 4 deletions cmake/NeuronFileLists.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,12 @@ list(APPEND NRN_NODEORDEROPTIM_SRC_FILES ${PROJECT_SOURCE_DIR}/src/coreneuron/ut
nrn_create_file_list(NRN_NRNCVODE_SRC_FILES ${NRN_NRNCVODE_SRC_DIR} ${NRNCVODE_FILE_LIST})
nrn_create_file_list(NRN_NRNIV_SRC_FILES ${NRN_NRNIV_SRC_DIR} ${NRNIV_FILE_LIST})
nrn_create_file_list(NRN_PARALLEL_SRC_FILES ${NRN_PARALLEL_SRC_DIR} ${NRN_PARALLEL_FILES_LIST})
nrn_create_file_list(NRN_PARALLEL_SRC_FILES ${PROJECT_SOURCE_DIR}/src/nrniv
nvector_nrnparallel_ld.cpp)
nrn_create_file_list(NRN_PARALLEL_SRC_FILES ${PROJECT_SOURCE_DIR}/src/sundials/shared
nvector_parallel.c)
if(NRN_ENABLE_MPI)
nrn_create_file_list(NRN_PARALLEL_SRC_FILES ${PROJECT_SOURCE_DIR}/src/nrniv
nvector_nrnparallel_ld.cpp)
nrn_create_file_list(NRN_PARALLEL_SRC_FILES ${PROJECT_SOURCE_DIR}/src/sundials/shared
nvector_parallel.c)
endif()
nrn_create_file_list(NRN_SPARSE_SRC_FILES ${PROJECT_SOURCE_DIR}/src/sparse ${SPARSE_FILES_LIST})
nrn_create_file_list(NRN_SCOPMATH_SRC_FILES ${PROJECT_SOURCE_DIR}/src/scopmath
${SCOPMATH_FILES_LIST})
Expand Down
7 changes: 2 additions & 5 deletions src/nrniv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,8 @@ set(NRN_NRNIV_LIB_SRC_FILES
${NRN_MODFILE_CPP}
${NRN_SCOPMATH_SRC_FILES}
${NRN_SPARSE_SRC_FILES}
${NRN_SUNDIALS_SRC_FILES})

if(NRN_ENABLE_MPI)
list(APPEND NRN_NRNIV_LIB_SRC_FILES ${NRN_PARALLEL_SRC_FILES})
endif()
${NRN_SUNDIALS_SRC_FILES}
${NRN_PARALLEL_SRC_FILES})

if(NRN_ENABLE_MPI_DYNAMIC)
list(APPEND NRN_NRNIV_LIB_SRC_FILES ${PROJECT_SOURCE_DIR}/src/nrnmpi/nrnmpi_dynam.cpp)
Expand Down

0 comments on commit e2b369f

Please sign in to comment.