Skip to content

Commit 5f52759

Browse files
committed
revert flow solver
1 parent 947e807 commit 5f52759

2 files changed

Lines changed: 2 additions & 21 deletions

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ class CFVMFlowSolverBase : public CSolver {
211211
* coloring does not allow "enough" parallelism. ---*/
212212

213213
CSysVector<su2double> EdgeFluxes; /*!< \brief Flux across each edge. */
214-
CSysVector<su2double> EdgeFluxes_ij; /*!< \brief Flux across each edge ij (non-conservative). */
215-
CSysVector<su2double> EdgeFluxes_ji; /*!< \brief Flux across each edge ji (non-conservative). */
216214

217215
CNumericsSIMD* edgeNumerics = nullptr; /*!< \brief Object for edge flux computation. */
218216

@@ -294,20 +292,7 @@ class CFVMFlowSolverBase : public CSolver {
294292
if (!ReducerStrategy) AD::EndNoSharedReading();
295293

296294
if (ReducerStrategy) {
297-
if (config->GetKind_Solver() == MAIN_SOLVER::RANS) {
298-
for (unsigned long iPoint = 0; iPoint < nPoint; ++iPoint) {
299-
300-
LinSysRes.SetBlock_Zero(iPoint);
301-
302-
for (auto iEdge : geometry->nodes->GetEdges(iPoint)) {
303-
if (iPoint == geometry->edges->GetNode(iEdge,0))
304-
LinSysRes.AddBlock(iPoint, EdgeFluxes_ij.GetBlock(iEdge));
305-
else
306-
LinSysRes.SubtractBlock(iPoint, EdgeFluxes_ji.GetBlock(iEdge));
307-
}
308-
}
309-
}
310-
else SumEdgeFluxes(geometry);
295+
SumEdgeFluxes(geometry);
311296
if (config->GetKind_TimeIntScheme() == EULER_IMPLICIT) {
312297
Jacobian.SetDiagonalAsColumnSum();
313298
}

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,7 @@ void CFVMFlowSolverBase<V, R>::HybridParallelInitialization(const CConfig& confi
359359
}
360360
}
361361

362-
if (ReducerStrategy) {
363-
EdgeFluxes.Initialize(geometry.GetnEdge(), geometry.GetnEdge(), nVar, nullptr);
364-
EdgeFluxes_ij.Initialize(geometry.GetnEdge(), geometry.GetnEdge(), nVar, nullptr); //initializing only when solver=rans, has no effect
365-
EdgeFluxes_ji.Initialize(geometry.GetnEdge(), geometry.GetnEdge(), nVar, nullptr);
366-
}
362+
if (ReducerStrategy) EdgeFluxes.Initialize(geometry.GetnEdge(), geometry.GetnEdge(), nVar, nullptr);
367363

368364
omp_chunk_size = computeStaticChunkSize(nPoint, omp_get_max_threads(), OMP_MAX_SIZE);
369365
#else

0 commit comments

Comments
 (0)