Skip to content

Commit

Permalink
xchng_ref after generating d_j
Browse files Browse the repository at this point in the history
  • Loading branch information
pdziekan committed Apr 3, 2023
1 parent 38c72db commit 11579de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmpdata++/solvers/detail/mpdata_rhs_vip_prs_sgs_fra_3d.hpp
Expand Up @@ -171,7 +171,7 @@ namespace libmpdataxx
auto rand = std::bind(dis, gen);
std::generate(this->d_j(this->ijk_ref_with_halo).begin(), this->d_j(this->ijk_ref_with_halo).end(), rand);
this->d_j(this->ijk_ref_with_halo) = formulae::fractal::d_of_CDF_fctr<real_t>{}(this->d_j(this->ijk_ref_with_halo));
this->mem->barrier();
xchng_ref(this->d_j, this->ijk_ref); // xchng to have the same values of d_j in the distmem halo region
}

// calculate refined points using (tri?)linear interpolation
Expand Down Expand Up @@ -212,6 +212,8 @@ namespace libmpdataxx
const int halo_size = 2;
const int e_ref = this->ix_r2r.at(e);

// std::cerr << "reconstructing: e = " << e << " e_ref = " << e_ref << std::endl;

//// TEMPORARY
//this->mem->psi_ref[e_ref] = -1000;
//this->mem->barrier();
Expand Down

0 comments on commit 11579de

Please sign in to comment.