Create a barrier before the iterations start

This commit is contained in:
Gallo Alejandro 2022-10-07 22:51:43 +02:00
parent 3ddd507c17
commit 3addd86826
2 changed files with 7 additions and 6 deletions

View File

@ -454,6 +454,7 @@ Atrip::Output Atrip::run(Atrip::Input<F> const& in) {
// START MAIN LOOP ======================================================{{{1
MPI_Barrier(universe);
double energy(0.);
size_t first_iteration = 0;
Checkpoint c;

View File

@ -250,12 +250,12 @@ namespace atrip {
#ifdef NAIVE_SLOW
WITH_CHRONO("db:comm:naive:tuples",
const auto tuples = get_nth_naive_tuples(nv,
np,
iteration);
const auto prev_tuples = get_nth_naive_tuples(nv,
np,
(int64_t)iteration - 1);
const auto tuples = get_nth_naive_tuples(nv,
np,
iteration);
const auto prev_tuples = get_nth_naive_tuples(nv,
np,
(int64_t)iteration - 1);
)
#else
WITH_CHRONO("db:comm:naive:tuples",