Renato, Are you running into issues with what the script ? Why you have acess to global controller via vtkMultiProcessController::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 `IntegrateVariables` only produces output on rank 0, it should work fine, doesn't it?
Utkarsh On Sat, Jun 3, 2017 at 12:25 PM, Renato Elias <[email protected]> wrote: > Thanks Utkarsh! > > 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? > > Regards > > Renato > > Em 2 de jun de 2017 14:19, "Utkarsh Ayachit" <[email protected]> > escreveu: > > 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: > > > bin/pvbatch -sym -dr <ParaViewSource>/CoProcessing > /PythonCatalyst/Testing/Cxx/waveletdriver.py /tmp/cptest.py 10 > > Utkarsh > > > >
_______________________________________________ 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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
