NetCDF throws errors in my program while saving co-ordinates (e.g.
"Z,Y,X") when compiled with the GNU profiler enabled
"NetCDF: Not a valid ID saving Z" and then it prints the values of Z
These errors are not present when compiled without the profiling flag "
-pg ". I can compile and run without the profiling flags without error
messages.
I tried using the sample program
pres_temp_4D_wr.f90
<http://www.unidata.ucar.edu/software/netcdf/examples/programs/pres_temp_4D_wr.f90>
but could not recreate the error (the program runs fine when compiled
both ways).
Any suggestions on how to narrow the source of the error are appreciated
Thanks
compiler:
Using built-in specs.
COLLECT_GCC=/usr/bin/gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --enable-plugin --enable-objc-gc
--disable-werror --with-arch-32=i686 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
--
Mart!n Hoecker-Mart!nez
Ph.D. graduate student, Physical Oceanography
e-mail: mhoecker@xxxxxxxxxxxxxxxxxxxx <mailto:mhoecker@xxxxxxxxxxxxxxxxxxxx>
http://wart.coas.oregonstate.edu/
phone: 541-737-9831
fax: 541-737-2064
Office: Burt 324
College of Oceanic and Atmospheric Sciences
Oregon State University
104 COAS Administration Building
Corvallis, OR 97331-5503