I gave it a try to write something into configure but then realized that I would need to be able to link mpi in order to call the <br>ncmpi_inq_libvers function which is something that you cannot do from configure on all platforms.     I added a call in my libraries init function to that function so that I will get a runtime failure with a descent error message if the version is too old.     <br>

<br>As for the f90 interface - I&#39;m afraid what you have there won&#39;t work.   All of the subroutines should be functions and you are<br>missing the interface I am using - the  nfmpi_get_var_all and nfmpi_put_var_all types.    I&#39;m not sure yet but I think that I have something that will generate the f90 interfaces from a template file - let me give it a little thought, I may be able to contribute something here.<br>
<br><br><br><br><br><br><div class="gmail_quote">On Wed, Dec 30, 2009 at 2:50 PM, Wei-keng Liao <span dir="ltr">&lt;<a href="mailto:wkliao@ece.northwestern.edu" target="_blank">wkliao@ece.northwestern.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Jim,<br>
<br>
I just uploaded a few changes to pnetcdf SVN. The most notable is the<br>
Fortran module that contains the declaration of all the APIs and their<br>
arguments. They should be able to detected most of the argument type<br>
mismatch.<br>
<br>
This is my first attempt and may contain hidden problems.<br>
Please give it a try and let me know.<br>
<br>
As for your suggestion on the library version, I think it is<br>
a good idea. But I am not familiar with configure utility.<br>
I will leave it to Rob Latham.<br><font color="#888888">
<br>
Wei-keng</font><div><div></div><div><br>
<br>
On Dec 30, 2009, at 9:32 AM, Jim Edwards wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m working on porting pio from parallel-netcdf 1.0.2 to 1.1.0 -<br>
the fortran API changed a length variable from type default integer to type mpi_offset_kind.  This caused some errors<br>
that were a bit difficult to track down.<br>
<br>
So now my updated PIO won&#39;t work with an earlier version of pnetcdf and I want to build this into<br>
<a href="http://configure.ac" target="_blank">configure.ac</a>   Does anyone on this list already have this test?   The string provided by the  pnetcdf library<br>
isn&#39;t very parser friendly and the string in the svn trunk version is the same as the 1.1.0 release...<br>
<br>
const char *<br>
ncmpi_inq_libvers(void) {<br>
  return &quot;version = 1.1.0 of 02 November 2009&quot;;<br>
}<br>
<br>
<br>
Can I request a more parser friendly function and perhaps an svn generated version number so that we can distinguish between the<br>
release version and a repository check out?<br>
<br>
Thanks,<br>
Jim<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>