From e1bc876c263fd40c6a2148d4af131f763f0fc180 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Sat, 6 May 2023 08:36:48 -0400 Subject: [PATCH] shifted sync to end of loop --- src/swiftest/swiftest_io.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swiftest/swiftest_io.f90 b/src/swiftest/swiftest_io.f90 index 69453e214..ba0559721 100644 --- a/src/swiftest/swiftest_io.f90 +++ b/src/swiftest/swiftest_io.f90 @@ -439,10 +439,10 @@ module subroutine swiftest_io_dump_storage(self, param) end if #ifdef COARRAY if (param%lcoarray .and. (this_image() < num_images())) sync images(this_image() + 1) + sync all #endif end do #ifdef COARRAY - sync all if (this_image() == 1) then #endif call nc%close()