<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>When running serially, vtkSMReaderFactory::CanReadFile sees that the session has a single process.&nbsp; As such, on line 660 it realizes that the source proxy's process support (in this case the source is a vtkWindBladeReader proxy) is multiple processes, which causes a return of "false" from that function.&nbsp; This makes ParaView think that the wind blade reader can't read a .wind file in serial.&nbsp; According to Andy, the reader works find in parallel.<br></span></div><div><span><br></span></div><div><span>I assume that a fix for this is pretty trivial? It never did this before in previous versions of ParaView and I think that the wind blade reader code has remained mostly the same. Andy mentioned some details in person when he was talking with Jon but at that time I didn't know as much as I do now.&nbsp; There is a
 mention below about enabling the filter in serial and parallel -- is this done in a xml file?<br></span></div><div><br><span></span></div><div><span>Sohail<br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> David E DeMarle &lt;dave.demarle@kitware.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Sohail Shafii &lt;sohailshafii@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> Andy Bauer &lt;andy.bauer@kitware.com&gt;; "migichen@gmail.com" &lt;migichen@gmail.com&gt;; "paraview@paraview.org" &lt;paraview@paraview.org&gt;; "Woodring, Jonathan L" &lt;woodring@lanl.gov&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 17, 2012 7:00 PM<br> <b><span
 style="font-weight: bold;">Subject:</span></b> Re: [Paraview] ParaView thinks that it does not have a wind blade reader<br> </font> </div> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1850579770">Each file that has an association with that file extension, made via the XML, has its CanReadFile method called. Put a breakpoint there to determine if ParaView even knows about that reader.<span></span><br><br>On Tuesday, July 17, 2012, Sohail Shafii  wrote:<br>
<blockquote class="yiv1850579770gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;font-family:arial, helvetica, sans-serif;"><div><span>Sorry, but I meant to ask a different question.&nbsp; Here's what Andy said before, which relates to my concern:</span></div>
<div><span>"</span>&gt;<br>&gt; I went through the code and it jogged my memory about previous problems with<br>&gt; it. It had an explicit MPI call in the constructor that would cause problems<br>&gt; when paraview wasn't getting built with MPI. Any time a user tried to open<br>
&gt; an unknown file it would try to create a windblade reader to see if the<br>&gt; reader could handle the file and this would cause a crash. If you launch a<br>&gt; separate pvserver the wind blade reader will be available in the gui."</div>
<div><br></div><div>What I meant was; which ParaView class "creates" or "tests" a reader to see if it can handle a file? The test code you specified has a predefined data set that is loaded
 in, and I think is more of an example to your average user. Correct me if I'm wrong.</div><div><br></div><div>So basically ParaView will recognize the file extension, tries to load it, crashes somewhere, then asks you specify the data format from a dialog.&nbsp; I'm trying to figure out where it crashes so that I can see how that relates to the wind blade reader class and any MPI calls that are in there.</div>
<div><br></div><div>Sohail<br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div dir="ltr"><font face="Arial"><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Paraview] ParaView thinks that it does not have a wind blade reader<br>
 </font> </div> <br>
kargad:ParaView demarle$ find . -name "*WindBlade*" -print<br>---&gt; ./VTK/IO/Parallel/Testing/Cxx/TestWindBladeReader.cxx<br>./VTK/IO/Parallel/vtkWindBladeReader.cxx<br>./VTK/IO/Parallel/vtkWindBladeReader.h<br>
<br>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909<br><br><br>On Tue, Jul 17, 2012 at 2:09 PM, Sohail Shafii &lt;<a href="" rel="nofollow">sohailshafii@yahoo.com</a>&gt; wrote:<br>
&gt; What is the class that is responsible for testing to reader to see if it can<br>&gt; open the .wind file?<br>&gt;<br>&gt; Sohail<br>&gt;<br>&gt; ________________________________<br>&gt; From: Andy Bauer &lt;<a href="" rel="nofollow">andy.bauer@kitware.com</a>&gt;<br>
&gt; To: Sohail Shafii &lt;<a href="" rel="nofollow">sohailshafii@yahoo.com</a>&gt;<br>&gt; Cc: "Woodring, Jonathan L" &lt;<a href="" rel="nofollow">woodring@lanl.gov</a>&gt;; Sebastien Jourdain<br>&gt; &lt;<a href="" rel="nofollow">sebastien.jourdain@kitware.com</a>&gt;; "<a href="" rel="nofollow">migichen@gmail.com</a>" &lt;<a href="" rel="nofollow">migichen@gmail.com</a>&gt;;<br>
&gt; "<a href="" rel="nofollow">paraview@paraview.org</a>" &lt;<a href="" rel="nofollow">paraview@paraview.org</a>&gt;<br>&gt; Sent: Wednesday, July 11, 2012 10:53 AM<br>&gt;<br>&gt; Subject: Re: [Paraview] ParaView thinks that it does not have a wind blade<br>
&gt; reader<br>&gt;<br>&gt;
 I was reluctant to enable the reader in serial (i.e. not using MPI IO which<br>&gt; I think is getting done by default with the parallel build) because of the<br>&gt; following warnings that I got:<br>&gt;<br>&gt; Warning: In /home/acbauer/CODE/ParaView/<br>
&gt; ParaView/VTK/IO/Parallel/vtkWindBladeReader.cxx, line 942<br>&gt; vtkWindBladeReader (0x3a0c800): WindBladeReader error reading file:<br>&gt; /home/acbauer/DATA/VTKLargeData/Data/WindBladeReader/test1_topo.wind<br>&gt; Premature EOF while reading block of data. Expected 896000 but got 0<br>
&gt;<br>&gt; I just assumed that it was getting bad results so I didn't check the serial<br>&gt; output with the parallel output. In either case the code should be changed<br>&gt; before enabling it in serial so that it reads the files correctly and<br>
&gt; doesn't produce any warning messages.<br>&gt;<br>&gt; Andy<br>&gt;<br>&gt; On Wed, Jul 11, 2012 at 12:04 PM, Sohail Shafii &lt;<a href="" rel="nofollow">sohailshafii@yahoo.com</a>&gt;<br>&gt; wrote:<br>&gt;<br>&gt; I'm not aware of any option to build/link against mpi-io.&nbsp; This is just a<br>
&gt; standard build with mpi support that suffers from this issue.<br>&gt;<br>&gt; The ParaView website's builds also have the same bug.<br>&gt;<br>&gt; ________________________________<br>&gt; From: "Woodring, Jonathan L" &lt;<a href="" rel="nofollow">woodring@lanl.gov</a>&gt;<br>
&gt; To: Sohail Shafii &lt;<a href="" rel="nofollow">sohailshafii@yahoo.com</a>&gt;; Andy Bauer<br>&gt; &lt;<a href="" rel="nofollow">andy.bauer@kitware.com</a>&gt;; Sebastien Jourdain<br>&gt; &lt;<a href="" rel="nofollow">sebastien.jourdain@kitware.com</a>&gt;<br>&gt; Cc: "<a href="" rel="nofollow">migichen@gmail.com</a>" &lt;<a href="" rel="nofollow">migichen@gmail.com</a>&gt;; "<a href="" rel="nofollow">paraview@paraview.org</a>"<br>
&gt; &lt;<a href="" rel="nofollow">paraview@paraview.org</a>&gt;<br>&gt; Sent: Tuesday, July 10, 2012 10:06 AM<br>&gt;<br>&gt; Subject: Re: [Paraview] ParaView thinks that it does not have a wind blade<br>&gt; reader<br>&gt;<br>&gt; I added the MPI calls to be in sync with what was being added in the<br>
&gt; simulation.<br>&gt;<br>&gt; In the SuperComputing demo last year, we updated both the HiGrad FireTec to<br>&gt; use MPI-IO and likewise ParaView to do the same thing.<br>&gt;<br>&gt; It w</div> </div>  </div></div></blockquote>
<br><br>-- <br>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909<br>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div>  </div></body></html>