﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
835	Trouble in time-averaged output NetCDF files	kate		"If you run the standard upwelling case with '''NTIMES = 18''', N'''AVG = 9''', '''NDEFAVG = 9''',
it blows up:

{{{
Image              PC                Routine            Line        Source             
oceanG             00000000021D3096  Unknown               Unknown  Unknown
oceanG             000000000092C915  output_                   283  output.f90
oceanG             0000000000813DF1  main3d_                   231  main3d.f90
}}}

the line in question is:

{{{
283             AVG(ng)%Nrec(Fcount)=0
}}}

The test above:

{{{
278             IF (iic(ng).eq.ntstart(ng)) THEN
}}}
is never true, so '''AVG(ng)%load''' starts at 1, goes to 2, then 3. When '''Fcount''' is 3, it goes out of bounds with '''AVG(ng)%Nrec''' is dimensioned size 2.

It was working before: src:ticket:825, trunk@982

"	bug	closed	major	Release ROMS/TOMS 3.8	Nonlinear	3.8	Fixed		
