MPUTIL_MASTER_BEGIN

Begin a block of code to be executed by only the master process

Notes

This macro defines a block of code to be executed by only a single process, even in the parallel case. For example, it can be used to output a progress indicator, as in:
 MPUTIL_BEGIN
 ...
 MPUTIL_MASTER_BEGIN
 printf("Running test with %d processes\n", MPUTIL_CURSIZE)
 MPUTIL_MASTER_END
 ...
 MPUTIL_END