Re: Test problem with F90 and V3.6.0

  • To: Jacob Weismann Poulsen <jwp@xxxxxx>,
  • Subject: Re: Test problem with F90 and V3.6.0
  • From: "Paul Vandelst" <Paul.Vandelst@xxxxxxxx>
  • Date: Wed, 12 Jan 2005 11:11:55 -0500
Jacob Weismann Poulsen wrote:
Hi Phillippe,

I have just tried the same version of netcdf with pgi 5.1-6 and
the 'make test' runs all the way through. However, inspecting
the output shows that one of the test failed, namely 'ncvarget'.
Nevertheless the 'Total number of failures' reported is 0!!! I
haven't seen the problem that you describe below.

Hello,

Well, the ncvarget isn't related to the pgi f90 compiler (unless you're also using the pgi C compiler).

With respect to the original poster's problem, I just built the library with pgi f90 v5.2-4 and everything worked fine:
lnx:local/netcdf/src/f90 : make test
pgf90 -o netcdf_test -O -w  netcdf_test.f90 netcdf.o typeSizes.o 
../libsrc/libnetcdf.a
netcdf_test.f90:
./netcdf_test
*** Success ***

The settings I used were
 export CC=/usr/bin/gcc
 export CPPFLAGS='-DNDEBUG -DpgiFortran'
 export CFLAGS=-O
 export FC=pgf90
 export F90=pgf90
 export FFLAGS="-O -w"
 export F90FLAGS="-O -w"
 export CXX=/usr/bin/g++

A colleague of mine installed the netCDF 3.6.0 on his linux box but with the PGI 5.1-3 f90 compiler and he gets the exact same errors as the original message has indicated. I suggest upgrading to v5.2-4. The problems will go away, and you'll have yourself an f95 compiler to boot (although, be aware that the .mod file formats changed between pgf90 5.1 and 5.2 due to the pgi compiler becoming fully f95 capable. This means you'll have to recompile everything.)

cheers,

paulv



Cheers, Jacob


* Philippe Poilbarbe <philippe.poilbarbe@xxxxxxxxxxxx> [2005-01-12 14:51]:

Hello,

I have a test problem with F90 and Version 3.6.0.

At the end of this message there is the output of the test program (netcdf_test.f90). I have added an another trace output of the 'pressure' variable (print *, pressure) to
make sure that it is normal.

The environment is:
uname -a: Linux px-105.ferme 2.6.7-1.492custom #1 SMP Fri Jul 23 10:32:17 UTC 2004 i686 athlon i386 GNU/Linux
Portland group F90 compiler: 5.1.3
C compiler: gcc 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Did anybody have the same kind of problem ?

Thanks,
Ph.P.

======================

netcdf_test.f90:
./netcdf_test
  950.0000        951.0000        952.0000        953.0000
  954.0000        955.0000        956.0000        957.0000
  958.0000        959.0000        960.0000        961.0000
  962.0000        963.0000        964.0000        965.0000
  966.0000        967.0000        968.0000        969.0000
  970.0000        971.0000        972.0000        973.0000
example_good.cdl example.cdl sont différents: octet 881, ligne 37
*** Failure ***
*** example_good.cdl    2000-04-05 21:33:14.000000000 +0200
--- example.cdl 2005-01-11 10:21:31.624884000 +0100
***************
*** 34,43 ****
  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 ;

--- 34,43 ----
  953, 954, 955,
  956, 957, 958,
  959, 960, 961,
!   950, 951, 952,
!   953, 954, 955,
!   956, 957, 958,
!   959, 960, 961 ;

 lat = -90, -87.5, -85, -82.5 ;

make[2]: *** [test] Erreur 1
make[2]: Quitte le répertoire `/data/du2_dev/dev/PRODUITS/src/netcdf/Distrib/netcdf-3.6.0/src/f90'
make[1]: *** [subdir_target] Erreur 1
make[1]: Quitte le répertoire `/data/du2_dev/dev/PRODUITS/src/netcdf/Distrib/netcdf-3.6.0/src'
make: *** [f90/test] Erreur 2






--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC


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