Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WW3 swtiches and replace ww3_outp utility with ww3_ounp #84

Merged
merged 4 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions WW3/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Global definitions, flags, etc

## List of switches
list(APPEND switches "CESMCOUPLED" "NCO" "DIST" "MPI" "PR3" "UQ" "FLX4" "SEED" "ST6" "STAB0" "NL1" "BT1" "DB1" "MLIM" "TR0" "BS0" "RWND" "WNX1" "WNT1" "CRX1" "CRT1" "O0" "O1" "O2" "O3" "O4" "O5" "O6" "O7" "O14" "O15" "IS0" "REF0" "NOGRB" "IC0")
list(APPEND switches "CESMCOUPLED" "NCO" "DIST" "MPI" "PR1" "FLX4" "ST6" "STAB0" "LN1" "NL1" "BT1" "DB1" "MLIM" "TR0" "BS0" "RWND" "WNX1" "WNT1" "CRX1" "CRT1" "O0" "O1" "O2" "O3" "O4" "O5" "O6" "O7" "O14" "O15" "IS0" "REF0" "NOGRB" "IC0")

## Global compile definitions
foreach(switch ${switches})
Expand Down Expand Up @@ -76,9 +76,9 @@ target_sources(OM3_ww3 PRIVATE
WW3/model/src/wminitmd.F90
WW3/model/src/wmiopomd.F90
WW3/model/src/wmmdatmd.F90
WW3/model/src/w3wavemd.F90
WW3/model/src/wmunitmd.F90
WW3/model/src/wmupdtmd.F90
WW3/model/src/wmwavemd.F90
WW3/model/src/w3tidemd.F90
WW3/model/src/wav_grdout.F90
WW3/model/src/w3iogoncdmd.F90
Expand Down Expand Up @@ -131,17 +131,17 @@ set_target_properties(OM3_ww3_ounf PROPERTIES
)
target_link_libraries(OM3_ww3_ounf PRIVATE OM3_ww3)

# ww3_outp
add_executable(OM3_ww3_outp WW3/model/src/ww3_outp.F90)
set_target_properties(OM3_ww3_outp PROPERTIES
# ww3_ounp
add_executable(OM3_ww3_ounp WW3/model/src/ww3_ounp.F90)
set_target_properties(OM3_ww3_ounp PROPERTIES
LINKER_LANGUAGE Fortran
OUTPUT_NAME ww3_outp
OUTPUT_NAME ww3_ounp
)
target_link_libraries(OM3_ww3_outp PRIVATE OM3_ww3)
target_link_libraries(OM3_ww3_ounp PRIVATE OM3_ww3)


## Installs
if(OM3_BIN_INSTALL)
install(TARGETS OM3_ww3_grid OM3_ww3_strt OM3_ww3_ounf OM3_ww3_outp
install(TARGETS OM3_ww3_grid OM3_ww3_strt OM3_ww3_ounf OM3_ww3_ounp
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()