[Paraview] pvbatch MPI error

Anton Shterenlikht mexas at bristol.ac.uk
Tue Mar 19 04:17:13 EDT 2013


	From utkarsh.ayachit at kitware.com Tue Mar 19 03:30:31 2013

	What is the version of ParaView on the "other" Linux box?

3.12:

mexas at hector-xe6-8:~> pvpython
Python 2.7.2 (default, Nov  9 2011, 15:37:53)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/etc/pythonstart", line 7, in <module>
    import readline
ImportError: No module named readline
>>> from paraview.simple import *
paraview version 3.12.0, Date: 2011-07-26
>>>


	How are you running the script?

In the serial queue, as:

#PBS -N pvbatch
#PBS -q serial

# Switch to current working directory
export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
cd $PBS_O_WORKDIR

# Run the serial program
pvbatch pv1.py


	Is the mpi used to build and run the executable same?

This I don't know. I'll have to ask the support
people there.

Thanks

Anton


	On Mon, Mar 18, 2013 at 7:28 PM, Anton Shterenlikht <mexas at bristol.ac.uk> wrote:
	> 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
	>
	>
	>
	> _______________________________________________
	> 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
	>
	> Follow this link to subscribe/unsubscribe:
	> http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list