<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META content="MSHTML 6.00.6000.17092" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=515110808-27052011><FONT face=Arial color=#0000ff size=2>Hi
Andy,</FONT></SPAN></DIV>
<DIV><SPAN class=515110808-27052011><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=515110808-27052011><FONT face=Arial color=#0000ff size=2>Well,
I managed to get it compiled and working by linking against NetCDF 4.1.1.
However, I think it makes sense to remain consistent with the
NetCDF version that ParaView uses, which is what I've done and I've got
that working now as well. I've not had any issues with respect to MPI so far,
but I've still to finish testing. If I find any issues, I'll be sure to
repost!</FONT></SPAN></DIV>
<DIV><SPAN class=515110808-27052011><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=515110808-27052011><FONT face=Arial color=#0000ff size=2>Thanks
for your help.</FONT></SPAN></DIV>
<DIV><SPAN class=515110808-27052011><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=515110808-27052011><FONT face=Arial color=#0000ff
size=2>Adriano</FONT></SPAN></DIV></DIV>
<DIV> </DIV><!-- Converted from text/plain format -->
<P><FONT size=2>===================================<BR><BR>Adriano Gagliardi
MEng PhD<BR>Business Sector Leader<BR>Computational Aerodynamics<BR>Aircraft
Research Association Ltd.<BR>Manton Lane<BR>Bedford<BR><BR>Tel: 01234 32
4644<BR>E-mail: agagliardi@ara.co.uk<BR>Url: www.ara.co.uk </FONT></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Andy Bauer [mailto:andy.bauer@kitware.com]
<BR><B>Sent:</B> 26 May 2011 19:02<BR><B>To:</B>
agagliardi@ara.co.uk<BR><B>Cc:</B> paraview@paraview.org<BR><B>Subject:</B> Re:
[Paraview] Possible NetCDF conflict?<BR></FONT><BR></DIV>
<DIV></DIV>Hi Adriano,<BR><BR>I wrote the vtkNetCDFCAMReader and I'm using the
C++ API to NetCDF in that reader. The NcVar::name() method is used in that
code. Instead of using the standard netcdf c++ header file you can include
vtk_netcdfcpp.h instead. A couple of finer points that may or may not
affect you:<BR><BR>1) There may be some issue with including mpi.h and having
the netcdf header files rename some of the mpi constants.<BR><BR>2) The default
netcdf error condition (e.g. trying to access a variable that doesn't exist
using get_var() ) is to call exit. You can do something like
"NcError ncError(NcError::verbose_nonfatal);" to turn this behavior off while
ncError is in scope.<BR><BR>Andy<BR><BR><BR>
<DIV class=gmail_quote>On Thu, May 26, 2011 at 12:34 PM, Adriano Gagliardi <SPAN
dir=ltr><<A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Dear
All,<BR><BR>I appear to be getting a conflict between a reader plugin I
developed that<BR>handles the NetCDF format and the latest release of
ParaView. The call that<BR>is giving me issues is the NcVar function call,
name(), which returns a<BR>NcToken (const char *). The issue is that the call
now returns a NULL<BR>pointer regardless of dataset, which is wrong.<BR><BR>To
be clear:<BR><BR>(1) I have compiled my plugin with the same, static netcdf
libraries<BR>consistently between both versions of ParaView.<BR>(2) The reader
code has not changed between both versions of ParaView.<BR>(3) All variables
exist in the NetCDF files and the data files themselves<BR>have not changed
between both versions of ParaView.<BR>(4) By removing the NcVar var->name()
call in the code and hard-coding a<BR>variable name that exists in the file
(e.g. const char* = "pressure"), the<BR>reader works i.e. it detects the
variable, loads it in and displays it<BR>correctly.<BR><BR>Item 4 is what
leads me to believe there is now some sort of conflict<BR>occuring between the
old (PV3.6.2) and new (3.10.1) versions of ParaView. I<BR>know there is
support for specific NetCDF files in ParaView already. If<BR>possible, I'd
like to try and compile my plugin against the NetCDF libraries<BR>used for
those readers. Can I do this? In the meantime, I'm going to try<BR>downloading
and compiling against the latest NetCDF libraries to see if it<BR>resolves the
issue.<BR><BR>Thanks,<BR><BR>Adriano<BR><BR>===================================<BR><BR>Adriano
Gagliardi MEng PhD<BR>Business Sector Leader<BR>Computational
Aerodynamics<BR>Aircraft Research Association Ltd.<BR>Manton
Lane<BR>Bedford<BR><BR>Tel: 01234 32 4644<BR>E-mail: <A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A><BR>Url: <A
href="http://www.ara.co.uk"
target=_blank>www.ara.co.uk</A><BR><BR><BR>**********************************************************************<BR>This
email contains information that is private and confidential and is intended
only for the addressee.<BR>If you are not the intended recipient please delete
it and notify us immediately by e-mailing the sender.<BR>Note: All email sent
to or from this address may be accessed by someone other than the recipient,
for<BR>system management and security reasons.<BR>Aircraft Research
Association Ltd. Registered in England, Registration No 503668
Registered Office:<BR>Manton Lane, Bedford MK41 7PF England VAT No GB
196351245<BR><BR>**********************************************************************<BR>_______________________________________________<BR>Powered
by <A href="http://www.kitware.com"
target=_blank>www.kitware.com</A><BR><BR>Visit other Kitware open-source
projects at <A href="http://www.kitware.com/opensource/opensource.html"
target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please
keep messages on-topic and check the ParaView Wiki at: <A
href="http://paraview.org/Wiki/ParaView"
target=_blank>http://paraview.org/Wiki/ParaView</A><BR><BR>Follow this link to
subscribe/unsubscribe:<BR><A
href="http://www.paraview.org/mailman/listinfo/paraview"
target=_blank>http://www.paraview.org/mailman/listinfo/paraview</A><BR></BLOCKQUOTE></DIV><BR><p>**********************************************************************<br />This email contains information that is private and confidential and is intended only for the addressee.<br />If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br />Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br />system management and security reasons.<br />Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office:<br />Manton Lane, Bedford MK41 7PF England VAT No GB 196351245</p><p>**********************************************************************</p>
</BODY></HTML>