<div dir="ltr">Hello All,<br><br>Can anyone find some mistake in this function call ?<br><br>retval = nfmpi_def_dim(ncid,'x',NX,x_dimid)<br><br>This is the syntax i got from several documents but I keep getting this error because of this line:<br>
<br>Error: <br>0: Invalid dimension size<br><br>The variables are declared as:<br> integer NX, NY<br> parameter (NX = 16)<br><br> integer ncid<br> integer x_dimid, y_dimid<br><br>The file gets created collectively and then I get this error when I try to define the dimensions for the variable.<br>
Can someone plz point out the error so that I can get a start with pnetcdf ? I have also attached the file with this emai.<br><br>Thanks in anticipation.<br><br clear="all"><br>-- <br>Regards,<br>Nikhil<br>
</div>