NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Gridded2DDoubleSet constructors

Hi Russell,

It seems you are correct.  The constructors for Gridded2DDoubleSets
with manifold dimension 1 were not calling init_doubles.  The problem
will be fixed in the next VisAD update.  Thanks for finding this!

-Curtis

At 10:45 7/14/01, you wrote:
>Hello,
>
>I believe I have found a problem with the constructors of
>Gridded2DDoubleSet.  When the constructors with signatures of
>
>  Gridded2DDoubleSet(MathType, double[][], int)
>  Gridded2DDoubleSet(MathType, double[][], int, CoordinateSystem,
>                     Unit[], ErrorEstimate[])
>  Gridded2DDoubleSet(MathType, double[][], int, CoordinateSystem,
>                     Unit[], ErrorEstimate[], boolean)
>
>are called, the double[][] samples array is not used.  It appears that
>all that is needed is a call to init_doubles(double[][], boolean) on
>line 204 of Gridded2DDoubleSet.java.
>
>I have added that call to a copy of that file, and it fixes the
>ArrayIndexOutOfBoundsException I was getting when calling
>domainEnumeration() of a Field that uses this as its domain Set.
>
>If I am way off the mark here, I can supply a short program that
>demonstrates the problem that led me to this area.
>
>Thanks
>Russell
>
>
>-- 
>Russell Steicke
>Bureau of Meteorology, Australia.
>
>-- Fortune says:
>Chaos is King and Magic is loose in the world.


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: