Skip to content

Commit fdc15e0

Browse files
committed
Removed changes for non pysu2 functions
1 parent df5838c commit fdc15e0

3 files changed

Lines changed: 83 additions & 83 deletions

File tree

SU2_CFD/src/drivers/CDiscAdjMultizoneDriver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ void CDiscAdjMultizoneDriver::Run() {
440440
/*--- Check for convergence. ---*/
441441

442442
StopCalc = driver_output->GetConvergence() || (iOuterIter == nOuterIter-1) ||
443-
((nZone==1) && output_container[selected_iZone]->GetConvergence());
443+
((nZone==1) && output_container[ZONE_0]->GetConvergence());
444444

445445
/*--- Clear the stored adjoint information to be ready for a new evaluation. ---*/
446446

@@ -765,13 +765,13 @@ void CDiscAdjMultizoneDriver::SetObjFunction(RECORDING kind_recording) {
765765
void CDiscAdjMultizoneDriver::SetAdjObjFunction() {
766766
su2double seeding = 1.0;
767767

768-
if (config_container[selected_iZone]->GetTime_Domain()) {
769-
const auto IterAvg_Obj = config_container[selected_iZone]->GetIter_Avg_Objective();
768+
if (config_container[ZONE_0]->GetTime_Domain()) {
769+
const auto IterAvg_Obj = config_container[ZONE_0]->GetIter_Avg_Objective();
770770
if (TimeIter < IterAvg_Obj) {
771771
/*--- Default behavior when no window is chosen is to use Square-Windowing, i.e. the numerator equals 1.0 ---*/
772772
auto windowEvaluator = CWindowingTools();
773773
const su2double weight =
774-
windowEvaluator.GetWndWeight(config_container[selected_iZone]->GetKindWindow(), TimeIter, IterAvg_Obj - 1);
774+
windowEvaluator.GetWndWeight(config_container[ZONE_0]->GetKindWindow(), TimeIter, IterAvg_Obj - 1);
775775
seeding = weight / IterAvg_Obj;
776776
}
777777
else {

0 commit comments

Comments
 (0)