Skip to content

Commit 303424d

Browse files
committed
remove unused variables
1 parent be73f1f commit 303424d

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

SU2_CFD/include/solvers/CSolver.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4337,7 +4337,6 @@ inline void Custom_Source_Residual(CGeometry *geometry, CSolver **solver_contain
43374337
CNumerics **numerics_container, CConfig *config, unsigned short iMesh) {
43384338

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

43434342
SU2_OMP_FOR_STAT(roundUpDiv(nPointDomain,2*omp_get_max_threads()))

TestCases/py_wrapper/custom_source_buoyancy/run.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import sys
2828
import pysu2
29-
import numpy as np
3029

3130
# with mpi:
3231
from mpi4py import MPI
@@ -59,15 +58,7 @@ def main():
5958
# all the indices and the map to the names of the primitives
6059
primindex = driver.GetPrimitiveIndices()
6160

62-
63-
varindex = primindex.copy()
64-
#for prim in varindex.copy():
65-
# if varindex[prim] >=nVars:
66-
# del varindex[prim]
67-
#varindex = dict(sorted(varindex.items(), key=lambda item: item[1]))
68-
6961
iDENSITY = primindex.get("DENSITY")
70-
#index_Vel = varindex.get("VELOCITY_X")
7162

7263
Body_Force_Vector = [0.0, -9.81, 0.0]
7364
DensityInc_0 = driver.GetDensity_FreeStreamND()
@@ -96,14 +87,8 @@ def main():
9687
driver.Update()
9788

9889
# Monitor the solver and output solution to file if required.
99-
#stopcalc = driver.Monitor(inner_iter)
10090
driver.Output(inner_iter)
10191

102-
#if (stopcalc):
103-
# if (rank==0):
104-
# "Max iterations or convergence criteria reached, stopping."
105-
# break;
106-
10792
# Finalize the solver and exit cleanly.
10893
driver.Finalize()
10994

TestCases/py_wrapper/turbulent_premixed_psi/run.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def initC(coord):
7676
def SetInitialSpecies(SU2Driver):
7777
allCoords = SU2Driver.Coordinates()
7878
iSPECIESSOLVER = SU2Driver.GetSolverIndices()['SPECIES']
79-
nVarsSpecies = SU2Driver.GetNumberSolverVars(iSPECIESSOLVER)
8079
for iPoint in range(SU2Driver.GetNumberNodes() - SU2Driver.GetNumberHaloNodes()):
8180
coord = allCoords.Get(iPoint)
8281
C = initC(coord)
@@ -118,7 +117,7 @@ def zimont(SU2Driver, iPoint):
118117
# laminar burning velocity of methane-air at phi=0.5, P=5
119118
Slu = 0.232
120119

121-
rho = SU2Driver.Primitives()(iPoint,iDENSITY)
120+
rho = SU2Driver.Primitives()(iPoint,iDENSITY)
122121
mu = SU2Driver.Primitives()(iPoint,iMU)
123122
nu=mu/rho
124123
# Turbulent Flamespeed Closure with Dinkelacker correction

0 commit comments

Comments
 (0)