Skip to content

Commit

Permalink
update from Rocky so that NEMS can run with later ESMF beta snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMeixner-NOAA committed Apr 11, 2019
1 parent d3d7ce9 commit 2eeac36
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions config_src/nuopc_driver/mom_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -817,19 +817,29 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)

! reset shr logging to my log file
if (is_root_pe()) then
call NUOPC_CompAttributeGet(gcomp, name="diro", value=diro, &
call NUOPC_CompAttributeGet(gcomp, name="diro", &
isPresent=isPresentDiro, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, &
file=__FILE__)) &
return
call NUOPC_CompAttributeGet(gcomp, name="logfile", value=logfile, &
call NUOPC_CompAttributeGet(gcomp, name="logfile", &
isPresent=isPresentLogfile, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, &
file=__FILE__)) &
return
if (isPresentDiro .and. isPresentLogfile) then
call NUOPC_CompAttributeGet(gcomp, name="diro", value=diro, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, &
file=__FILE__)) &
return
call NUOPC_CompAttributeGet(gcomp, name="logfile", value=logfile, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, &
file=__FILE__)) &
return
open(newunit=logunit,file=trim(diro)//"/"//trim(logfile))
else
logunit = output_unit
Expand Down

0 comments on commit 2eeac36

Please sign in to comment.