error in configure
Jim Edwards
edwards.jim at gmail.com
Tue Dec 29 12:39:21 CST 2009
Hi Wei-keng,
I've found the problem - the type of the 4th variable in my call to
nfmpi_get_var_all was default integer and should have been
MPI_OFFSET_KIND. An f90 interface would have caught this...
Thanks for your help,
Jim
On Tue, Dec 29, 2009 at 11:20 AM, Wei-keng Liao <wkliao at ece.northwestern.edu
> wrote:
> Hi, Jim,
>
> I would like to mention that ncmpi_get_var_all() is to read the
> entire variable. The checking at line 2009 is to see if the user
> buffer has the same number of array elements as the entire
> variable. However, this is a warning, not an error. Please let
> me know if you are also getting incorrect data from this call.
>
> What puzzles me is the 2nd printf statement that the same
> nelems and cnelems bypass the if statement for checking
> (nelems != cnelems). Such problem may be because of mismatched
> pnetcdf object files in the library). Since you had a clean
> rebuild, this should not be the cause. Something else is fishy.
>
> If you are using the SVN most recent revision 753, the two
> printf statements you added should be in lines 2009 and 2013.
> Did you also add other codes above the line 2009?
>
>
> Wei-keng
>
>
> On Dec 29, 2009, at 9:58 AM, Jim Edwards wrote:
>
> I rebuilt pnetcdf with all optimization off and still get the error.
>> I tried to build a short testcase and it works fine, (no error - line 2016
>> is not printed).
>>
>>
>>
>>
>>
>> On Mon, Dec 28, 2009 at 6:45 PM, Wei-keng Liao <
>> wkliao at ece.northwestern.edu> wrote:
>>
>> Your outputs said both nelems and cnelems are 27.
>> I don't know why the printf at line 2016 even got printed.
>> Can you try a clean build of pnetcdf?
>>
>> Or if you can provide a test code, I can give it a try.
>>
>>
>> Wei-keng
>>
>>
>> On Dec 28, 2009, at 6:59 PM, Jim Edwards wrote:
>>
>> That works - thanks. Here is another one. I'm gettiing an error
>> Input/Output data amount mismatch
>>
>> that I've traced to the mpinetcdf.c file at around line 2000 where I
>> added a couple of print statements
>>
>>
>> printf("line %d nelems %d cnelems %d\n",__LINE__,nelems,cnelems);
>> if (nelems != cnelems) {
>> if (warning == NC_NOERR)
>> warning = NC_EIOMISMATCH;
>> printf("line %d nelems %d cnelems %d\n",__LINE__,nelems,cnelems);
>>
>> (nelems>cnelems) ? (nelems=cnelems) : (cnelems=nelems);
>> }
>>
>>
>> This results in the output:
>>
>> 1:line 2012 nelems 27 cnelems 27
>> 1:line 2016 nelems 27 cnelems 27
>>
>>
>>
>>
>>
>>
>> On Mon, Dec 28, 2009 at 5:38 PM, Wei-keng Liao <
>> wkliao at ece.northwestern.edu> wrote:
>> Hi,
>>
>> If you run autoreconf first, it will generate that file for you.
>>
>> Wei-keng
>>
>>
>>
>> On Dec 28, 2009, at 2:47 PM, Jim Edwards wrote:
>>
>> Hi,
>>
>> Tried checking out the svn trunk and get the following configure error...
>>
>> configure: error: cannot find sources (src/lib/ncconfig.in) in . or ..
>>
>> what happened to this file?
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20091229/6155d80a/attachment.htm>
More information about the parallel-netcdf
mailing list