pnetcdf-write-nb.c non-blocking

W. Miah wadud.miah at gmail.com
Mon Sep 7 13:52:05 CDT 2015


Hello,

I have downloaded pNetCDF and am browsing through the example code
parallel-netcdf-1.6.0/examples/tutorial/pnetcdf-write-nb.c (attached
with this email) which should write the MPI ranks into two arrays, but
instead seems to be writing random values:

[miahw at bengal tutorial]$ ncdump output.nc
netcdf output {
dimensions:
    d1 = 4 ;
variables:
    int v1(d1) ;
    int v2(d1) ;

// global attributes:
        :string = "Hello World\n",
            "" ;
data:

 v1 = 0, 16777216, 33554432, 50331648 ;

 v2 = 0, 16777216, 33554432, 50331648 ;
}

I have looked at the code but can't see anything wrong with it. Could
it be that the library has a bug?

Regards,

-- 
web: http://miahw.wordpress.com
gnupg: 2E29 B22F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pnetcdf-write-nb.c
Type: text/x-csrc
Size: 4171 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20150907/506602b6/attachment.c>


More information about the parallel-netcdf mailing list