Skip to content

Commit 1aae062

Browse files
committed
fix for MZ outputs per surf
1 parent cc9e452 commit 1aae062

6 files changed

Lines changed: 16 additions & 25 deletions

File tree

SU2_CFD/include/output/COutput.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ class COutput {
621621
if (it != historyOutputPerSurface_Map.end()) {
622622
it->second[iMarker].value = value;
623623
} else {
624-
SU2_MPI::Error(string("Cannot find output field with name ") + name, CURRENT_FUNCTION);
624+
SU2_MPI::Error("Cannot find output field with name " + name, CURRENT_FUNCTION);
625625
}
626626
}
627627

SU2_CFD/src/output/CMultizoneOutput.cpp

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,11 @@ void CMultizoneOutput::LoadMultizoneHistoryData(const COutput* const* output, co
103103
const auto& name = item.first;
104104
nameMultizone = name + zoneIndex;
105105

106-
/*--- Determine whether nMaker_Analyze/Monitoring has to be looped. ---*/
107-
const auto& group = item.second[0].outputGroup;
108-
unsigned short nMarker = 0;
109-
if (group == "FLOW_COEFF_SURF")
110-
nMarker = config[iZone]->GetnMarker_Analyze();
111-
else if (group == "AERO_COEFF_SURF")
112-
nMarker = config[iZone]->GetnMarker_Monitoring();
113-
else
114-
SU2_MPI::Error("Per Surface output group unknown: " + group, CURRENT_FUNCTION);
115-
116-
for (unsigned short iMarker = 0; iMarker < nMarker; iMarker++) {
117-
SetHistoryOutputPerSurfaceValue(nameMultizone, item.second[iMarker].value, iMarker);
118-
}// for iMarker
119-
}// for HistPerSurfFields
106+
unsigned short iMarker = 0;
107+
for (const auto& field : item.second) {
108+
SetHistoryOutputPerSurfaceValue(nameMultizone, field.value, iMarker++);
109+
}
110+
}
120111
}
121112
SetHistoryOutputValue("COMBO", comboValue);
122113
}

TestCases/hybrid_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def main():
9898
flatplate = TestCase('flatplate')
9999
flatplate.cfg_dir = "navierstokes/flatplate"
100100
flatplate.cfg_file = "lam_flatplate.cfg"
101-
flatplate.test_iter = 125
101+
flatplate.test_iter = 100
102102
flatplate.test_vals = [-12.022962, -6.535702, 0.001112, 0.036277, 2.3615, -2.3253, -2.2795, -2.2795, 5]
103103
test_list.append(flatplate)
104104

TestCases/navierstokes/flatplate/lam_flatplate.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ MARKER_ANALYZE= (inlet, outlet)
4646
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
4747
%
4848
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
49-
CFL_NUMBER= 10000.0
49+
CFL_NUMBER= 10000
5050
CFL_ADAPT= NO
5151

5252
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
5353
%
5454
LINEAR_SOLVER= FGMRES
5555
LINEAR_SOLVER_PREC= LU_SGS
56-
LINEAR_SOLVER_ERROR= 0.1
57-
LINEAR_SOLVER_ITER= 6
56+
LINEAR_SOLVER_ERROR= 0.05
57+
LINEAR_SOLVER_ITER= 3
5858

5959
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
6060
%
@@ -63,8 +63,8 @@ MGCYCLE= V_CYCLE
6363
MG_PRE_SMOOTH= ( 1, 1, 1, 2 )
6464
MG_POST_SMOOTH= ( 0, 1, 1, 0 )
6565
MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
66-
MG_DAMP_RESTRICTION= 0.8
67-
MG_DAMP_PROLONGATION= 0.8
66+
MG_DAMP_RESTRICTION= 0.75
67+
MG_DAMP_PROLONGATION= 0.75
6868

6969
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
7070
%
@@ -78,7 +78,7 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
7878
%
7979
CONV_RESIDUAL_MINVAL= -12
8080
CONV_STARTITER= 10
81-
ITER= 999999
81+
ITER= 500
8282

8383
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
8484
%

TestCases/parallel_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ def main():
204204
flatplate = TestCase('flatplate')
205205
flatplate.cfg_dir = "navierstokes/flatplate"
206206
flatplate.cfg_file = "lam_flatplate.cfg"
207-
flatplate.test_iter = 125
208-
flatplate.test_vals = [-12.022962, -6.535702, 0.001112, 0.036277, 2.3615, -2.3253, -2.2795, -2.2795, 5]
207+
flatplate.test_iter = 100
208+
flatplate.test_vals = [-12.022986, -6.535729, 0.001112, 0.036277, 2.361500, -2.325300, -2.279500, -2.279500, 5]
209209
flatplate.su2_exec = "mpirun -n 2 SU2_CFD"
210210
flatplate.timeout = 1600
211211
flatplate.tol = 0.00001

TestCases/serial_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def main():
201201
flatplate = TestCase('flatplate')
202202
flatplate.cfg_dir = "navierstokes/flatplate"
203203
flatplate.cfg_file = "lam_flatplate.cfg"
204-
flatplate.test_iter = 125
204+
flatplate.test_iter = 100
205205
flatplate.test_vals = [-12.022962, -6.535702, 0.001112, 0.036277, 2.3615, -2.3253, -2.2795, -2.2795, 5]
206206
flatplate.su2_exec = "SU2_CFD"
207207
flatplate.new_output = True

0 commit comments

Comments
 (0)