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