<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Burlen, Michael<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Yes what you say is quite correct. All I meant was that even running the use-multicore option doesn&#8217;t cause mpi init in the client,
 so any plugin code running on the client will be in trouble. The readers should be created on the servers, but the client still creates a bunch of stuff which might cause trouble if MPI code is in there.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Incidentally, this is my check code in my plugin. this is the bit which checks the controller and sets it approriately.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">JB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:#608B4E;background:black;mso-highlight:black">//----------------------------------------------------------------------------</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">void</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkDsmManager</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">::</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">CheckMPIController</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">()</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">{</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">if</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">this</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">-&gt;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">Controller</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">-&gt;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">IsA</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:#D69D85;background:black;mso-highlight:black">&quot;vtkDummyController&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">))</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">{</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkDebugMacro</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:#D69D85;background:black;mso-highlight:black">&quot;Running
 vtkDummyController : replacing it&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">int</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">flag</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">=</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B5CEA8;background:black;mso-highlight:black">0</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_Initialized</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(&amp;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">flag</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">if</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">flag</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">==</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B5CEA8;background:black;mso-highlight:black">0</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">)</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">{</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkDebugMacro</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:#D69D85;background:black;mso-highlight:black">&quot;Running
 without MPI, attempting to initialize &quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608B4E;background:black;mso-highlight:black">//int argc = 1;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608B4E;background:black;mso-highlight:black">//const char *argv = &quot;D:\\cmakebuild\\pv-shared\\bin\\RelWithDebInfo\\paraview.exe&quot;;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608B4E;background:black;mso-highlight:black">//char **_argv = (char**) &amp;argv;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">int</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">provided</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">rank</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">size</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_Init_thread</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">NULL</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">NULL</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_THREAD_MULTIPLE</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&amp;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">provided</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_Comm_rank</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_COMM_WORLD</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&amp;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">rank</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_Comm_size</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_COMM_WORLD</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&amp;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">size</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608B4E;background:black;mso-highlight:black">//</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">if</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">rank</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">==</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B5CEA8;background:black;mso-highlight:black">0</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">)</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">{</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">if</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">provided</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">!=</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">MPI_THREAD_MULTIPLE</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">)</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">{</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">std</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">::</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">cout</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&lt;&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#D69D85;background:black;mso-highlight:black">&quot;MPI_THREAD_MULTIPLE not set, you may need to recompile your &quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&lt;&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#D69D85;background:black;mso-highlight:black">&quot;MPI distribution with threads enabled&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&lt;&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">std</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">::</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">endl</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">}</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">else</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">{</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">std</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">::</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">cout</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&lt;&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#D69D85;background:black;mso-highlight:black">&quot;MPI_THREAD_MULTIPLE is OK (DSM override)&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&lt;&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">std</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">::</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">endl</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">}</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">}</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">}</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#608B4E;background:black;mso-highlight:black">//</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkDebugMacro</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:#D69D85;background:black;mso-highlight:black">&quot;Setting
 Global MPI controller&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkMPIController</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&gt;</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">controller</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">=</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkMPIController</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">&gt;::</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">New</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">();</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">if</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">flag</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">==</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B5CEA8;background:black;mso-highlight:black">0</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">)</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">controller</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">-&gt;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">Initialize</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">NULL</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">NULL</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">,</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B5CEA8;background:black;mso-highlight:black">1</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#569CD6;background:black;mso-highlight:black">this</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">-&gt;</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">SetController</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">controller</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">vtkMPIController</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">::</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">SetGlobalController</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:white;background:black;mso-highlight:black">controller</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">);</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black">&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">}</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:#B4B4B4;background:black;mso-highlight:black">}</span><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:gainsboro;background:black;mso-highlight:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext"> Burlen Loring [mailto:burlen.loring@gmail.com]
<br>
<b>Sent:</b> 02 June 2013 23:48<br>
<b>To:</b> Biddiscombe, John A.<br>
<b>Cc:</b> Michael Schlottke; ParaView Developers<br>
<b>Subject:</b> Re: [Paraview-developers] ParaView plugins with MPI only on client<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 6/2/2013 1:15 PM, Biddiscombe, John A. wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">The reason that the multi-core option doesn&#8217;t work is because all it does
 is internally spawn N pvservers and connect to them silently - the client is still a serial process without mpi enabled or initted (is that a word?).</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal">John, I think you're wrong about that. here's why: when paraview is running in client server mode, via its internal multicore startup or otherwise, the reader is constructed on the pvserver not on the client. and in the these cases pvserver
 has mpi initted... this is not to say that you wont crash the client if you're not careful about making mpi calls in client only mode when mpi is not initted. so you'd need to avoid mpi calls when mpi is not initted if you want your reader to place nice with
 standard pv ... I guess in your case you need the threaded mpi init too... don't forget to load your plugin...<o:p></o:p></p>
</div>
</body>
</html>