Weird error with nfmpi_def_dim

Nikhil Laghave nikhill at iastate.edu
Wed Oct 15 00:39:46 CDT 2008


Okay I got it, the 3rd parameter needs to be integer*8.
Nikhil

On Wed, Oct 15, 2008 at 12:15 AM, Nikhil Laghave <nikhill at iastate.edu>wrote:

> Hello All,
>
> Can anyone find some mistake in this function call ?
>
> retval = nfmpi_def_dim(ncid,'x',NX,x_dimid)
>
> This is the syntax i got from several documents but I keep getting this
> error because of this line:
>
> Error:
> 0:   Invalid dimension size
>
> The variables are declared as:
>       integer NX, NY
>       parameter (NX = 16)
>
>       integer ncid
>       integer x_dimid, y_dimid
>
> The file gets created collectively and then I get this error when I try to
> define the dimensions for the variable.
> 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.
>
> Thanks in anticipation.
>
>
> --
> Regards,
> Nikhil
>



-- 
Regards,
Nikhil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20081015/822daaee/attachment.htm>


More information about the parallel-netcdf mailing list