bug in pnetcdf.mod

Jim Edwards edwards.jim at gmail.com
Wed Oct 31 10:59:45 CDT 2012


Okay that works as a workaround, but it doesn't strike me as an acceptable
long term solution.

On Tue, Oct 30, 2012 at 4:21 PM, Wei-keng Liao
<wkliao at ece.northwestern.edu>wrote:

> 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>
>
>


-- 

Jim Edwards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20121031/ce18f326/attachment.html>


More information about the parallel-netcdf mailing list