bug in pnetcdf.mod

Wei-keng Liao wkliao at ece.northwestern.edu
Tue Oct 30 17:21:30 CDT 2012


Please try "var2(1)". i.e.

      err = nfmpi_put_var_text(ncid, varid(2), var2(1))

Wei-keng

On Oct 30, 2012, at 5:02 PM, Jim Edwards wrote:

> Hi,
> 
> The attached program writes a file of form 
> 
> netcdf test {
> // file format: CDF-5 (big variables)
> dimensions:
>         Clen1 = 12 ;
>         Clen2 = 6 ;
> variables:
>         char string1(Clen1) ;
>         char string2(Clen2, Clen1) ;
> data:
> 
>  string1 = "abcdefghijkl" ;
> 
>  string2 =
>   "1bcdefghijkl",
>   "2bcdefghijkl",
>   "3bcdefghijkl",
>   "4bcdefghijkl",
>   "5bcdefghijkl",
>   "6bcdefghijkl" ;
> }
> 
> The program works fine when using #include <pnetcdf.inc>  but when trying to use pnetcdf.mod
> it incorrectly gives an error, I believe that the module interface just needs to be expanded to include multi-dimensional character strings.  I am using code from the repository svn v1100 
> 
>  mpxlf95_r pnetcdf-write-bug.F -I/contrib/parallel-netcdf/svn1100/include -L/contrib/parallel-netcdf/svn1100/lib -lpnetcdf -qfixed
> "pnetcdf-write-bug.F", line 79.48: 1513-061 (S) Actual argument attributes do not match those specified by an accessible explicit interface.
> ** main   === End of Compilation 1 ===
> 1501-511  Compilation failed for file pnetcdf-write-bug.F.
> 
> -- 
> Jim Edwards
> 
> CESM Software Engineering Group
> National Center for Atmospheric Research
> Boulder, CO 
> 303-497-1842
> 
> <pnetcdf-write-bug.F>



More information about the parallel-netcdf mailing list