wrong type in createf.c ?

Patrick Jöckel joeckel at mpch-mainz.mpg.de
Thu Nov 9 11:17:16 CST 2006


Dear parallel-netcdf developers,

is it possible that there is a bug in createf.c  ?:

/* Prototypes for the Fortran interfaces */
#include "mpifnetcdf.h"
FORTRAN_API int FORT_CALL nfmpi_create_ ( MPI_Fint *v1, char *v2 
FORT_MIXED_LEN(d2), int *v3, MPI_Fint *v4, MPI_Fint *v5 FORT_END_LEN(d2) ){

Why is it
            int *v3
instead of
            MPI_Fint *v3

If I call

  INTEGER :: nc_cmode
  ...
  nc_cmode = IOR(NF_CLOBBER,NF_64BIT_OFFSET)
  ...
  NFMPI_CREATE( p_all_comm &
            , TRIM(fname), MPI_INFO_NULL &
            , nc_cmode &
            , ncid)

I get a segmentation error.
With nc_cmode = NF_CLOBBER (=0) it works.

The system is 32-bit Linux.
Hope you can help me.
Yours,

      Patrick

-- 
---------------------------------------------------------------
Dr. Patrick Joeckel
Max Planck Institute for Chemistry
Joh.-J. Becher Weg 27         
55128 Mainz                   phone:++49-6131-305452      
Germany                       fax  :++49-6131-305436     
                             e-mail:joeckel at mpch-mainz.mpg.de
                         http://www.mpch-mainz.mpg.de/~joeckel
---------------------------------------------------------------




More information about the parallel-netcdf mailing list