Skip to content

Commit

Permalink
Open input files with read-only rather than readwrite to prevent lock
Browse files Browse the repository at this point in the history
storms
  • Loading branch information
ioanhadade committed Jan 20, 2025
1 parent 65511b4 commit 423d1f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ecwam/wvwaminit.F90
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ SUBROUTINE WVWAMINIT (LLCOUPLED, IULOG, LLRNL, &
CALL WAM_ABORT("WAVE MODEL INPUT FILE '"//FILENAME(1:LFILE)//"' IS MISSING !!!",&
&__FILENAME__,__LINE__)
ENDIF
IU07 = IWAM_GET_UNIT(IU06, FILENAME(1:LFILE) , 'r', 'u',0,'READWRITE')
IU07 = IWAM_GET_UNIT(IU06, FILENAME(1:LFILE) , 'r', 'u',0,'READ')

IF (IPROPAGS < 0 .OR. IPROPAGS > NPROPAGS) THEN
WRITE(IU06,*) '************************************'
Expand Down Expand Up @@ -195,7 +195,7 @@ SUBROUTINE WVWAMINIT (LLCOUPLED, IULOG, LLRNL, &
CALL WAM_ABORT("WAVE MODEL INPUT FILE '"//FILENAME(1:LFILE)//"' IS MISSING !!!",&
&__FILENAME__,__LINE__)
ENDIF
IU08(IPROPAGS) = IWAM_GET_UNIT(IU06, FILENAME(1:LFILE),'r','u',0,'READWRITE')
IU08(IPROPAGS) = IWAM_GET_UNIT(IU06, FILENAME(1:LFILE),'r','u',0,'READ')
ENDIF

KTAG=1
Expand All @@ -214,4 +214,4 @@ SUBROUTINE WVWAMINIT (LLCOUPLED, IULOG, LLRNL, &

IF (LHOOK) CALL DR_HOOK('WVWAMINIT',1,ZHOOK_HANDLE)

END SUBROUTINE WVWAMINIT
END SUBROUTINE WVWAMINIT

0 comments on commit 423d1f5

Please sign in to comment.