[Mitgcm-support] Re: barrier

mitgcm-support at dev.mitgcm.org mitgcm-support at dev.mitgcm.org
Wed Jul 9 15:13:57 EDT 2003


I think this should work:


   subroutine FLOATSTUFF

C  Everyone waits until everyone is ready
   _BARRIER

C  Master thread does his stuff
   _MASTER( myThid )
   do I/O
   _END_MASTER( myThid )

C  Meanwhile everyone else is waiting here
C  until master thread finishes.
   _BARRIER

   return
   end


The important but is the _MASTER() is inside the routine
and between the barriers so that everyone calls the
barriers.

Hope that helps.

Do you want a title for my talk?

What day am I talking?

Alistair.




More information about the MITgcm-support mailing list