LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Nelson Brito (ntbrito_at_[hidden])
Date: 2003-04-22 07:25:35


On Mon, 21 Apr 2003, choy hau yan wrote:

> I am using 4 processor to run it, how to write an
> answer in slave (write(7,*)). Here is the simple

looking at your code i can see that only Iam=0
is writing in the unit 7!!

try something like:

         if (Iam.ne.0) then

c sorry but i don't remember fortran that well, i think there's something
c like this to put the cursor at the end of the file isn't it?

         forward 7

         write (7,*) "ola this is me", Iam (ola is the portuguese word for hello)

         endif

regards, nb

Nelson de Brito
Dept. de Quimica |
Fac. de Ciencias do Porto | tel. +351226082841
R. do Campo Alegre | fax. +351226082959
4169-007 Porto, Portugal |