Skip to content

Commit 1c701f2

Browse files
authored
Merge pull request #501 from pdziekan/init_laplacian_edges_fix
prs solvers laplacian calc (with err_init): move set_edges before G m…
2 parents 179a30b + 8ab7ce0 commit 1c701f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmpdata++/solvers/detail/mpdata_rhs_vip_prs_common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ namespace libmpdataxx
6363
lap_tmp[d](this->ijk) -= tmp_uvw[d](this->ijk);
6464
}
6565
}
66+
this->set_edges(lap_tmp, this->ijk, err_init ? -1 : 0);
6667
if (this->mem->G)
6768
{
6869
for (int d = 0; d < parent_t::n_dims; ++d)
@@ -71,7 +72,6 @@ namespace libmpdataxx
7172
}
7273
}
7374
if (!simple) this->normalize_vip(lap_tmp);
74-
this->set_edges(lap_tmp, this->ijk, err_init ? -1 : 0);
7575
for (int d = 0; d < parent_t::n_dims; ++d)
7676
{
7777
this->xchng_pres(lap_tmp[d], ijk);

0 commit comments

Comments
 (0)