[Paraview] pvbatch MPI error
Anton Shterenlikht
mexas at bristol.ac.uk
Mon Mar 18 19:28:05 EDT 2013
This script:
from paraview.simple import *
#Connect()
reader=ImageReader(FilePrefix="z.raw")
reader.DataByteOrder=1
reader.DataExtent=[1,40,1,40,1,40]
reader.DataScalarType=6
view = GetActiveView()
if not view:
view = CreateRenderView()
view.ViewSize=[600,600]
Show()
dp = GetDisplayProperties(reader)
dp.LookupTable = MakeBlueToRedLT(1,64)
dp.ColorAttributeType = 'POINT_DATA'
dp.ColorArrayName = 'ImageFile'
dp.Representation = "Surface"
camera = GetActiveCamera()
camera.SetViewUp(-1,0,0)
camera.Azimuth(30)
camera.Elevation(30)
#camera.SetPosition(0,0,100)
#camera.Roll(-90)
Render()
WriteImage("z.png")
works fine on my FreeBSD desktop with pv 3.10
with both pvpython and pvbatch, but fails
on another linux box with pvbatch with:
Generic Warning: In /home/kitware/Dashboards/MyTests/ParaView-master/VTK/Paralle
l/vtkMPICommunicator.cxx, line 72
MPI had an error
------------------------------------------------
Invalid argument, error stack:
MPI_Type_create_subarray(334): MPI_Type_create_subarray(ndims=3, array_of_sizes=
0x7fff87e5f410, array_of_subsizes=0x7fff87e5f400, array_of_starts=0x7fff87e5f3f0
, order=57, MPI_BYTE, newtype=0x7fff87e5f428) failed
MPI_Type_create_subarray(124): Argument array_of_starts has value 4 but must be
within [0,0]
------------------------------------------------
application called MPI_Abort(MPI_COMM_WORLD, 403294732) - process 0
-------------------------------------------------------------------------------
Please advise
Thanks
Anton
More information about the ParaView
mailing list