Skip to content

Commit 75012f0

Browse files
Remove unnecessary function
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
1 parent bdf85e2 commit 75012f0

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

SU2_CFD/include/solvers/CIncEulerSolver.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,7 @@ class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, ENUM_REGIME
398398
* \brief Get values for streamwise periodic flow: delta P, m_dot, inlet T, integrated heat, etc.
399399
* \return Struct holding streamwise periodic values.
400400
*/
401-
StreamwisePeriodicValues GetStreamwisePeriodicValues() final { return SPvals; }
402-
StreamwisePeriodicValues GetStreamwisePeriodicValuesUpdated() final { return SPvalsUpdated; }
401+
StreamwisePeriodicValues GetStreamwisePeriodicValues() const final { return SPvals; }
403402

404403
/*!
405404
* \brief Register In- or Output.

SU2_CFD/include/solvers/CSolver.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4307,8 +4307,7 @@ class CSolver {
43074307
* \brief Get values for streamwise periodic flow: delta P, m_dot, inlet T, integrated heat, etc.
43084308
* \return Struct holding streamwise periodic values.
43094309
*/
4310-
virtual StreamwisePeriodicValues GetStreamwisePeriodicValues() { return StreamwisePeriodicValues(); }
4311-
virtual StreamwisePeriodicValues GetStreamwisePeriodicValuesUpdated() { return StreamwisePeriodicValues(); }
4310+
virtual StreamwisePeriodicValues GetStreamwisePeriodicValues() const { return StreamwisePeriodicValues(); }
43124311

43134312
/*!
43144313
* \brief Save snapshot or POD data using libROM

SU2_CFD/src/output/CAdjFlowIncOutput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void CAdjFlowIncOutput::SetHistoryOutputFields(CConfig *config){
114114
AddHistoryOutput("RMS_ADJ_TEMPERATURE", "rms[A_T]", ScreenOutputFormat::FIXED, "RMS_RES", "Root-mean square residual of the adjoint temperature.", HistoryFieldType::RESIDUAL);
115115

116116
if (config->GetKind_Streamwise_Periodic() == ENUM_STREAMWISE_PERIODIC::MASSFLOW) {
117-
AddHistoryOutput("ADJOINT_SolExtra", "Adjoint_SolExtra", ScreenOutputFormat::FIXED, "ADJOINT_SOLEXTRA", "Adjoint value of the first extra Solution.", HistoryFieldType::COEFFICIENT);
117+
AddHistoryOutput("ADJOINT_SOLEXTRA", "Adjoint_SolExtra", ScreenOutputFormat::FIXED, "ADJOINT_SOLEXTRA", "Adjoint value of the first extra Solution.", HistoryFieldType::COEFFICIENT);
118118
}
119119

120120
AddHistoryOutputFields_AdjScalarRMS_RES(config);
@@ -210,7 +210,7 @@ void CAdjFlowIncOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, CS
210210
SetHistoryOutputValue("RMS_ADJ_RAD_ENERGY", log10(adjrad_solver->GetRes_RMS(0)));
211211
}
212212

213-
if (adjflow_solver->GetNodes()->GetSolutionExtra().size() > 0) {
213+
if (config->GetKind_Streamwise_Periodic() == ENUM_STREAMWISE_PERIODIC::MASSFLOW) {
214214
SetHistoryOutputValue("ADJOINT_SOLEXTRA", adjflow_solver->GetNodes()->GetSolutionExtra()[0]);
215215
}
216216

TestCases/incomp_navierstokes/streamwise_periodic/chtPinArray_2d_new/configMaster.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ CONV_STARTITER= 10
3030
% -------------------------------------- OUTPUT -------------------------------%
3131
%
3232
%__DIRECT__SCREEN_OUTPUT= OUTER_ITER, RMS_PRESSURE[0], RMS_VELOCITY-X[0], RMS_VELOCITY-Y[0], RMS_TEMPERATURE[0], RMS_TKE[0], RMS_DISSIPATION[0], RMS_TEMPERATURE[1], STREAMWISE_MASSFLOW[0], STREAMWISE_DP[0], AVG_TEMPERATURE[1]
33-
SCREEN_OUTPUT= OUTER_ITER, RMS_ADJ_PRESSURE[0], RMS_ADJ_VELOCITY-X[0], RMS_ADJ_VELOCITY-Y[0], RMS_ADJ_TEMPERATURE[0], RMS_ADJ_TKE[0], RMS_ADJ_DISSIPATION[0], RMS_ADJ_TEMPERATURE[1], ADJOINT_DP[0]
33+
SCREEN_OUTPUT= OUTER_ITER, RMS_ADJ_PRESSURE[0], RMS_ADJ_VELOCITY-X[0], RMS_ADJ_VELOCITY-Y[0], RMS_ADJ_TEMPERATURE[0], RMS_ADJ_TKE[0], RMS_ADJ_DISSIPATION[0], RMS_ADJ_TEMPERATURE[1], ADJOINT_SOLEXTRA[0]
3434
SCREEN_WRT_FREQ_OUTER= 100
3535
%
3636
%__DIRECT__HISTORY_OUTPUT= ITER, BGS_RES[0], BGS_RES[1], RMS_RES[0], RMS_RES[1], STREAMWISE_PERIODIC[0], FLOW_COEFF[0], FLOW_COEFF_SURF[0], AERO_COEFF[0], HEAT[0], HEAT[1], LINSOL[0], LINSOL[1]
37-
HISTORY_OUTPUT= ITER, BGS_RES[0], BGS_RES[1], RMS_RES[0], RMS_RES[1], ADJOINT_DP[0]
37+
HISTORY_OUTPUT= ITER, BGS_RES[0], BGS_RES[1], RMS_RES[0], RMS_RES[1], ADJOINT_SOLEXTRA[0]
3838
OUTPUT_PRECISION= 16
3939
%
4040
OUTPUT_FILES= RESTART, PARAVIEW_MULTIBLOCK

0 commit comments

Comments
 (0)