Found the problem in the test program, a corrected program is attached. This reminds me of another issue - the interface to nfmpi_iput_vara is not defined in pnetcdf.mod<br><br>- Jim<br><br><div class="gmail_quote">On Sun, Feb 17, 2013 at 11:43 AM, Jim Edwards <span dir="ltr"><<a href="mailto:jedwards@ucar.edu" target="_blank">jedwards@ucar.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In my larger program I am getting an error:<br><br>PMPI_Type_create_struct(139): Invalid value for blocklen, must be non-negative but is -1715470336<br>
<br>I see a note about this in nonblocking.c:<br><br> for (j=0; j<reqs[i].varp->ndims; j++)<br>
blocklens[i] *= reqs[i].count[j];<br> /* Warning! blocklens[i] might overflow */<br><br><br>But I tried to distile this into a small testcase and I'm getting a different error, I've attached the test program anyway because I can't spot any error there and think it must be in pnetcdf. Also it seems like instead of<br>
calling mpi_type_create_struct you should be calling mpi_type_subarray which will avoid the problem of blocklens overflowing. <br><br>This test program is written for 8 mpi tasks, but it uses a lot of memory so you may need more than one node to run it. <br clear="all">
<span class="HOEnZb"><font color="#888888">
<br>-- <br>Jim Edwards<br><br><font>CESM Software Engineering Group<br>National Center for Atmospheric Research<br>Boulder, CO <br><a href="tel:303-497-1842" value="+13034971842" target="_blank">303-497-1842</a><br></font>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Jim Edwards<br><br><font>CESM Software Engineering Group<br>National Center for Atmospheric Research<br>Boulder, CO <br>303-497-1842<br></font>