Skip to content

Commit d91bb62

Browse files
committed
remove unused variable
1 parent 1af69b8 commit d91bb62

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

SU2_CFD/include/solvers/CSolver.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4338,10 +4338,11 @@ inline void Custom_Source_Residual(CGeometry *geometry, CSolver **solver_contain
43384338

43394339
/*--- Pick one numerics object per thread. ---*/
43404340
CNumerics* numerics = numerics_container[SOURCE_SECOND_TERM + omp_get_thread_num()*MAX_TERMS];
4341-
43424341
AD::StartNoSharedReading();
43434342

4344-
SU2_OMP_FOR_STAT(omp_chunk_size)
4343+
//SU2_OMP_FOR_STAT(omp_chunk_size)
4344+
SU2_OMP_FOR_STAT(roundUpDiv(nPointDomain,2*omp_get_max_threads()))
4345+
43454346
for (auto iPoint = 0ul; iPoint < nPointDomain; iPoint++) {
43464347

43474348
/*--- Load the volume of the dual mesh cell ---*/

SU2_CFD/src/solvers/CSpeciesFlameletSolver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,6 @@ void CSpeciesFlameletSolver::SetPreconditioner(CGeometry* geometry, CSolver** so
378378
void CSpeciesFlameletSolver::Source_Residual(CGeometry* geometry, CSolver** solver_container,
379379
CNumerics** numerics_container, CConfig* config, unsigned short iMesh) {
380380

381-
CNumerics* numerics = numerics_container[SOURCE_FIRST_TERM + omp_get_thread_num()*MAX_TERMS];
382-
383381
SU2_OMP_FOR_STAT(omp_chunk_size)
384382
for (auto i_point = 0u; i_point < nPointDomain; i_point++) {
385383
/*--- Add source terms from the lookup table directly to the residual. ---*/

0 commit comments

Comments
 (0)