diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-10-25 16:14:15 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-10-25 16:18:29 +0200 |
commit | bb964e0e1c59599be04f41ed4fd7a9a0f251a8e0 (patch) | |
tree | bc5eb617321214e0cbf5a8782c4bbca5c65cc664 | |
parent | b2233aab187fae609b1e02f2f7ed8b37819f9762 (diff) |
Carpet: Add a barrier between prolongation and sync controlled by sync_barriers parameter
-rw-r--r-- | Carpet/Carpet/src/Comm.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/Comm.cc b/Carpet/Carpet/src/Comm.cc index b1c5cf2ab..4d23b6754 100644 --- a/Carpet/Carpet/src/Comm.cc +++ b/Carpet/Carpet/src/Comm.cc @@ -163,7 +163,15 @@ namespace Carpet { Carpet::NamedBarrier(cctkGH, 8472211063, "CARPET_MPI_BARRIER_PROLONGATE_SYNC"); #endif - + + if (sync_barriers) + { + static Timers::Timer barrier_timer ("ProlongateSyncBarrier",0,true); + barrier_timer.start(); + CCTK_Barrier(cctkGH); + barrier_timer.stop(); + } + // synchronise ghostzones if (sync_during_time_integration or local_do_prolongate) { static Timers::Timer timer ("Sync"); |