PythonCalculator crashes when running on multiple core with mpirun
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
PythonCalculor causes a crashes when
mpirun -np 2 pvbatch --use-offscreen-rendering pythoncalcmpibug.py is issued.
without mpirun and with mpirun with only 1 core the scripts works.
------------------- start pythoncalcmpibug.py
from paraview.simple import *
view=CreateRenderView() view.ViewSize = [400, 400] view.ResetCamera() view.Background=[0.7,0.7,0.7] view.CameraViewUp = [0,1,0]
Sphere(PhiResolution = 1024, ThetaResolution = 1024); Elevation(LowPoint=[-0.5, -0.5, -0.5],HighPoint=[0.5, 0.5, 0.5]) PythonCalculator(Expression='Elevation*Elevation') rep = Show()
lut = MakeBlueToRedLT(0,1) lut.NumberOfTableValues=100 rep.LookupTable=lut rep.ColorAttributeType='POINT_DATA' rep.ColorArrayName='Elevation'
bar=CreateScalarBar(LookupTable=lut,Title='Elevation') bar.TitleColor=[0,0,0] bar.LabelColor=[0,0,0] bar.NumberOfLabels=3
view.Representations.append(bar)
view.StillRender() WriteImage("elevationsphere.png",view=view,Writer="vtkPNGWriter")