bug in pnetcdf.mod

Jim Edwards edwards.jim at gmail.com
Wed Oct 31 11:25:21 CDT 2012


Hi Wei-keng,

The workaround that you propose below won't work for me since in general I
would need
var2(1), var2(1,1), var2(1,1,1) etc but my template generated code won't be
easy to modify to do that
and I cannot currently go back to include pnetcdf.inc since these functions
are not defined in that
file.
"pionfput_mod.F90", 1516-036 (S) Entity nfmpi_bput_vara_text has undefined
type.

Jim

On Wed, Oct 31, 2012 at 9:59 AM, Jim Edwards <edwards.jim at gmail.com> wrote:

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


-- 

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


More information about the parallel-netcdf mailing list