Skip to content

Commit 06de8f8

Browse files
authored
Merge pull request #2287 from willend/main
Fix for rare crash of ILL_IN4 / MPI
2 parents 625fb6a + 13205de commit 06de8f8

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)