[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: graphic dump on cluster



On 1/24/07, js2615@xxxxxxxxxxxx <js2615@xxxxxxxxxxxx> wrote:
Hi Petsc experts,

I have a question about the graphic output using multiple
processors.  Suppose I am using X11 to ssh into the cluster, and
would like to view the graphical output at each iteration using

ierr = VecView(x,PETSC_VIEWER_DRAW_WORLD);CHKERRQ(ierr);

I got the following error message, turns out, when I use multiple
processors (not a problem using one processor though):

Unable to open display on localhost:10.0
.  Make sure your COMPUTE NODES are authorized to connect
    to this X server and either your DISPLAY variable
    is set or you use the -display name option

The error message is exactly right. You either need to set the DISPLAY env var or give the -display option to PETSc. I think giving -Y to ssh forwards your Xconnection automatically (setting DISPLAY).

 Matt