Skip to content

Commit a0f0a07

Browse files
committed
silence misc. warnings
1 parent ffd855c commit a0f0a07

9 files changed

Lines changed: 8 additions & 16 deletions

File tree

Common/src/geometry/CGeometry.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,6 @@ void CGeometry::ComputeAirfoil_Section(su2double *Plane_P0, su2double *Plane_Nor
17951795
vector<unsigned long> IGlobalID_Index0, JGlobalID_Index0, IGlobalID_Index1, JGlobalID_Index1, IGlobalID_Airfoil, JGlobalID_Airfoil;
17961796
vector<unsigned short> Conection_Index0, Conection_Index1;
17971797
vector<unsigned long> Duplicate;
1798-
vector<unsigned long>::iterator it;
17991798
su2double **Coord_Variation = nullptr;
18001799
vector<su2double> XcoordExtra, YcoordExtra, ZcoordExtra, VariableExtra;
18011800
vector<unsigned long> IGlobalIDExtra, JGlobalIDExtra;
@@ -2778,8 +2777,7 @@ void CGeometry::ComputeSurf_Curvature(CConfig *config) {
27782777
unsigned short iMarker, iNeigh_Point, iDim, iNode, iNeighbor_Nodes, Neighbor_Node;
27792778
unsigned long Neighbor_Point, iVertex, iPoint, jPoint, iElem_Bound, iEdge, nLocalVertex, MaxLocalVertex , *Buffer_Send_nVertex, *Buffer_Receive_nVertex, TotalnPointDomain;
27802779
vector<unsigned long> Point_NeighborList, Elem_NeighborList, Point_Triangle, Point_Edge, Point_Critical;
2781-
vector<unsigned long>::iterator it;
2782-
su2double U[3] = {0.0,0.0,0.0}, V[3] = {0.0,0.0,0.0}, W[3] = {0.0,0.0,0.0}, Length_U, Length_V, Length_W, CosValue, Angle_Value, *K, *Angle_Defect, *Area_Vertex, *Angle_Alpha, *Angle_Beta, **NormalMeanK, MeanK, GaussK, MaxPrinK, cot_alpha, cot_beta, delta, X1, X2, X3, Y1, Y2, Y3, radius, *Buffer_Send_Coord, *Buffer_Receive_Coord, *Coord, Dist, MinDist, MaxK, MinK, SigmaK;
2780+
su2double U[3] = {0.0}, V[3] = {0.0}, W[3] = {0.0}, Length_U, Length_V, Length_W, CosValue, Angle_Value, *K, *Angle_Defect, *Area_Vertex, *Angle_Alpha, *Angle_Beta, **NormalMeanK, MeanK, GaussK, MaxPrinK, cot_alpha, cot_beta, delta, X1, X2, X3, Y1, Y2, Y3, radius, *Buffer_Send_Coord, *Buffer_Receive_Coord, *Coord, Dist, MinDist, MaxK, MinK, SigmaK;
27832781
bool *Check_Edge;
27842782

27852783
const bool fea = config->GetStructuralProblem();

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,6 @@ void CPhysicalGeometry::DistributePoints(const CConfig *config, CGeometry *geome
10921092

10931093
unsigned short iDim;
10941094
unsigned long iPoint, iNeighbor, jPoint, iProcessor;
1095-
vector<unsigned long>::iterator it;
10961095

10971096
SU2_MPI::Request *colorSendReq = nullptr, *idSendReq = nullptr, *coordSendReq = nullptr;
10981097
SU2_MPI::Request *colorRecvReq = nullptr, *idRecvReq = nullptr, *coordRecvReq = nullptr;
@@ -2587,7 +2586,6 @@ void CPhysicalGeometry::LoadSurfaceElements(CConfig *config, CGeometry *geometry
25872586
vector<vector<unsigned long> > BoundQuad_List;
25882587

25892588
vector<unsigned long> Marker_Local;
2590-
vector<unsigned long>::iterator it;
25912589

25922590
/*--- Compute how many markers we have local to this rank by looping
25932591
through the global marker numbers of each local surface element and

SU2_CFD/include/solvers/CEulerSolver.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ class CEulerSolver : public CFVMFlowSolverBase<CEulerVariable, COMPRESSIBLE> {
374374
*/
375375
inline virtual void Viscous_Residual(unsigned long iEdge, CGeometry *geometry, CSolver **solver_container,
376376
CNumerics *numerics, CConfig *config) { }
377+
using CSolver::Viscous_Residual; /*--- Silence warning ---*/
377378

378379
/*!
379380
* \brief Recompute the extrapolated quantities, after MUSCL reconstruction,
@@ -459,6 +460,7 @@ class CEulerSolver : public CFVMFlowSolverBase<CEulerVariable, COMPRESSIBLE> {
459460
*/
460461
void SetPreconditioner(const CConfig *config, unsigned long iPoint,
461462
su2double delta, su2double** preconditioner) const;
463+
using CSolver::SetPreconditioner; /*--- Silence warning. ---*/
462464

463465
/*!
464466
* \brief Parallelization of Undivided Laplacian.

SU2_CFD/include/solvers/CTurbSolver.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class CTurbSolver : public CSolver {
9999
CSolver **solver_container,
100100
CNumerics *numerics,
101101
CConfig *config);
102+
using CSolver::Viscous_Residual; /*--- Silence warning ---*/
102103

103104
/*!
104105
* \brief Sum the edge fluxes for each cell to populate the residual vector, only used on coarse grids.

SU2_CFD/src/CMarkerProfileReaderFVM.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ void CMarkerProfileReaderFVM::MergeProfileMarkers() {
180180

181181
char str_buf[MAX_STRING_SIZE];
182182
vector<string> Marker_Tags;
183-
vector<string>::iterator it;
184183

185184
vector<unsigned long> nRowCum_Counter;
186185

SU2_CFD/src/definition_structure.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ void Partition_Analysis(CGeometry *geometry, CConfig *config) {
8383

8484
unsigned long *row_ptr = nullptr, nnz;
8585
unsigned short *nNeigh = nullptr;
86-
vector<unsigned long>::iterator it;
8786
vector<unsigned long> vneighs;
8887

8988
/*--- Don't delete *row_ptr, *col_ind because they are

SU2_CFD/src/solvers/CDiscAdjSolver.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,10 +796,7 @@ void CDiscAdjSolver::SetSurface_Sensitivity(CGeometry *geometry, CConfig *config
796796

797797
/*--- Loop over boundary markers to select those for Euler walls and NS walls ---*/
798798

799-
if(config->GetMarker_All_KindBC(iMarker) == EULER_WALL
800-
|| config->GetMarker_All_KindBC(iMarker) == HEAT_FLUX
801-
|| config->GetMarker_All_KindBC(iMarker) == ISOTHERMAL
802-
|| config->GetMarker_All_KindBC(iMarker) == CHT_WALL_INTERFACE) {
799+
if(config->GetSolid_Wall(iMarker)) {
803800

804801
Sens = 0.0;
805802

SU2_CFD/src/solvers/CFEASolver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,8 @@ void CFEASolver::Preprocessing(CGeometry *geometry, CSolver **solver_container,
769769
unsigned short iMesh, unsigned long Iteration, unsigned short RunTime_EqSystem, bool Output) {
770770

771771
const bool dynamic = config->GetTime_Domain();
772-
const bool first_iter = (config->GetInnerIter() == 0);
773772
const bool disc_adj_fem = (config->GetKind_Solver() == DISC_ADJ_FEM);
774773
const bool body_forces = config->GetDeadLoad();
775-
const bool fsi = config->GetFSI_Simulation();
776774
const bool topology_mode = config->GetTopology_Optimization();
777775

778776
/*

SU2_CFD/src/solvers/CTurbSolver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ void CTurbSolver::Viscous_Residual(unsigned long iEdge, CGeometry *geometry, CSo
276276
nodes->GetF1blending(jPoint));
277277

278278
/*--- Roughness heights. ---*/
279-
if (config->GetKind_Turb_Model() == SA)
280-
numerics->SetRoughness(geometry->nodes->GetRoughnessHeight(iPoint),
281-
geometry->nodes->GetRoughnessHeight(jPoint));
279+
if (config->GetKind_Turb_Model() == SA)
280+
numerics->SetRoughness(geometry->nodes->GetRoughnessHeight(iPoint),
281+
geometry->nodes->GetRoughnessHeight(jPoint));
282282

283283
/*--- Compute residual, and Jacobians ---*/
284284

0 commit comments

Comments
 (0)