[Paraview] Attempting to run Catalyst CFullExample

Pettey . Lucas LPettey at drc.com
Mon May 27 12:41:12 EDT 2013


Hi Bill,

>I did provide the script as an argument (following the instructions
>at the top of the python script).

I just wanted to explain why the program runs for a moment and then returns the prompt if you did not provide the script as an argument like you described in your first email. Providing the script as an argument is the correct way to execute the program. Since you didn't get any errors running the program without the script, the C portion of the program is OK.

>I'm not quite sure what you mean by "ParaView versions of the python
>script".

What I mean is that the version of ParaView which generated the script must be the same as the version of ParaView that you are running and using in your compiler. I think Andy was using the latest git version of ParaView in generating his scripts. So, if his examples are dated May 13, a version of ParaView around that date would be better to use. Yours is a clone in April and a lot of work was being done around then for Catalyst. I have been working on Fortran versions and I know I had to download and rebuild ParaView quite frequently.

I do know the latest git clone does not work with those scripts because the repository has been updated to 4.0, as that is what I have and I tried it.

I would first try to export a script from your version of ParaView. Make sure the CoProcessing plugin is loaded and then you should be able to export the state. You will need to modify the code to write the data to an output file and then open that in ParaView and create a pipeline that you want the CoProcessor to generate. You can then export the state through the plugin. This will generate a python script that you can use in place of the sample provided.

If that doesn't work, then you may might to rebuild to the latest ParaView and try exporting a script from that version. It is critical that the ParaView version used to generate the script is the same as the ParaView version used to compile the program. 

Andy will probably have some good suggestions as he is the primary Catalyst developer. He may even update those examples to ParaView 4.0 soon. 

Also, these are all parallel examples so make sure you are using the correct mpiexec syntax. I know that was something I didn't realize the first time I tried these examples.

Hope this clarifies some thing,

Lucas

________________________________________
From: William Sherman [shermanw at indiana.edu]
Sent: Monday, May 27, 2013 12:34 AM
To: Pettey . Lucas
Cc: ParaView list; William Sherman
Subject: Re: [Paraview] Attempting to run Catalyst CFullExample

Hello again,

> The Catalyst C and C++ examples all require the python script
> as an argument at run time. The Fortran example requires that
> the script be in the same directory. So when you aren't giving
> the script as an argument, the code is running but doesn't have
> any information about what to co-process, and it exits doing nothing.

I did provide the script as an argument (following the instructions
at the top of the python script).

> As for the seg fault, my guess is that the ParaView versions of
> the python script and the one against which you are compiling
> are different. I know they are different on mine and while I don't
> get a seg fault, I get some errors about the VTK class structures.

I'm not quite sure what you mean by "ParaView versions of the python
script".  I do know that when I compiled the simulation with the
Catalyst code, I am pointing to the same version of ParaView that
I'm running.  I don't know how that correlates to python versions.

> I would recommend also checking out the latest versions of the examples.
> Andy has done a lot of work on them recently, so if they are even a few
> weeks old, they might not work as expected. Also, you could just export
> a new script with the PV version built on your system.

Well, thought I was downloading his latest examples by grabbing
them directly from his github page.  Is there somewhere else to
look for them?  Most of the files are dated May 13, 2013.

> I hope this points you in the right direction.

Not yet, but if you could explain what you mean by the ParaView
python version, that might shed some light.  I know I'm using the
same version of ParaView.

> Lucas Pettey

        Thanks for the suggestions,
        Bill

>
> ________________________________________
> From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] on behalf of Bill Sherman [shermanw at indiana.edu]
> Sent: Friday, May 24, 2013 6:56 PM
> To: ParaView list
> Cc: Bill Sherman
> Subject: [Paraview] Attempting to run Catalyst CFullExample
>
> Hello,
>
> I'm in the process of attempting to learn how to use the Catalyst
> feature of ParaView, and I have a problem.
>
> I found the sample code on github:
>          - https://github.com/acbauer/CatalystExampleCode
>
> and I began by compiling the "CFullExample" application.
>
> There is some weirdness when trying to compile the application
> as a non-Catalyst simulation, but since I'm trying to learn
> Catalyst, that's just an aside to the code maintainers.
>
> So I have the application (FEDriver) compiled, and there is
> a sample python script.  I ran ParaView (same version as I
> used when compiling FEDriver -- a git clone from April),
> and I start the Catalyst connection:
>          ->  Tools ->  Connect to Catalyst
>
> (which I had to find by poking around, the SC'12 Catalyst
> tutorial doesn't seem to mention this -- or not that I noticed.
> An aside to the code documenters.)
>
> So I followed the instructions in the python script, and
> with ParaView accepting Catalyst connections on port 22222,
> this is what happens:
>          % ./FEDriver SampleScripts/feslicescript.py
>          Segmentation fault (core dumped)
>
> Actually, that happens regardless of whether ParaView is running
> or not, but it only happens when I give the python script as an
> argument -- w/o the script, it runs for a moment and then returns
> to the prompt.
>
> So what am I missing?
>
>          Thanks,
>          Bill
>
> --
> Bill Sherman
> Sr. Technology Advisor
> Advanced Visualization Lab
> Pervasive Technology Inst
> Indiana University
> shermanw at indiana.edu
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
> ________________________________
>
> This electronic message transmission and any attachments that accompany it contain information from DRC® (Dynamics Research Corporation) or its subsidiaries, or the intended recipient, which is privileged, proprietary, business confidential, or otherwise protected from disclosure and is the exclusive property of DRC and/or the intended recipient. The information in this email is solely intended for the use of the individual or entity that is the intended recipient. If you are not the intended recipient, any use, dissemination, distribution, retention, or copying of this communication, attachments, or substance is prohibited. If you have received this electronic transmission in error, please immediately reply to the author via email that you received the message by mistake and also promptly and permanently delete this message and all copies of this email and any attachments. We thank you for your assistance and apologize for any inconvenience.



More information about the ParaView mailing list