Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
ParaView
ParaView
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,666
    • Issues 1,666
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 62
    • Merge Requests 62
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaView
  • ParaViewParaView
  • Issues
  • #12501

Closed
Open
Created Aug 10, 2011 by Kitware Robot@kwrobotOwner

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")

Edited Mar 24, 2021 by Mathieu Westphal
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None