@@ -47,7 +47,7 @@ module wav_comp_nuopc
4747 use w3odatmd , only : runtype, user_histfname, user_restfname, verboselog
4848 use w3odatmd , only : use_historync, use_restartnc, restart_from_binary, logfile_is_assigned
4949 use w3odatmd , only : time_origin, calendar_name, elapsed_secs
50- use wav_shr_mod , only : casename, inst_suffix, inst_index, unstr_mesh, standalone
50+ use wav_shr_mod , only : casename, inst_suffix, inst_index, unstr_mesh
5151 use wav_wrapper_mod , only : ufs_settimer, ufs_logtimer, ufs_file_setlogunit, wtime
5252#ifndef W3_CESMCOUPLED
5353 use shr_is_restart_fh_mod , only : init_is_restart_fh, is_restart_fh, is_restart_fh_type
@@ -214,7 +214,7 @@ end subroutine InitializeP0
214214 ! > @date 01-05-2022
215215 subroutine InitializeAdvertise (gcomp , importState , exportState , clock , rc )
216216
217- use w3odatmd , only : use_cmeps
217+ use w3odatmd , only : use_cmeps, standalone
218218 use w3adatmd , only : w3naux, w3seta
219219 use w3idatmd , only : w3seti, w3ninp
220220 use w3gdatmd , only : w3nmod, w3setg
@@ -268,7 +268,7 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
268268 call ESMF_LogWrite(trim (subname)// ' called' , ESMF_LOGMSG_INFO)
269269
270270 ! if we're here, then cmeps is active
271- use_cmeps = .true.
271+ if ( .not. standalone) use_cmeps = .true.
272272
273273 !- ---------------------------------------------------------------------------
274274 ! retrieve configuration settings
@@ -952,6 +952,7 @@ subroutine DataInitialize(gcomp, rc)
952952
953953 use wav_import_export, only : calcRoughl
954954 use w3gdatmd , only : nx, ny
955+ use w3odatmd , only : standalone
955956
956957 ! input/output variables
957958 type (ESMF_GridComp) :: gcomp
@@ -1016,7 +1017,7 @@ subroutine DataInitialize(gcomp, rc)
10161017 if (ChkErr(rc,__LINE__,u_FILE_u)) return
10171018 end if
10181019
1019- if ( dbug_flag > 5 ) then
1020+ if (.not. standalone .and. dbug_flag > 5 ) then
10201021 call state_diagnose(exportState, ' at DataInitialize ' , rc= rc)
10211022 if (ChkErr(rc,__LINE__,u_FILE_u)) return
10221023 end if
0 commit comments