Skip to content

Commit

Permalink
fix issue in docn
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Oct 3, 2024
1 parent d5da82e commit c2c4274
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docn/ocn_comp_nuopc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ subroutine docn_comp_run(gcomp, importState, exportState, clock, target_ymd, tar
call dshr_restart_read(restfilm, rpfile, logunit, my_task, mpicom, sdat, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
case('som', 'som_aquap')
call docn_datamode_som_restart_read(restfilm, inst_suffix, logunit, my_task, mpicom, sdat)
call docn_datamode_som_restart_read(restfilm, rpfile, logunit, my_task, mpicom, sdat)
end select
end if

Expand Down
6 changes: 3 additions & 3 deletions dshr/dshr_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -985,10 +985,10 @@ subroutine dshr_restart_read(rest_filem, rpfile, &
if(shr_strdata_get_stream_count(sdat) <= 0) return
call ESMF_VMGetCurrent(vm, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
exists = .false.
if (trim(rest_filem) == 'none') then
inquire(file=trim(rest_filem), exist=exists)
if (trim(rest_filem) == 'none' .or. trim(rest_filem) == 'null') then
if (my_task == main_task) then
write(logunit,F00) ' restart filename from rpointer '//trim(rpfile)
write(logunit,F00) ' restart filename from rpointer: '//trim(rpfile)
open(newunit=nu, file=trim(rpfile), form='formatted')
read(nu, '(a)') rest_filem
close(nu)
Expand Down

0 comments on commit c2c4274

Please sign in to comment.