Skip to content

Commit 13205de

Browse files
committed
Fix for rare crash of ILL_IN4 / MPI
(see e.g. https://new-nightly.mcstas.org/2026-01-06_output.html)
1 parent 47e27e2 commit 13205de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mcstas-comps/examples/ILL/ILL_IN4/ILL_IN4.instr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@ INITIALIZE %{
329329

330330
#pragma acc update device( environment_thickness )
331331

332+
#ifdef USE_MPI
333+
/* In case of MPI mode, add an MPI_Barrier to ensure no node runs on an uncompleted/non-existentt Dirac2D.sqw */
334+
MPI_Barrier(MPI_COMM_WORLD);
335+
#endif
332336
%}
333337

334338

0 commit comments

Comments
 (0)