This commit is contained in:
Joachim Schoeberl 2012-06-18 18:40:05 +00:00
parent eade1f6b2d
commit 312dcb3e31

View File

@ -28,16 +28,20 @@ namespace netgen
char buf[100];
// MPI_Bcast (&buf, 100, MPI_CHAR, 0, MPI_COMM_WORLD);
VT_OFF();
// VT_OFF();
MPI_Status status;
int flag;
do
{
MPI_Iprobe (0, MPI_TAG_CMD, MPI_COMM_WORLD, &flag, &status);
if (!flag) usleep (1000);
if (!flag)
{
VT_TRACER ("sleep");
usleep (1000);
}
}
while (!flag);
VT_ON();
// VT_ON();
MPI_Recv( &buf, 100, MPI_CHAR, 0, MPI_TAG_CMD, MPI_COMM_WORLD, &status);