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

Fix time history units in WW3 output #102

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion WW3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ target_sources(OM3_ww3 PRIVATE
WW3/model/src/wav_kind_mod.F90
WW3/model/src/wav_shr_mod.F90
WW3/model/src/wav_shel_inp.F90
WW3/model/src/wav_comp_nuopc.F90
WW3/model/src/wav_import_export.F90

${switch_files}
)

add_patched_source(OM3_ww3 WW3/model/src/wav_comp_nuopc.F90)

## Utilities

# ww3_grid
Expand Down
13 changes: 13 additions & 0 deletions WW3/patches/wav_comp_nuopc.F90.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/model/src/wav_comp_nuopc.F90 b/model/src/wav_comp_nuopc.F90
index 8b9ff5a5..eabdb47f 100644
--- a/model/src/wav_comp_nuopc.F90
+++ b/model/src/wav_comp_nuopc.F90
@@ -608,7 +608,7 @@ contains
if (ChkErr(rc,__LINE__,u_FILE_u)) return
endif
! Determine time attributes for history output
- call ESMF_TimeGet( esmfTime, timeString=time_origin, calendar=calendar, rc=rc )
+ call ESMF_TimeGet( startTime, timeString=time_origin, calendar=calendar, rc=rc )
if (ChkErr(rc,__LINE__,u_FILE_u)) return
time_origin = 'seconds since '//time_origin(1:10)//' '//time_origin(12:19)
!call ESMF_ClockGet(clock, calendar=calendar)
Loading