-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
23 additions
and
63 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,11 @@ | ||
# PDAF-OGS module | ||
|
||
## Build | ||
|
||
```bash | ||
mkdir build; cd build | ||
FC=mpif90 cmake ../[path-to-sources] | ||
make | ||
``` | ||
|
||
Find the shared library `pdaf` in `build/pdaf_user/`. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
file(GLOB PDAF_BASE_SOURCES *.F90) | ||
|
||
include_directories(dummympi) | ||
|
||
add_library(PDAF_base ${PDAF_BASE_SOURCES}) | ||
add_library(PDAF_base STATIC ${PDAF_BASE_SOURCES}) | ||
target_include_directories(PDAF_base PRIVATE dummympi) | ||
target_compile_options(PDAF_base PRIVATE "-fdefault-real-8") |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
file(GLOB PDAF_USER_SOURCES *.F90) | ||
|
||
include_directories(dummympi) | ||
add_library(pdaf ${PDAF_USER_SOURCES}) | ||
target_include_directories(pdaf PRIVATE dummympi) | ||
target_link_libraries(pdaf PRIVATE PDAF_base) | ||
|
||
add_library(PDAF_user SHARED ${PDAF_USER_SOURCES}) | ||
set_target_properties(PDAF_user PROPERTIES PREFIX "") | ||
set_target_properties(PDAF_user PROPERTIES OUTPUT_NAME "pdaf") | ||
if(APPLE AND BUILD_SHARED_LIBS) | ||
target_link_libraries(pdaf PUBLIC "-framework Accelerate") | ||
endif() |
This file was deleted.
Oops, something went wrong.