[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #FXE-858183]: Possible Bug
- Subject: [netCDF #FXE-858183]: Possible Bug
- Date: Mon, 25 Jan 2010 13:05:15 -0700
> I am running a code with intel fortran
>
> The problem:
>
> Attribute domainOrigin in the code is set to 0,0 but when the output
> file is read with ncdump its value change to 1264539600,0. A work around
> is to set twice the attribute value to 0,0.
>
> The value of 126539600 it is the last value of the attribute validTimes
> (vtime array).
This is a problem with your program. You have dimensioned vtime to have only
144 elements, but then you have the loop:
do i=2,144,2
vtime(i)=vtime(i-1)+3600
vtime(i+1)=vtime(i)
end do
which assigns v(145) the last time through. This assignment outside of the
bounds
of the vtime array overwrites a different variable, which probably causes the
problem
you are seeing.
--Russ
> Thanks in advance for your help
>
>
> Jose Agustín García Reynoso http://www.atmosfera.unam.mx
> address@hidden
> Centro de Ciencias de la Atmosfera 52-55-56224073
> Universidad Nacional Autonoma de Mexico 52-55-56160789 (fax)
> Circuito Exterior s/n Mexico DF 04510
>
>
>
>
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: FXE-858183
Department: Support netCDF
Priority: Normal
Status: Closed