Skip to content

Commit

Permalink
fill refinee distmem only if distmem size > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Dziekan committed Apr 3, 2023
1 parent b8ed801 commit 38c72db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmpdata++/solvers/detail/mpdata_rhs_vip_prs_sgs_fra_3d.hpp
Expand Up @@ -57,6 +57,8 @@ namespace libmpdataxx
// TODO: move to bcond or sth? would be filled only by remote bcond
void fill_refinee_r2r_distmem_halos(const int e, const int halo_size)
{
if(this->mem->distmem.size() == 1) return; // no distmem

const int e_ref = this->ix_r2r.at(e);
// TODO: we only need to xchng along distmem direction (x)
this->xchng(e);
Expand Down

0 comments on commit 38c72db

Please sign in to comment.