File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ class CScalarSolver : public CSolver {
7777
7878 /* --- Edge fluxes for reducer strategy (see the notes in CEulerSolver.hpp). ---*/
7979 CSysVector<su2double> EdgeFluxes; /* !< \brief Flux across each edge. */
80- CSysVector<su2double> EdgeFluxes_ij; /* !< \brief Flux across each edge ij (non-conservative). */
81- CSysVector<su2double> EdgeFluxes_ji; /* !< \brief Flux across each edge ji (non-conservative). */
80+ CSysVector<su2double> EdgeFluxes_Diff; /* !< \brief Flux difference across ij and ji for non-conservative discretisation. */
8281
8382 /* !
8483 * \brief The highest level in the variable hierarchy this solver can safely use.
Original file line number Diff line number Diff line change @@ -348,8 +348,12 @@ void CScalarSolver<VariableType>::SumEdgeFluxes(CGeometry* geometry) {
348348 for (auto iEdge : geometry->nodes ->GetEdges (iPoint)) {
349349 if (iPoint == geometry->edges ->GetNode (iEdge, 0 ))
350350 LinSysRes.AddBlock (iPoint, EdgeFluxes.GetBlock (iEdge));
351- else
351+ else {
352352 LinSysRes.SubtractBlock (iPoint, EdgeFluxes.GetBlock (iEdge));
353+ if (EdgeFluxes_Diff.GetLocSize () > 0 ) {
354+ LinSysRes.AddBlock (iPoint, EdgeFluxes_Diff.GetBlock (iEdge));
355+ }
356+ }
353357 }
354358 }
355359 END_SU2_OMP_FOR
You can’t perform that action at this time.
0 commit comments