<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. 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. This makes ParaView think that the wind blade reader can't read a .wind file in serial. 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. 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 <dave.demarle@kitware.com><br> <b><span style="font-weight: bold;">To:</span></b> Sohail Shafii <sohailshafii@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Andy Bauer <andy.bauer@kitware.com>; "migichen@gmail.com" <migichen@gmail.com>; "paraview@paraview.org" <paraview@paraview.org>; "Woodring, Jonathan L" <woodring@lanl.gov> <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. Here's what Andy said before, which relates to my concern:</span></div>
<div><span>"</span>><br>> I went through the code and it jogged my memory about previous problems with<br>> it. It had an explicit MPI call in the constructor that would cause problems<br>> when paraview wasn't getting built with MPI. Any time a user tried to open<br>
> an unknown file it would try to create a windblade reader to see if the<br>> reader could handle the file and this would cause a crash. If you launch a<br>> 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. 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>---> ./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&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 <<a href="" rel="nofollow">sohailshafii@yahoo.com</a>> wrote:<br>
> What is the class that is responsible for testing to reader to see if it can<br>> open the .wind file?<br>><br>> Sohail<br>><br>> ________________________________<br>> From: Andy Bauer <<a href="" rel="nofollow">andy.bauer@kitware.com</a>><br>
> To: Sohail Shafii <<a href="" rel="nofollow">sohailshafii@yahoo.com</a>><br>> Cc: "Woodring, Jonathan L" <<a href="" rel="nofollow">woodring@lanl.gov</a>>; Sebastien Jourdain<br>> <<a href="" rel="nofollow">sebastien.jourdain@kitware.com</a>>; "<a href="" rel="nofollow">migichen@gmail.com</a>" <<a href="" rel="nofollow">migichen@gmail.com</a>>;<br>
> "<a href="" rel="nofollow">paraview@paraview.org</a>" <<a href="" rel="nofollow">paraview@paraview.org</a>><br>> Sent: Wednesday, July 11, 2012 10:53 AM<br>><br>> Subject: Re: [Paraview] ParaView thinks that it does not have a wind blade<br>
> reader<br>><br>>
I was reluctant to enable the reader in serial (i.e. not using MPI IO which<br>> I think is getting done by default with the parallel build) because of the<br>> following warnings that I got:<br>><br>> Warning: In /home/acbauer/CODE/ParaView/<br>
> ParaView/VTK/IO/Parallel/vtkWindBladeReader.cxx, line 942<br>> vtkWindBladeReader (0x3a0c800): WindBladeReader error reading file:<br>> /home/acbauer/DATA/VTKLargeData/Data/WindBladeReader/test1_topo.wind<br>> Premature EOF while reading block of data. Expected 896000 but got 0<br>
><br>> I just assumed that it was getting bad results so I didn't check the serial<br>> output with the parallel output. In either case the code should be changed<br>> before enabling it in serial so that it reads the files correctly and<br>
> doesn't produce any warning messages.<br>><br>> Andy<br>><br>> On Wed, Jul 11, 2012 at 12:04 PM, Sohail Shafii <<a href="" rel="nofollow">sohailshafii@yahoo.com</a>><br>> wrote:<br>><br>> I'm not aware of any option to build/link against mpi-io. This is just a<br>
> standard build with mpi support that suffers from this issue.<br>><br>> The ParaView website's builds also have the same bug.<br>><br>> ________________________________<br>> From: "Woodring, Jonathan L" <<a href="" rel="nofollow">woodring@lanl.gov</a>><br>
> To: Sohail Shafii <<a href="" rel="nofollow">sohailshafii@yahoo.com</a>>; Andy Bauer<br>> <<a href="" rel="nofollow">andy.bauer@kitware.com</a>>; Sebastien Jourdain<br>> <<a href="" rel="nofollow">sebastien.jourdain@kitware.com</a>><br>> Cc: "<a href="" rel="nofollow">migichen@gmail.com</a>" <<a href="" rel="nofollow">migichen@gmail.com</a>>; "<a href="" rel="nofollow">paraview@paraview.org</a>"<br>
> <<a href="" rel="nofollow">paraview@paraview.org</a>><br>> Sent: Tuesday, July 10, 2012 10:06 AM<br>><br>> Subject: Re: [Paraview] ParaView thinks that it does not have a wind blade<br>> reader<br>><br>> I added the MPI calls to be in sync with what was being added in the<br>
> simulation.<br>><br>> In the SuperComputing demo last year, we updated both the HiGrad FireTec to<br>> use MPI-IO and likewise ParaView to do the same thing.<br>><br>> It w</div> </div> </div></div></blockquote>
<br><br>-- <br>David E DeMarle<br>Kitware, Inc.<br>R&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>