Skip to content

Commit b407a27

Browse files
committed
small cleanup
1 parent cc3dfab commit b407a27

File tree

5 files changed

+3
-35
lines changed

5 files changed

+3
-35
lines changed

Common/include/CConfig.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ class CConfig {
286286
su2double **Giles_FlowDir; /*!< \brief Specified flow direction vector (unit vector) for Giles BC. */
287287
su2double *Inlet_Ptotal; /*!< \brief Specified total pressures for inlet boundaries. */
288288
su2double **Inlet_FlowDir; /*!< \brief Specified flow direction vector (unit vector) for inlet boundaries. */
289-
//su2double *PointSource; /*!< \brief Specified flow direction vector (unit vector) for inlet boundaries. */
290289
su2double *Inlet_Temperature; /*!< \brief Specified temperatures for a supersonic inlet boundaries. */
291290
su2double *Inlet_Pressure; /*!< \brief Specified static pressures for supersonic inlet boundaries. */
292291
su2double **Inlet_Velocity; /*!< \brief Specified flow velocity vectors for supersonic inlet boundaries. */
@@ -9455,18 +9454,6 @@ class CConfig {
94559454
*/
94569455
unsigned long GetnOuter_Iter(void) const { return nOuterIter; }
94579456

9458-
/*!
9459-
* \brief Get the number of inner iterations
9460-
* \return Number of inner iterations on each multizone block
9461-
*/
9462-
void SetnInner_Iter(unsigned long val_iter) { nInnerIter = val_iter; }
9463-
9464-
/*!
9465-
* \brief Get the number of outer iterations
9466-
* \return Number of outer iterations for the multizone problem
9467-
*/
9468-
void SetnOuter_Iter(unsigned long val_iter) { cout << "inner iter=" << val_iter << endl; nOuterIter = val_iter; }
9469-
94709457
/*!
94719458
* \brief Get the number of time iterations
94729459
* \return Number of time steps run

Common/src/CConfig.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,6 @@ void CConfig::SetPointersNull() {
890890
Inlet_FlowDir = nullptr; Inlet_Temperature = nullptr; Inlet_Pressure = nullptr;
891891
Inlet_Velocity = nullptr;
892892
Outlet_Pressure = nullptr; Inlet_SpeciesVal = nullptr; Inlet_TurbVal = nullptr;
893-
//PointSource = nullptr;
894893

895894
/*--- Engine Boundary Condition settings ---*/
896895

@@ -914,7 +913,7 @@ void CConfig::SetPointersNull() {
914913
Inlet_FlowDir = nullptr; Inlet_Temperature = nullptr; Inlet_Pressure = nullptr;
915914
Inlet_Velocity = nullptr; Inflow_Mach = nullptr; Inflow_Pressure = nullptr;
916915
Outlet_Pressure = nullptr; Isothermal_Temperature = nullptr;
917-
//PointSource = nullptr;
916+
918917
ElasticityMod = nullptr; PoissonRatio = nullptr; MaterialDensity = nullptr;
919918

920919
Load_Dir = nullptr; Load_Dir_Value = nullptr; Load_Dir_Multiplier = nullptr;

SU2_CFD/include/drivers/CDriver.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -487,19 +487,6 @@ class CDriver : public CDriverBase {
487487
*/
488488
unsigned long GetNumberOuterIter() const;
489489

490-
491-
/*!
492-
* \brief Set the number of inner iterations.
493-
* \return Number of inner iterations.
494-
*/
495-
void SetNumberInnerIter(unsigned long);
496-
497-
/*!
498-
* \brief Set the number of outer iterations.
499-
* \return Number of outer iterations.
500-
*/
501-
void SetNumberOuterIter(unsigned long);
502-
503490
/*!
504491
* \brief Get the current solution
505492
* \return Current solution

SU2_CFD/src/drivers/CSinglezoneDriver.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,15 @@ void CSinglezoneDriver::Preprocess(unsigned long TimeIter) {
106106

107107
/*--- Set the current time iteration in the config and also in the driver
108108
* because the python interface doesn't offer an explicit way of doing it. ---*/
109-
if (config_container[ZONE_0]->GetTime_Marching() == TIME_MARCHING::STEADY) {
110-
cout << "steady simulation, iteration = " << TimeIter << endl;
111-
config_container[ZONE_0]->SetInnerIter(TimeIter);
112-
}
113109

114110
this->TimeIter = TimeIter;
115111
config_container[ZONE_0]->SetTimeIter(TimeIter);
116112

117113
/*--- Store the current physical time in the config container, as
118114
this can be used for verification / MMS. This should also be more
119115
general once the drivers are more stable. ---*/
120-
if (config_container[ZONE_0]->GetTime_Marching() != TIME_MARCHING::STEADY)
116+
117+
if (config_container[ZONE_0]->GetTime_Marching() != TIME_MARCHING::STEADY)
121118
config_container[ZONE_0]->SetPhysicalTime(static_cast<su2double>(TimeIter)*config_container[ZONE_0]->GetDelta_UnstTimeND());
122119
else
123120
config_container[ZONE_0]->SetPhysicalTime(0.0);

SU2_CFD/src/python_wrapper_structure.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ unsigned long CDriver::GetNumberTimeIter() const { return config_container[selec
6060

6161
unsigned long CDriver::GetNumberInnerIter() const { return config_container[selected_zone]->GetnInner_Iter(); }
6262
unsigned long CDriver::GetNumberOuterIter() const { return config_container[selected_zone]->GetnOuter_Iter(); }
63-
void CDriver::SetNumberInnerIter(unsigned long nInner) { config_container[selected_zone]->SetnInner_Iter(nInner); }
64-
void CDriver::SetNumberOuterIter(unsigned long nOuter) { config_container[selected_zone]->SetnOuter_Iter(nOuter); }
6563

6664
unsigned long CDriver::GetDensity_FreeStreamND() const { return config_container[selected_zone]->GetDensity_FreeStreamND(); }
6765
unsigned long CDriver::GetForce_Ref() const { return config_container[selected_zone]->GetForce_Ref(); }

0 commit comments

Comments
 (0)