-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from ls1mardyn/code-refactor-mamico
Code refactor mamico
- Loading branch information
Showing
15 changed files
with
510 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
option(MAMICO_COUPLING "Couple with MaMiCo" OFF) | ||
if (MAMICO_COUPLING) | ||
message(STATUS "MaMiCo coupling enabled. ls1 mardyn will compile as library. No executable will be created.") | ||
set(MAMICO_COMPILE_DEFINITIONS MAMICO_COUPLING MDDim3) | ||
option(MAMICO_ENABLE_FPIC "Enable -fPIC flag for MaMiCo python bindings" OFF) | ||
set(MAMICO_SRC_DIR CACHE PATH "Root directory of the MaMiCo codebase") | ||
if(NOT MAMICO_SRC_DIR) | ||
message(FATAL_ERROR "MaMiCo source directory not specified.") | ||
endif() | ||
if(ENABLE_MPI) | ||
set(MAMICO_MPI_DEFINITIONS MDCoupledParallel TarchParallel) | ||
endif() | ||
if(MAMICO_ENABLE_FPIC) | ||
set(MAMICO_COMPILE_OPTIONS "${MAMICO_COMPILE_OPTIONS} -fPIC") | ||
endif() | ||
else() | ||
message(STATUS "MaMiCo coupling disabled.") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.