Skip to content

Commit 0309ff6

Browse files
committed
fix wrong variable name
1 parent 2db2e59 commit 0309ff6

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CDEPS/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ target_sources(OM3_cdeps_common PRIVATE
1616

1717
CDEPS/dshr/dshr_dfield_mod.F90
1818
CDEPS/dshr/dshr_fldlist_mod.F90
19-
CDEPS/dshr/dshr_mod.F90
2019
)
20+
add_patched_source(OM3_cdeps_common CDEPS/dshr/dshr_mod.F90)
2121

2222
## DATM
2323
add_fortran_library(OM3_cdeps_datm mod/datm STATIC)

CDEPS/patches/dshr_mod.F90.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/dshr/dshr_mod.F90 b/dshr/dshr_mod.F90
2+
index ca87f2e..7d6bd71 100644
3+
--- a/dshr/dshr_mod.F90
4+
+++ b/dshr/dshr_mod.F90
5+
@@ -1058,7 +1058,6 @@ contains
6+
type(io_desc_t) :: pio_iodesc
7+
integer :: oldmode
8+
integer :: rcode
9+
- character(len=CS) :: lrpfile
10+
character(*), parameter :: F00 = "('(dshr_restart_write) ',2a,2(i0,2x))"
11+
!-------------------------------------------------------------------------------
12+
13+
@@ -1071,7 +1070,7 @@ contains
14+
15+
! write restart info to rpointer file
16+
if (my_task == main_task) then
17+
- open(newunit=nu, file=trim(lrpfile), form='formatted')
18+
+ open(newunit=nu, file=trim(rpfile), form='formatted')
19+
write(nu,'(a)') rest_file_model
20+
close(nu)
21+
write(logunit,F00)' writing ',trim(rest_file_model)

0 commit comments

Comments
 (0)