@@ -294,43 +294,43 @@ program main
294294 ! Get info on simulation period
295295! filename = './global.nml'
296296! clock = clockCreateFrmParam(filename, localrc)
297- call clockCreateFrmParam(clock, schism_dt, num_schism_dt_in_couple, runhours, num_obs_steps)
297+ call clockCreateFrmParam(clock, schism_dt, num_schism_dt_in_couple, runhours) ! , num_obs_steps)
298298
299299 ! Read in obs times
300- allocate (list_obs_steps(num_obs_steps), list_obs_times(num_obs_steps))
301- call ESMF_UtilIOUnitGet(unit, rc= localrc)
302- _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
303- open (unit, file= ' global.nml' , iostat= localrc)
304- _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
305- read (unit, nml= obs_info, iostat= localrc)
306- _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
307- close (unit)
300+ ! allocate (list_obs_steps(num_obs_steps), list_obs_times(num_obs_steps))
301+ ! call ESMF_UtilIOUnitGet(unit, rc=localrc)
302+ ! _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
303+ ! open (unit, file='global.nml', iostat=localrc)
304+ ! _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
305+ ! read (unit, nml=obs_info, iostat=localrc)
306+ ! _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
307+ ! close (unit)
308308
309309 ! Make sure the list is ascending
310- do i = 1 , num_obs_steps - 1
311- if (list_obs_times(i + 1 ) <= list_obs_times(i) .or. list_obs_times(i) <= 0 ) then
312- write (message, * ) ' Check obs times:' , i, list_obs_times
313- call ESMF_LogWrite(trim (message), ESMF_LOGMSG_ERROR)
314- localrc = ESMF_RC_VAL_OUTOFRANGE
315- _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
316- end if
317- end do ! i
310+ ! do i = 1, num_obs_steps - 1
311+ ! if (list_obs_times(i + 1) <= list_obs_times(i) .or. list_obs_times(i) <= 0) then
312+ ! write (message, *) 'Check obs times:', i, list_obs_times
313+ ! call ESMF_LogWrite(trim(message), ESMF_LOGMSG_ERROR)
314+ ! localrc = ESMF_RC_VAL_OUTOFRANGE
315+ ! _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
316+ ! end if
317+ ! end do !i
318318 ! Calculate SCHISM time steps for DA
319- list_obs_steps = nint (list_obs_times / schism_dt)
320- where (list_obs_steps < 1 ) list_obs_steps = 1
319+ ! list_obs_steps = nint(list_obs_times / schism_dt)
320+ ! where (list_obs_steps < 1) list_obs_steps = 1
321321
322322 ! Make sure obs steps are multiples of num_schism_dt_in_couple
323- do i = 1 , num_obs_steps
324- if (mod (list_obs_steps(i), num_schism_dt_in_couple) /= 0 ) then
325- write (message, * ) ' Obs steps must be divisible by num_schism_dt_in_couple:' , i, list_obs_steps(i)
326- call ESMF_LogWrite(trim (message), ESMF_LOGMSG_ERROR)
327- localrc = ESMF_RC_VAL_OUTOFRANGE
328- _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
329- end if
330- end do ! i
331-
332- write (message, * ) ' List of obs steps:' , list_obs_steps
333- call ESMF_LogWrite(trim (message), ESMF_LOGMSG_INFO)
323+ ! do i = 1, num_obs_steps
324+ ! if (mod(list_obs_steps(i), num_schism_dt_in_couple) /= 0) then
325+ ! write (message, *) 'Obs steps must be divisible by num_schism_dt_in_couple:', i, list_obs_steps(i)
326+ ! call ESMF_LogWrite(trim(message), ESMF_LOGMSG_ERROR)
327+ ! localrc = ESMF_RC_VAL_OUTOFRANGE
328+ ! _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
329+ ! end if
330+ ! end do !i
331+
332+ ! write (message, *) 'List of obs steps:', list_obs_steps
333+ ! call ESMF_LogWrite(trim(message), ESMF_LOGMSG_INFO)
334334
335335 ! Initialize phase 0 and set attribute for calling init
336336! write(0, *) 'Before init0_loop, ESMF_GridCompInitialize'
@@ -436,24 +436,24 @@ program main
436436 do i = 1 , schismCount
437437
438438 ! Check if it's analysis step in PDAF
439- if (it == list_obs_steps(next_obs_step)) then ! DA step
439+ ! if (it == list_obs_steps(next_obs_step)) then !DA step
440440 ! Let Run know it's analysis step
441- call ESMF_AttributeSet(schism_components(i), name= ' analysis_step' , &
442- value= 1 , rc= localrc)
443- _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
444- else
445- call ESMF_AttributeSet(schism_components(i), name= ' analysis_step' , &
446- value= 0 , rc= localrc)
447- _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
448- end if ! DA step
441+ ! call ESMF_AttributeSet(schism_components(i), name='analysis_step', &
442+ ! value=1, rc=localrc)
443+ ! _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
444+ ! else
445+ ! call ESMF_AttributeSet(schism_components(i), name='analysis_step', &
446+ ! value=0, rc=localrc)
447+ ! _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
448+ ! end if !DA step
449449
450450 call ESMF_GridCompRun(schism_components(i), importState= importStateList(i), &
451451 exportState= exportStateList(i), clock= clock, rc= localrc)
452452 _SCHISM_LOG_AND_FINALIZE_ON_ERROR_(rc)
453453
454454 end do ! i
455455
456- if (it == list_obs_steps(next_obs_step)) next_obs_step = min (num_obs_steps, next_obs_step + 1 )
456+ ! if (it == list_obs_steps(next_obs_step)) next_obs_step = min(num_obs_steps, next_obs_step + 1)
457457
458458 call MPI_barrier(MPI_COMM_WORLD, ii)
459459 if (ii /= MPI_SUCCESS) call MPI_abort(MPI_COMM_WORLD, 0 , j)
@@ -581,15 +581,15 @@ program main
581581
582582end program main
583583
584- subroutine clockCreateFrmParam (clock , schism_dt , num_schism_dt_in_couple , runhours , num_obs_steps )
584+ subroutine clockCreateFrmParam (clock , schism_dt , num_schism_dt_in_couple , runhours ) ! , num_obs_steps)
585585 use esmf
586586 implicit none
587587
588588! character(len=ESMF_MAXSTR), intent(in) :: filename
589589! integer(ESMF_KIND_I4), intent(out) :: rc
590590 type (ESMF_Clock), intent (out ) :: clock
591591 ! SCHISM dt (sec) must be int
592- integer (ESMF_KIND_I4), intent (out ) :: schism_dt, num_schism_dt_in_couple, runhours, num_obs_steps
592+ integer (ESMF_KIND_I4), intent (out ) :: schism_dt, num_schism_dt_in_couple, runhours ! , num_obs_steps
593593
594594 logical :: isPresent
595595 integer (ESMF_KIND_I4) :: unit, localrc, rc
@@ -599,7 +599,7 @@ subroutine clockCreateFrmParam(clock, schism_dt, num_schism_dt_in_couple, runhou
599599 integer (ESMF_KIND_I4) :: start_year = 2000 , start_month = 1 , start_day = 1
600600 integer (ESMF_KIND_I4) :: start_hour = 0 , itmp
601601 namelist / sim_time/ start_year, start_month, start_day, start_hour, runhours, &
602- &schism_dt, num_schism_dt_in_couple, num_obs_steps
602+ &schism_dt, num_schism_dt_in_couple ! , num_obs_steps
603603
604604! inquire(file='global.nml', exist=isPresent)
605605! if (isPresent) then
0 commit comments