#include <stdio.h> #include "mpe.h" void MPE_Seq_begin( comm, ng ) MPI_Comm comm; int ng;
|comm||Communicator to sequentialize.
|ng||Number in group. This many processes are allowed to execute
at the same time. Usually one.
MPE_Seq_begin( comm, 1 ); <code to be executed sequentially> MPE_Seq_end( comm, 1 );Often, the sequential code contains output statements (e.g., printf) tobe executed. Note that you may need to flush the I/O buffers beforecalling MPE_Seq_end; also note that some systems do not propagate I/O inanyorder to the controling terminal (in other words, even if you flush theoutput, you may not get the data in the order that you want).