Skip to content

Commit 3f8e1c1

Browse files
author
Joshua Kelly
committed
Resolving memory error
1 parent 1eacd1c commit 3f8e1c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Common/src/CConfig.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4406,6 +4406,11 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
44064406
nSpan_iZones = new unsigned short[nZone];
44074407
}
44084408

4409+
RampOutletPressure = false;
4410+
RampOutletMassFlow = false;
4411+
RampRotatingFrame = false;
4412+
RampTranslationFrame = false;
4413+
44094414
/*--- Interface for handling turbo ramps ---*/
44104415
if (GetGrid_Movement() && RampMotionFrame && !DiscreteAdjoint) {
44114416
if (Kind_GridMovement == ENUM_GRIDMOVEMENT::ROTATING_FRAME) RampRotatingFrame = true;
@@ -5502,11 +5507,6 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
55025507
default:
55035508
break;
55045509
}
5505-
5506-
RampOutletPressure = false;
5507-
RampOutletMassFlow = false;
5508-
RampRotatingFrame = false;
5509-
RampTranslationFrame = false;
55105510
}
55115511

55125512
/* 2nd-order MUSCL is not possible for the continuous adjoint

0 commit comments

Comments
 (0)