Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkellyjak committed Jan 17, 2025
1 parent 583f249 commit 92cf538
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Common/include/CConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5192,7 +5192,7 @@ class CConfig {
* \brief General interface for accessing ramp coefficient information
* \return coeff for ramps
*/
su2double GetRamp_Coeff(TURBO_RAMP_TYPE ramp_flag, TURBO_RAMP_COEFF val_coeff) {
su2double GetRamp_Coeff(TURBO_RAMP_TYPE ramp_flag, TURBO_RAMP_COEFF val_coeff) {
if (ramp_flag == TURBO_RAMP_TYPE::GRID) return rampMotionFrame_coeff[val_coeff];
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY) return rampOutlet_coeff[val_coeff];
else return 0;
Expand Down Expand Up @@ -6065,10 +6065,10 @@ class CConfig {

/*!
* \brief General interface for setting the rate of motion in grid ramps
* \param[in] ramp_flag - flag for type of ramp
* \param[in] ramp_flag - flag for type of ramp
* \param[in] val - new value of rate of motion
*/
void SetRate(su2double val) {
void SetRate(su2double val) {
if (RampRotatingFrame) Rotation_Rate[2] = val;
else if (RampTranslationFrame) Translation_Rate[1] = val;
};
Expand Down Expand Up @@ -6184,7 +6184,7 @@ class CConfig {
*/
void SetRotation_Rate_Z(su2double newRotation_Rate_Z);

su2double GetFinalValue(TURBO_RAMP_TYPE ramp_flag) {
su2double GetFinalValue(TURBO_RAMP_TYPE ramp_flag) {
if (ramp_flag == TURBO_RAMP_TYPE::GRID && RampRotatingFrame) return FinalRotation_Rate_Z;
else if (ramp_flag == TURBO_RAMP_TYPE::GRID && RampTranslationFrame) return FinalTranslation_Rate_Y;
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && RampOutletPressure) return FinalOutletPressure;
Expand Down
12 changes: 7 additions & 5 deletions Common/include/geometry/CGeometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -964,12 +964,14 @@ class CGeometry {
/*!
* \brief General interface for setting the velocity in the geometry during motion ramps
* \param[in] config - config class
* \param[in] ramp_flag - flag for type of ramp
* \param[in] ramp_flag - flag for type of ramp
* \param[in] print - bool to print update to screen
*/
void SetVelocity(CConfig* config, bool print) {
if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::ROTATING_FRAME) SetRotationalVelocity(config, print);
else if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::STEADY_TRANSLATION) SetTranslationalVelocity(config, print);
*/
void SetVelocity(CConfig* config, bool print) {
if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::ROTATING_FRAME)
SetRotationalVelocity(config, print);
else if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::STEADY_TRANSLATION)
SetTranslationalVelocity(config, print);
};

/*!
Expand Down

0 comments on commit 92cf538

Please sign in to comment.