forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add_lake_20200810: Place orog, lake and inland code
in their own directories under new directory orog_mask_tools.fd. References ufs-community#111.
- Loading branch information
1 parent
a76f303
commit 1aa9c50
Showing
16 changed files
with
27 additions
and
17 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,19 @@ | ||
set(fortran_src | ||
nb.F90 | ||
inland.F90) | ||
|
||
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$") | ||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -assume byterecl") | ||
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$") | ||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-range-check") | ||
endif() | ||
|
||
set(exe_name inland) | ||
|
||
add_executable(${exe_name} ${fortran_src}) | ||
|
||
target_link_libraries( | ||
${exe_name} | ||
NetCDF::NetCDF_Fortran) | ||
|
||
install(TARGETS ${exe_name} RUNTIME DESTINATION ${exec_dir}) |
File renamed without changes.
File renamed without changes.
20 changes: 5 additions & 15 deletions
20
sorc/orog.fd/lake.fd/CMakeLists.txt → ...orog_mask_tools.fd/lake.fd/CMakeLists.txt
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,30 +1,20 @@ | ||
set(fortran_src1 | ||
set(fortran_src | ||
enclosure_cnvx.F90 | ||
find_limit.F90 | ||
lakefrac.F90) | ||
|
||
set(fortran_src2 | ||
nb.F90 | ||
inland.F90) | ||
|
||
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$") | ||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -assume byterecl") | ||
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$") | ||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-range-check") | ||
endif() | ||
|
||
set(exe_name1 lakefrac) | ||
set(exe_name2 inland) | ||
|
||
add_executable(${exe_name1} ${fortran_src1}) | ||
add_executable(${exe_name2} ${fortran_src2}) | ||
set(exe_name lakefrac) | ||
|
||
target_link_libraries( | ||
${exe_name1} | ||
NetCDF::NetCDF_Fortran) | ||
add_executable(${exe_name} ${fortran_src}) | ||
|
||
target_link_libraries( | ||
${exe_name2} | ||
${exe_name} | ||
NetCDF::NetCDF_Fortran) | ||
|
||
install(TARGETS ${exe_name1} ${exe_name2} RUNTIME DESTINATION ${exec_dir}) | ||
install(TARGETS ${exe_name} RUNTIME DESTINATION ${exec_dir}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.