Skip to content

Commit f34b5bf

Browse files
committed
Changes for comments
1 parent a2f67e8 commit f34b5bf

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Common/include/CConfig.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5360,11 +5360,6 @@ class CConfig {
53605360
*/
53615361
TURBO_INTERFACE_KIND GetKind_TurboInterface(unsigned short interfaceIndex) const { return Kind_TurboInterface[interfaceIndex]; }
53625362

5363-
/*!
5364-
* \brief Sets marker kind for an interface marker in turbomachinery problem
5365-
*/
5366-
void SetKind_TurboInterface(unsigned short interfaceIndex, TURBO_INTERFACE_KIND TurboInterfaceKind) {Kind_TurboInterface[interfaceIndex] = TurboInterfaceKind ;}
5367-
53685363
/*!
53695364
* \brief get outlet bounds name for Turbomachinery performance calculation.
53705365
* \return name of the bound.

Common/src/CConfig.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6072,19 +6072,19 @@ void CConfig::SetMarkers(SU2_COMPONENT val_software) {
60726072
if (Marker_MixingPlaneInterface != nullptr){ // Necessary in cases where no mixing plane interfaces are defined
60736073
if (Marker_CfgFile_MixingPlaneInterface[iMarker_CfgFile] != 0) { //Is a mixing plane
60746074
/*--- Find which list position this marker is in turbomachinery markers ---*/
6075-
const auto* target = std::find(&Marker_Turbomachinery[0], &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]);
6075+
const auto* target = std::find(Marker_Turbomachinery, &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]);
60766076
const auto target_index = target - Marker_Turbomachinery;
60776077
/*--- Assert that we find the marker within the turbomachienry markers ---*/
60786078
assert(target != &Marker_Turbomachinery[nMarker_Turbomachinery*2-1]);
60796079
/*--- Assign the correct interface ---*/
6080-
SetKind_TurboInterface(target_index - 1, TURBO_INTERFACE_KIND::MIXING_PLANE); // Need to subtract 1 from index as to not consider the inlet an interface
6080+
Kind_TurboInterface[target_index-1] = TURBO_INTERFACE_KIND::MIXING_PLANE; // Need to subtract 1 from index as to not consider the inlet an interface
60816081
}
60826082
}
60836083
if (Marker_Fluid_InterfaceBound != nullptr){ // No fluid interfaces are defined in the config file (nullptr if no interfaces defined)
60846084
if (Marker_CfgFile_KindBC[iMarker_CfgFile] == BC_TYPE::FLUID_INTERFACE) { // iMarker_CfgFile is a fluid interface
6085-
const auto* target = std::find(&Marker_Turbomachinery[0], &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]);
6085+
const auto* target = std::find(Marker_Turbomachinery, &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]);
60866086
const auto target_index = target - Marker_Turbomachinery;
6087-
SetKind_TurboInterface(target_index-1, TURBO_INTERFACE_KIND::FROZEN_ROTOR);
6087+
Kind_TurboInterface[target_index-1] = TURBO_INTERFACE_KIND::FROZEN_ROTOR;
60886088
}
60896089
}
60906090
}

0 commit comments

Comments
 (0)