[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20040218: netCDF problem?



Molcard,

> To: address@hidden
> cc: address@hidden
> From: address@hidden
> Organization: UCAR/Unidata
> Keywords: 200402181622.i1IGMmrV009576

The above message contained the following:

> A. Linux quiqueg.sp.ismar.cnr.it 2.4.22-10mdk #1 Thu Sep 18 12:30:58 CEST 
> 2003 i686 unknown unknown GNU/Linux
> B. 3.5.1
> C,D,E,F see attached files

The only problem you seem to have encounted is in the "make test" for
the Fortran-90 interface:

    Making `test' in directory /usr/local/netcdf-3.5.1/src/f90

    make[2]: Entering directory `/usr/local/netcdf-3.5.1/src/f90'
    ./netcdf_test
    example_good.cdl example.cdl differ: byte 239, line 11
    *** Failure ***
    *** example_good.cdl    2000-04-05 15:33:14.000000000 -0400
    --- example.cdl 2004-02-18 17:15:51.000000000 -0500
    ***************
    *** 8,15 ****
            float P(frtime, lat, lon) ;
                    P:long_name = "pressure at maximum wind" ;
                    P:units = "hectopascals" ;
    !               P:valid_range = 0.f, 1500.f ;
    !               P:_FillValue = -9999.f ;
            float lat(lat) ;
                    lat:long_name = "latitude" ;
                    lat:units = "degrees_north" ;
    --- 8,15 ----
            float P(frtime, lat, lon) ;
                    P:long_name = "pressure at maximum wind" ;
                    P:units = "hectopascals" ;
    !               P:valid_range = 1.298651e+23f, 0.f ;
    !               P:_FillValue = 0.f ;
            float lat(lat) ;
                    lat:long_name = "latitude" ;
                    lat:units = "degrees_north" ;
    ***************
    *** 30,45 ****
      data:
      
       P =
    !   950, 951, 952,
    !   953, 954, 955,
    !   956, 957, 958,
    !   959, 960, 961,
    !   962, 963, 964,
    !   965, 966, 967,
    !   968, 969, 970,
    !   971, 972, 973 ;
      
    !  lat = -90, -87.5, -85, -82.5 ;
      
       lon = -180, -175, -170 ;
      
    --- 30,45 ----
      data:
      
       P =
    !   4.390326e+21, 4.464113e+21, 4.5379e+21,
    !   4.611687e+21, 4.685474e+21, 4.796155e+21,
    !   4.943729e+21, 5.091302e+21, 5.238876e+21,
    !   5.38645e+21, 5.534024e+21, 5.681598e+21,
    !   4.943729e+21, 5.091302e+21, 5.238876e+21,
    !   5.38645e+21, 5.534024e+21, 5.681598e+21,
    !   1.298651e+23, _, _,
    !   _, _, _ ;
      
    !  lat = -1.704244e+13, -1.154488e+13, 0, 0 ;
      
       lon = -180, -175, -170 ;
      
    make[2]: *** [test] Error 1
    make[2]: Leaving directory `/usr/local/netcdf-3.5.1/src/f90'
    make[1]: *** [subdir_target] Error 1
    make[1]: Leaving directory `/usr/local/netcdf-3.5.1/src'
    make: *** [f90/test] Error 2

We don't have an in-house system that is similar to yours, so I can't 
attempt to duplicate your problem.  You seem to have correctly followed
the advice for building on a Linux system using the Intel Fortran-90
compiler, ifc, however, with the exception of the FLIBS environment
variable which is set to

    /opt/intel/compiler70/ia32/lib/libPEPCF90.a

in the example.

I note, however, that the advice doesn't explicitly cover the Fortran-90
interface: the environment variables explicitly cover the Fortran-77
interface only.  Therefore, I suspect that the problem might be that the
same options that were given to ifc(1) in order to compile the
Fortran-77 interface must also be given to ifc(1) when it compiles the
Fortran-90 interface.

Please try the following:

    1.  Go to the top-level source directory.

    2.  Perform steps 3 through 5 of

            
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems

    3. Set the environment variable F90FLAGS identically to FFLAGS, e.g.,

            export F90FLAGS=$FFLAGS

        or

            setenv F90FLAGS $FFLAGS

        depending on your user-shell.

    4.  You might wish to set both the FLIBS and F90LIBS environment
        variables to the string

            /opt/intel/compiler70/ia32/lib/libPEPCF90.a

        or whatever is equivalent on your system.  More information on
        this can be found at

            
http://www.unidata.ucar.edu/packages/netcdf/other-builds.html#intel-ifc

    5.  Perform steps 6 through 9 of

            
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems

Please let me know what you discover.

Regards,
Steve Emmerson