Skip to content

Commit b1379ba

Browse files
ZedThreegithub-actions[bot]
authored andcommitted
Apply clang-format changes
1 parent 8b90de3 commit b1379ba

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

include/bout/difops.hxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ Field3D Div_par_K_Grad_par(const Field3D& kY, const Field3D& f,
199199
Field3D Div_par_K_Grad_par_mod(const Field3D& k, const Field3D& f, Field3D& flow_ylow,
200200
bool bndry_flux = true);
201201

202-
203202
/*!
204203
* Perpendicular Laplacian operator
205204
*

src/mesh/difops.cxx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ Field3D Div_par_K_Grad_par(const Field3D& kY, const Field3D& f, CELL_LOC outloc)
367367
+ Div_par(kY, outloc) * Grad_par(f, outloc);
368368
}
369369

370-
Field3D Div_par_K_Grad_par_mod(const Field3D& Kin, const Field3D& fin,
371-
Field3D& flow_ylow, bool bndry_flux) {
370+
Field3D Div_par_K_Grad_par_mod(const Field3D& Kin, const Field3D& fin, Field3D& flow_ylow,
371+
bool bndry_flux) {
372372
TRACE("FV::Div_par_K_Grad_par_mod");
373373

374374
ASSERT2(Kin.getLocation() == fin.getLocation());
@@ -396,18 +396,22 @@ Field3D Div_par_K_Grad_par_mod(const Field3D& Kin, const Field3D& fin,
396396
const auto iym = i.ym();
397397

398398
// Upper cell edge
399-
const BoutReal c_up = 0.5 * (Kin[i] + K_up[iyp]); // K at the upper boundary
400-
const BoutReal J_up = 0.5 * (coord->J[i] + coord->J.yup()[iyp]); // Jacobian at boundary
399+
const BoutReal c_up = 0.5 * (Kin[i] + K_up[iyp]); // K at the upper boundary
400+
const BoutReal J_up =
401+
0.5 * (coord->J[i] + coord->J.yup()[iyp]); // Jacobian at boundary
401402
const BoutReal g_22_up = 0.5 * (coord->g_22[i] + coord->g_22.yup()[iyp]);
402-
const BoutReal gradient_up = 2. * (f_up[iyp] - fin[i]) / (coord->dy[i] + coord->dy.yup()[iyp]);
403+
const BoutReal gradient_up =
404+
2. * (f_up[iyp] - fin[i]) / (coord->dy[i] + coord->dy.yup()[iyp]);
403405

404406
const BoutReal flux_up = c_up * J_up * gradient_up / g_22_up;
405407

406408
// Lower cell edge
407-
const BoutReal c_down = 0.5 * (Kin[i] + K_down[iym]); // K at the lower boundary
408-
const BoutReal J_down = 0.5 * (coord->J[i] + coord->J.ydown()[iym]); // Jacobian at boundary
409+
const BoutReal c_down = 0.5 * (Kin[i] + K_down[iym]); // K at the lower boundary
410+
const BoutReal J_down =
411+
0.5 * (coord->J[i] + coord->J.ydown()[iym]); // Jacobian at boundary
409412
const BoutReal g_22_down = 0.5 * (coord->g_22[i] + coord->g_22.ydown()[iym]);
410-
const BoutReal gradient_down = 2. * (fin[i] - f_down[iym]) / (coord->dy[i] + coord->dy.ydown()[iym]);
413+
const BoutReal gradient_down =
414+
2. * (fin[i] - f_down[iym]) / (coord->dy[i] + coord->dy.ydown()[iym]);
411415

412416
const BoutReal flux_down = c_down * J_down * gradient_down / g_22_down;
413417

@@ -468,7 +472,6 @@ Field3D Div_par_K_Grad_par_mod(const Field3D& Kin, const Field3D& fin,
468472
return result;
469473
}
470474

471-
472475
/*******************************************************************************
473476
* Delp2
474477
* perpendicular Laplacian operator

tests/MMS/spatial/finite-volume/fv_mms.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ int main(int argc, char** argv) {
7474
fv_op_test("FV_Div_par_fvv", dump, input, FV::Div_par_fvv<FV::MinMod>(input, v, v),
7575
"_MinMod");
7676

77-
fv_op_test("FV_Div_par", dump, input, FV::Div_par<FV::Superbee>(input, v, v), "_Superbee");
77+
fv_op_test("FV_Div_par", dump, input, FV::Div_par<FV::Superbee>(input, v, v),
78+
"_Superbee");
7879
fv_op_test("FV_Div_par_mod", dump, input,
7980
FV::Div_par_mod<FV::Superbee>(input, v, v, flow_ylow), "_Superbee");
8081
fv_op_test("FV_Div_par_fvv", dump, input, FV::Div_par_fvv<FV::Superbee>(input, v, v),

0 commit comments

Comments
 (0)