Skip to content

Commit

Permalink
Add patched sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhilsabareesh8 committed May 6, 2024
1 parent e0007c4 commit ee4cda2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WW3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ target_sources(OM3_ww3 PRIVATE
${switch_files}
)

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

## Utilities

# ww3_grid
Expand Down
22 changes: 22 additions & 0 deletions WW3/patches/w3iorsmd.F90.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/w3iorsmd.F90 b/w3iorsmd.F90.new
index ffb34d47..0e32748b 100644
--- a/w3iorsmd.F90
+++ b/w3iorsmd.F90.new
@@ -893,7 +893,7 @@ CONTAINS
WRITEBUFF(:) = 0.
WRITE (NDSR,POS=RPOS,ERR=803,IOSTAT=IERR) WRITEBUFF
WRITE (NDSR,POS=RPOS,ERR=803,IOSTAT=IERR) &
- TLEV, TICE, TRHO
+ TLEV, TICE, TRHO, TIC1, TIC5
DO IPART=1,NPART
NREC = NREC + 1
RPOS = 1_8 + LRECL*(NREC-1_8)
@@ -1078,7 +1078,7 @@ CONTAINS
IF (TYPE.EQ.'FULL') THEN
RPOS = 1_8 + LRECL*(NREC-1_8)
READ (NDSR,POS=RPOS,ERR=802,IOSTAT=IERR) &
- TLEV, TICE, TRHO
+ TLEV, TICE, TRHO, TIC1, TIC5
DO IPART=1,NPART
NREC = NREC + 1
RPOS = 1_8 + LRECL*(NREC-1_8)

0 comments on commit ee4cda2

Please sign in to comment.