-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ci-build
find package MPI removed from nuopc cmakelists instead
- Loading branch information
Showing
11 changed files
with
3,596 additions
and
3,941 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.vscode/ | ||
*.mod | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ or | |
``` | ||
git clone -b develop --recurse-submodules [email protected]:noaa-oar-arl/NEXUS.git | ||
``` | ||
(Replace `noaa-oar-arl` with your fork if desired.) | ||
(Replace `noaa-oar-arl/NEXUS` with your fork if desired.) | ||
|
||
To install the pre-commit hooks, first [install `pre-commit`](https://pre-commit.com/#install), | ||
e.g. to your Conda environment. | ||
|
@@ -41,12 +41,8 @@ Input data: | |
|
||
#### GMU Hopper | ||
|
||
##### hpc-stack feat. GCC v10 ([somewhat WIP](https://github.com/noaa-oar-arl/ufs-srweather-app/pull/6)) | ||
|
||
``` | ||
module reset | ||
module load hpc-stack/1.2.0 | ||
module load netcdf-fortran/4.5.3-4p | ||
. /groups/ESS3/zmoon/nexus/env5 | ||
``` | ||
|
||
Input data: | ||
|
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,49 +1 @@ | ||
add_executable(nexus | ||
nexus_driver.F90 | ||
) | ||
|
||
add_library(NEXUS_Shared STATIC EXCLUDE_FROM_ALL | ||
nexus_error_mod.F90 | ||
nexus_methods_mod.F90 | ||
) | ||
|
||
target_include_directories(NEXUS_Shared | ||
INTERFACE ${HEMCO_BINARY_DIR}/mod | ||
) | ||
|
||
# find external libraries | ||
find_package(ESMF REQUIRED) | ||
find_package(NetCDF REQUIRED COMPONENTS Fortran) | ||
|
||
target_link_libraries(NEXUS_Shared | ||
PUBLIC HCOI_Shared | ||
PUBLIC esmf | ||
) | ||
|
||
target_link_libraries(nexus | ||
PUBLIC NEXUS_Shared | ||
PUBLIC esmf | ||
PUBLIC NetCDF::NetCDF_Fortran | ||
) | ||
|
||
set_target_properties(nexus PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin | ||
) | ||
|
||
# HEMCO sets a lot of flags already, and since they are set as INTERFACE options | ||
# they are applied to NEXUS as well. | ||
# https://github.com/geoschem/HEMCO/blob/main/CMakeLists.txt | ||
# But we can add a few more flags. | ||
if(UPPER_CMAKE_BUILD_TYPE STREQUAL "DEBUG") | ||
# Note HEMCO only support GNU and Intel | ||
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") | ||
# Note `-Wpedantic` causes fatal warnings in HEMCO build | ||
set(EXTRA_FLAGS_NEXUS -Wconversion-extra -Wcharacter-truncation -Wpedantic) | ||
endif() | ||
target_compile_options(NEXUS_Shared PRIVATE ${EXTRA_FLAGS_NEXUS}) | ||
target_compile_options(nexus PRIVATE ${EXTRA_FLAGS_NEXUS}) | ||
endif() | ||
|
||
install(TARGETS nexus | ||
RUNTIME DESTINATION ${RUNDIR} | ||
) | ||
add_subdirectory(nuopc) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.