<div dir="ltr">Yep, it's working fine... (in fact, it's only giving an annoying warning message regarding unsynbcronized time value but it's a minor issue...)<div><br></div><div><div>Warning: In /home/rnelias/ParaView-v5.4.0-RC3/ParaViewCore/VTKExtensions/Core/vtkPVTrivialProducer.cxx, line 119</div><div>vtkPVTrivialProducer (0x801b910): Requesting time 1.8 but only 1.9 is available</div><div><br></div><div>I misunderstood the befavior of a print statement within WriteData routine. Every rank prints its message in WriteData but SaveData is probably filtering rank 0 to save the data...<div><br></div><div><div>### START MODIFICATION ###</div><div>def WriteData(self, datadescription):</div><div> super(CoProcessor, self).WriteData(datadescription)</div><div> # let's write to CSV ourselves.<br></div><div> afilter = self.Pipeline.integrateVariables1</div><div> <b>print(" Saving cvs file for time step: "+str(datadescription.GetTimeStep()))</b></div><div> fname = "coefs_%d.csv" % datadescription.GetTimeStep()</div><div> SaveData(fname, afilter)</div><div>### END MODIFICATION ###</div></div></div></div><div><br></div><div><br></div><div>BTW, where can I report a bug? In the (very) past, Kitware had a Mantis bug tracking system but I have no idea if it's still being used... </div><div><br></div><div>I've sent a message regarding a bug straight to the mailling list that is probably not the best channel to send it...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 5, 2017 at 11:36 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Renato,<div><br></div><div>Are you running into issues with what the script ? Why you have acess to global controller via vtkMultiProcessController::<wbr>GetController() and you can check the rank id etc, I don't think you'd need to. The CSVWriter will only write on root node after accumulating data from all ranks. Since `<span style="font-size:12.8px">IntegrateVariables` only produces output on rank 0, it should work fine, doesn't it?</span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Utkarsh</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 3, 2017 at 12:25 PM, Renato Elias <span dir="ltr"><<a href="mailto:rnelias@gmail.com" target="_blank">rnelias@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Thanks Utkarsh! <div dir="auto"><br></div><div dir="auto">I did a small test and now it's working fine :) I only noticed that it's called per processor. Is there a way to make only rank 0 store the CVS table? In other words... do we have access to the rank id in the coprocessor Python script?</div><div dir="auto"><br></div><div dir="auto">Regards</div><span class="m_-4287990947709572828HOEnZb"><font color="#888888"><div dir="auto"><br></div><div dir="auto">Renato</div></font></span></div><div class="m_-4287990947709572828HOEnZb"><div class="m_-4287990947709572828h5"><div class="gmail_extra"><br><div class="gmail_quote">Em 2 de jun de 2017 14:19, "Utkarsh Ayachit" <<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>> escreveu:<br type="attribution"><blockquote class="m_-4287990947709572828m_-5645016628470556279quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Attached is a script that demonstrates how to do this. I suspect you're putting your code in `CreatePipeline`. As the name suggests, it's only called when creating pipeline the first time, and not on every iteration. I've modified a ParaView test script. Modifications are in `### START MODIFICATION ###` and `### END MODIFICATION ###` blocks. You can run this as follows:</div><div class="gmail_extra"><br></div><div class="gmail_extra">> bin/pvbatch -sym -dr <ParaViewSource>/CoProcessing<wbr>/PythonCatalyst/Testing/Cxx/wa<wbr>veletdriver.py /tmp/cptest.py 10<font color="#888888"><br></font></div><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Utkarsh</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></font></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>