Skip to content

Commit f292b6a

Browse files
committed
Fix scalar diffusion rhs.
1 parent e1e0034 commit f292b6a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Source/Diffusion/ERF_DiffusionSrcForMom_EB.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ DiffusionSrcForMom_EB (const MFIter& mfi,
318318

319319
rho_w_rhs(i,j,k) -= mu_eff * barea * dwdn / (vol * w_volfrac(i,j,k));
320320

321-
} else if (l_surface_layer) {
322-
// SK TODO: implement surface layer BC contribution to diffusion
323321
}
324322
}
325323
}

Source/Diffusion/ERF_DiffusionSrcForState_EB.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,8 @@ DiffusionSrcForState_EB (const Box& bx, const Box& domain,
243243
ParallelFor(bx,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
244244
{
245245
if (cfg_arr(i,j,k).isSingleValued()) {
246-
247-
cell_rhs(i,j,k,qty_index) += barea_arr(i,j,k) / hfx_EB(i,j,k) / (vol * detJ(i,j,k));
248-
246+
247+
cell_rhs(i,j,k,qty_index) += barea_arr(i,j,k) * hfx_EB(i,j,k) / (vol * detJ(i,j,k));
249248
}
250249
});
251250
}

0 commit comments

Comments
 (0)