[Paraview] paraview.simple.Box() and openmpi

Mathieu Westphal mathieu.westphal at kitware.com
Thu Apr 26 08:02:32 EDT 2018


Hi Tiago,

Only the outline of the box seems to be incorrect, not the actual geometry.
This is a small graphical artefact bug, but nothing they would prevent you
to do any computation with the boxes.

You can switch to surface representation to see that the boxes are
correctly placed.
SetRepresentationType('Surface')

Feel free to open a bug for the outline bug on
https://gitlab.kitware.com/paraview/paraview/issues/new

Best regards,


Mathieu Westphal

On Wed, Apr 25, 2018 at 10:10 AM, ufdup <ufdup89 at gmail.com> wrote:

> Hi Mathieu,
>
> Sorry for the late reply. Just now I had time to put together a short
> example to reproduce the problem (see attachment).
>
> I am running ParaView-5.4.1 on  Debian 9. I am using mpiexec and pvbatch
> that come together with ParaView.
> My shell command for running the script is: /opt/ParaView-5.4.1/bin/mpiexec
> -np 4 pvbatch example.py
>
> I attach a simple python script (example.py) for debugging purposes. Here
> I basically create two boxes with same center but one has twice the length
> of the other.
> If you run this code with one processor you should see that the output
> (example.png) displays two concentric boxes. Increasing the processor count
> (anything >1)
> seems to cause the center of one of the boxes to be misplaced.
>
> This problem only appears when the boxCenter is something different than
> [0.,0.,0.]. Modifying line 8 of the attached script and setting boxCenter
> to [0.,0.,0.] results in
> correct behavior.
>
> Kind Regards,
> Tiago
>
>
> On Wed, Apr 18, 2018 at 8:56 AM, Mathieu Westphal <
> mathieu.westphal at kitware.com> wrote:
>
>> Hi Tiago,
>>
>> Could you please precise which version of ParaView you are using, how do
>> you start pvserver/ParaView/pvpython, and which python command you are
>> using exactly.
>>
>> Thanks,
>>
>>
>> Mathieu Westphal
>>
>> On Tue, Apr 17, 2018 at 7:18 PM, ufdup <ufdup89 at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am facing some trouble to draw a Box using 'paraview.simple.Box()'.
>>> When running in parallel this function fails to draw the boxes at the
>>> correct coordinates as specified by boxLength and boxCenter.
>>> In serial mode, however, the box is drawn at the correct location.
>>>
>>> As ad-hoc fix I had to draw the box by using 'paraview.simple.Line()'
>>> multiple times.  This seems to work both in parallel and serial.
>>>
>>> Any hep?
>>>
>>> Kind Regards
>>> Tiago
>>>
>>> _______________________________________________
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180426/6c647e21/attachment.html>


More information about the ParaView mailing list