LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Amey Dharurkar (adharurk_at_[hidden])
Date: 2003-09-26 17:24:29


On Fri, 26 Sep 2003, Wa-Kun Lam wrote:

> hi all,
> After some calculation with mpi, I call the gnuplot(with an interface)
> to plot the result. However, if I run the program over a multinode
> network, it always complain that I haven't set the DISPLAY variable.
> However, if I run the program in a local machine, nothing goes wrong.
> It implies that the setting in a single local machine is all right.
>
> Here is my code
>
> ...
> if (rank==0)
> {
> // plot the resutl
> }
> ...
>
> Notice that I only do the plotting in rank 0.

I am not sure what you mean when you say 'I call gnuplot(with an
interface)'.
With the DISPLAY variable set to localhost:0.0 I am able to call
gnuplot using 'system' function. At the 'gnuplot' prompt I can plot
a graph as well.
Can you explain exactly how you intend to call gnuplot?

Hope this helps

-Amey