<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I try to understand if (and how) I can use Catalyst for my need (in-situ visualisation). I started with :
<a href="http://paraview.org/Wiki/ParaView/Catalyst/Overview" target="_blank">http://paraview.org/Wiki/ParaView/Catalyst/Overview</a><br>
<br>
To code the adaptor, you need to handle VTK objects. When using VTK, I generally prefer to use smart pointers (avoid looking for leaks).<br>
Here is my code (this is the only call / use of VTK object in the all code)<br>
paraviewAdaptor::paraviewAdaptor ()<br>
{<br>
&nbsp; _spProcessor = vtkSmartPointer&lt;vtkCPProcessor&gt;::New ();<br>
//&nbsp; _spProcessor -&gt; Initialize (); // Crash if uncommented ?!<br>
}<br>
Compilation is OK, but at run time I get a crash with this error message :<br>
*** The MPI_Comm_free() function was called after MPI_FINALIZE was invoked.<br>
*** This is disallowed by the MPI standard.<br>
<br>
So I tried to use pointers instead of smartpointers :<br>
paraviewAdaptor::paraviewAdaptor ()<br>
{<br>
&nbsp; _pProcessor = vtkCPProcessor::New ();<br>
&nbsp; _pProcessor -&gt; Initialize (); // Don't crash ?!<br>
}<br>
And I don't get any crash anymore ?!....<br>
<br>
Why is that ? How can I use vtkSmartPointers ?<br>
<br>
Note : I use ParaView-v4.0.1-source.tgz and I run on Ubuntu 12.04<br>
<br>
Thanks,<br>
<br>
FH<br>
</div>
</body>
</html>