@@ -16,12 +16,12 @@ module rof_comp_nuopc
1616 use NUOPC_Model , only : NUOPC_ModelGet
1717 use shr_kind_mod , only : R8 = >SHR_KIND_R8 , CL= >SHR_KIND_CL
1818 use shr_sys_mod , only : shr_sys_abort
19- use shr_file_mod , only : shr_file_getlogunit, shr_file_setlogunit
19+ use shr_log_mod , only : shr_log_getlogunit, shr_log_setlogunit
2020 use shr_cal_mod , only : shr_cal_noleap, shr_cal_gregorian, shr_cal_ymd2date
2121 use RtmVar , only : rtmlon, rtmlat, iulog
2222 use RtmVar , only : nsrStartup, nsrContinue, nsrBranch
2323 use RtmVar , only : inst_index, inst_suffix, inst_name, RtmVarSet
24- use RtmVar , only : rtmlon, rtmlat, ice_runoff, iulog , nt_rtm
24+ use RtmVar , only : ice_runoff, nt_rtm
2525 use RtmVar , only : nsrStartup, nsrContinue, nsrBranch
2626 use RtmVar , only : rtm_active, flood_active
2727 use RtmSpmd , only : RtmSpmdInit, masterproc, mpicom_rof, iam, npes
@@ -257,7 +257,7 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
257257 ! Reset shr logging to original values
258258 !- ---------------------------------------------------------------------------
259259
260- call shr_file_setLogUnit (shrlogunit)
260+ call shr_log_setLogUnit (shrlogunit)
261261 call ESMF_LogWrite(subname// ' done' , ESMF_LOGMSG_INFO)
262262
263263 end subroutine InitializeAdvertise
@@ -322,8 +322,8 @@ subroutine InitializeRealize(gcomp, importState, exportState, clock, rc)
322322 ! Reset shr logging to my log file
323323 !- ---------------------------------------------------------------------------
324324
325- call shr_file_getLogUnit (shrlogunit)
326- call shr_file_setLogUnit (iulog)
325+ call shr_log_getLogUnit (shrlogunit)
326+ call shr_log_setLogUnit (iulog)
327327
328328#if (defined _MEMTRACE)
329329 if (masterproc) then
@@ -525,7 +525,7 @@ subroutine InitializeRealize(gcomp, importState, exportState, clock, rc)
525525 ! Reset shr logging
526526 !- ---------------------------------------------------------------------------
527527
528- call shr_file_setLogUnit (shrlogunit)
528+ call shr_log_setLogUnit (shrlogunit)
529529
530530 call ESMF_LogWrite(subname// ' done' , ESMF_LOGMSG_INFO)
531531
@@ -587,8 +587,8 @@ subroutine ModelAdvance(gcomp, rc)
587587 rc = ESMF_SUCCESS
588588 call ESMF_LogWrite(subname// ' called' , ESMF_LOGMSG_INFO)
589589
590- call shr_file_getLogUnit (shrlogunit)
591- call shr_file_setLogUnit (iulog)
590+ call shr_log_getLogUnit (shrlogunit)
591+ call shr_log_setLogUnit (iulog)
592592
593593#if (defined _MEMTRACE)
594594 if (masterproc) then
@@ -722,7 +722,7 @@ subroutine ModelAdvance(gcomp, rc)
722722 ! Reset shr logging to my original values
723723 !- -------------------------------
724724
725- call shr_file_setLogUnit (shrlogunit)
725+ call shr_log_setLogUnit (shrlogunit)
726726
727727#if (defined _MEMTRACE)
728728 if (masterproc) then
0 commit comments