Skip to content

Commit ec0d3a9

Browse files
committed
Major fix in ref pressure computation (bug introduced in ad32691, 2023-09-13)
1 parent d87ab1a commit ec0d3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base/cs_pressure_correction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ _pressure_correction_fv(int iterns,
978978
(1, phydr0, [=] CS_F_HOST_DEVICE(cs_lnum_t i,
979979
CS_DISPATCH_REDUCER_TYPE(double) &sum) {
980980

981-
cs_lnum_t f_id_0 = isostd[n_b_faces] - 1;
981+
cs_lnum_t f_id_0 = isostd[n_b_faces];
982982
if (f_id_0 > -1) {
983983
cs_lnum_t c_id_0 = b_face_cells[f_id_0];
984984
cs_real_t d[3] = {b_face_cog[f_id_0][0] - cell_cen[c_id_0][0],

0 commit comments

Comments
 (0)