diff --git a/mcstas-comps/examples/ILL/ILL_IN4/ILL_IN4.instr b/mcstas-comps/examples/ILL/ILL_IN4/ILL_IN4.instr index 2bab5ce7bd..7b7e995e6e 100644 --- a/mcstas-comps/examples/ILL/ILL_IN4/ILL_IN4.instr +++ b/mcstas-comps/examples/ILL/ILL_IN4/ILL_IN4.instr @@ -329,6 +329,10 @@ INITIALIZE %{ #pragma acc update device( environment_thickness ) + #ifdef USE_MPI + /* In case of MPI mode, add an MPI_Barrier to ensure no node runs on an uncompleted/non-existentt Dirac2D.sqw */ + MPI_Barrier(MPI_COMM_WORLD); + #endif %}