# Contents of /trunk/escript/src/escriptcpp.cpp

Revision 1877 - (show annotations)
Tue Oct 14 02:58:39 2008 UTC (12 years, 11 months ago) by ksteube
File size: 14170 byte(s)
convection.py checkpointing uses mkdir/rmdir, and under MPI there
was a race condition.

mkdir needs to be run on only one CPU and then a barrier to prevent
working processors from using the directory before it exists.

Added methods domain.MPIBarrier and domain.onMasterProcessor() to
implement this technique.

A more general solution might be possible in the future.