<div dir="ltr"><div><div>Hi Praveen,<br><br></div>Thanks for sharing. Right now we use OSMesa to get rid of the window popping up. On a lot of the HPC machines we run on there isn't any window manager or any other GL implementation that is easily usable. I've heard some stuff on the mailing list to improving that but haven't followed too closely on it. If you have ideas on how to do that better I'm listening.<br>
<br>Regards,<br></div>Andy<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 4:24 PM, Praveen Narayanan <span dir="ltr"><<a href="mailto:praveenn@nvidia.com" target="_blank">praveenn@nvidia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I got it to work. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>1)<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The original try using the ‘connect with catalyst’ button in paraview: with this, one can create a python script after some postprocessing and then run the pipeline later.<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>2)<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I can also run it in what it calls batch mode where a window pops up for the events. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for all the help. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Attached: animation.avi (created from the files dumped by catalyst)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> 3.png (screenshot of live video)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Andy Bauer [mailto:<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>] <br>
<b>Sent:</b> Thursday, June 12, 2014 1:06 PM</span></p><div><div class="h5"><br><b>To:</b> Praveen Narayanan<br><b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br><b>Subject:</b> Re: [Paraview] Linking Catalyst example samples with Catalyst<u></u><u></u></div>
</div><p></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hi Praveen,<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">
You need to check the Live Visualization box when exporting the script (the first option in the image below). There is an overhead to checking for the live connection (it's fairly small but possibly not negligible for explicit simulations with a small enough amount of cells per process) so that's part of the thinking behind having the user explicitly specify that.<u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">If you haven't done this, instead of just recreating the script you can just change "coprocessor.EnableLiveVisualization(False)" to pass in True instead. I'll update gridwriter.py in the repo to have that change as well.<u></u><u></u></p>
</div><p class="MsoNormal">Also, the way things are set up with miniFE, I wouldn't call it a connection to Catalyst since Catalyst is used as a library instead of an external process. I just wanted to make it clear that it's not the typical client-server connection that's used here.<u></u><u></u></p>
<div><p class="MsoNormal"><br>Regards,<br>Andy<u></u><u></u></p><div><div><p class="MsoNormal"><br><br><img><u></u><u></u></p></div></div></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div><p class="MsoNormal">On Thu, Jun 12, 2014 at 2:30 PM, Praveen Narayanan <<a href="mailto:praveenn@nvidia.com" target="_blank">praveenn@nvidia.com</a>> wrote:<u></u><u></u></p><p class="MsoNormal">Not sure if this is the right thread to ask since my original installation difficulties have now resolved themselves.<br>
<br>A few days ago, miniFE instrumented with catalyst was put up at Andy Bauer's git repo (<a href="https://github.com/acbauer/miniFE-2.0_ref_Catalyst" target="_blank">https://github.com/acbauer/miniFE-2.0_ref_Catalyst</a>), which I built (successful- first make the adaptor and then make the main code) and tried running (unsuccessful).<br>
<br>From what I see, we should call the python pipeline creator by appending the name of the file gridwriter.py. However, I cannot get it to show any of the data rendered on screen when it does the coprocessing although Catalyst::coprocessor creates vtk data structures both for the grid and the data associated with the grid, and the python script creates the pipeline in the method doCoprocessing (is that the correct interpretation?)<br>
<br>Currently, it connects to catalyst and executes the pipeline since it dumps data files to the disc and generally responds to the simulation. {\bf But I cannot get it to render anything live}.<br><br>Thanks<br><span><span style="color:#888888">Praveen.</span></span><u></u><u></u></p>
<div><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br><br><br>-----Original Message-----<br>From: Ben Boeckel [mailto:<a href="mailto:ben.boeckel@kitware.com" target="_blank">ben.boeckel@kitware.com</a>]<br>Sent: Friday, June 06, 2014 7:16 AM<br>
To: Praveen Narayanan<br>Cc: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>Subject: Re: [Paraview] Linking Catalyst example samples with Catalyst<u></u><u></u></p></div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
On Fri, Jun 06, 2014 at 02:18:42 -0700, Praveen Narayanan wrote:<br>> I am examining the example code for catalyst from Andy Bauer’s git<br>> repository (<a href="https://github.com/acbauer/CatalystExampleCode" target="_blank">https://github.com/acbauer/CatalystExampleCode</a>).<br>
><br>> I am trying to learn about the catalyst workflow before using it in my<br>> own in situ examples.<br><br>So, first, there is no requirement to use a Catalyst-the-build to use Catalyst-the-coprocessing-API. Catalyst builds are meant for use where a smaller ParaView is a better fit (super computing, lower memory constraints, etc.). The naming is indeed confusing :( .<br>
<br>> python catalyze.py -i Editions/Base -o ../catalyst_src<br>><br>> fatal: Not a git repository (or any of the parent directories): .git<br>><br>> Error: Command '['git', 'rev-parse', '--show-toplevel']' returned<br>
> non-zero exit status 128<br><br>You can give `-r <dir>` to tell it the top-level of the source tree.<br>Without it, it will try and find the top-level using git, which won't work for tarballs. I'll improve the error message.<br>
<br>> 2) I tried two of the catalyst sources<br>><br>> a. Base+python: This builds properly and links with the example code<br>> (CxxFullExample)<br>><br>> b. Base+essentials+extras+python: This also builds and links with the<br>
> example code, but I get the following runtime error:<br><br>When do these errors pop up? The Catalyst build trees are slimmed down ParaView builds and don't have everything under the sun included (e.g., animation classes are missing). If you need other classes, another edition should be made to include the required classes and proxies.<br>
<br>> 3) The build base+python runs the example code, but does not connect<br>> with catalyst. Furthermore, upon running make test to test with the<br>> sample python script in ‘SampleScripts’ (which basically invokes<br>
> CxxFullExample with the python script as an input argument, I get<br>> errors stating that it cannot load some vtk modules, which upon<br>> looking turn out not to be built at all<br><br><snip><br><br>> I would like to know what I am missing in these builds. It appears<br>
> that some of the vtk modules are not being built:<br>><br>> Error: Could not import vtkCommonComputationalGeometryPython<br>><br>> Error: Could not import vtkRenderingCorePython<br>><br>> Error: Cannot import vtkPVServerManagerDefaultPython<br>
><br>> Error: Cannot import vtkPVServerManagerRenderingPython<br>><br>> Error: Cannot import vtkPVAnimationPython<br><br>Catalyst builds do not build all ParaView modules, so some missing is expected.<br><br>> What is the correct way to get a working run for the examples<br>
> supplied. Also, how do we connect to catalyst after this? My<br>> understanding is that we just load up paraview (4.1) and then the<br>> simulation would connect to catalyst after we hit ‘Connect to<br>> Catalyst’ and load up the ‘Coprocessing’ plugin. Does paraview have to be built from source?<br>
<br>The way I've done it is that the simulation loads up Catalyst (using the vtkCPProcessor class). ParaView can create Python scripts for use with vtkCPPythonScriptPipeline, but if there is a way to use ParaView-the-application with in-situ runs, I don't know it. Andy?<br>
<br>> More specifically, is there a particular download version that might<br>> work, and what flags do we turn on in CMakeLists.txt? Is there any<br>> other set of examples (although I think the git examples demonstrate<br>
> the workflow quite properly) that we could use to try catalyst?<br><br>From a full build, PARAVIEW_ENABLE_CATALYST=ON should be all that is necessary. From a Catalyst build, the same should be sufficient, but for any VTK or ParaView classes which you require, you will need to create an edition to bring them in.<br>
<br>--Ben<u></u><u></u></p></div></div><p class="MsoNormal">-----------------------------------------------------------------------------------<u></u><u></u></p><div><p class="MsoNormal">This email message is for the sole use of the intended recipient(s) and may contain<br>
confidential information. Any unauthorized review, use, disclosure or distribution<br>is prohibited. If you are not the intended recipient, please contact the sender by<br>reply email and destroy all copies of the original message.<u></u><u></u></p>
</div><p class="MsoNormal">-----------------------------------------------------------------------------------<u></u><u></u></p><div><div><p class="MsoNormal">_______________________________________________<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><u></u><u></u></p></div></div></div><p class="MsoNormal">
<u></u> <u></u></p></div></div></div></div></div></blockquote></div><br></div>