INCLAN: synchronize

From CYANA Wiki
Jump to navigation Jump to search

Synopsis

synchronize

Description

Waits until all processes of a parallel calculation have arrived at this point. A typical usage is to wait for a file that is produced by the master process:

Examples

if (master) then  # execute only by the master process
  ...             # master writes a file to be used by all processes
end if
synchronize       # wait until all processes have arrived here 
...               # use the file made by the master process