﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
540	Round-off problem in time-steping DO WHILE loop	arango	arango	"Mark Hadfield [https://www.myroms.org/forum/viewtopic.php?f=19&t=2512 reported] a problem in the forum about a round-off problem in the time-stepping loop in '''main2d''' and '''main3d'''.  As suggested, this loop is changed so the equality test is more robust:

{{{
      my_StepTime=0.0_r8
      MaxDT=MAXVAL(dt)

      STEP_LOOP : DO WHILE (my_StepTime.le.(RunInterval+0.5_r8*MaxDT))

        my_StepTime=my_StepTime+MaxDT

        ...

      END DO STEP_LOOP
}}}
Similar change is made to the '''TLM''', '''RPM''', and '''ADM''' versions of these routines.  Many thanks to Mark for bringing this to my attention.
"	defect	closed	major	Release ROMS/TOMS 3.6	Nonlinear	3.6	Done		
