diff --git a/Common/include/CConfig.hpp b/Common/include/CConfig.hpp index 4c4c50fe0ac..ff713cc20d6 100644 --- a/Common/include/CConfig.hpp +++ b/Common/include/CConfig.hpp @@ -5360,11 +5360,6 @@ class CConfig { */ TURBO_INTERFACE_KIND GetKind_TurboInterface(unsigned short interfaceIndex) const { return Kind_TurboInterface[interfaceIndex]; } - /*! - * \brief Sets marker kind for an interface marker in turbomachinery problem - */ - void SetKind_TurboInterface(unsigned short interfaceIndex, TURBO_INTERFACE_KIND TurboInterfaceKind) {Kind_TurboInterface[interfaceIndex] = TurboInterfaceKind ;} - /*! * \brief get outlet bounds name for Turbomachinery performance calculation. * \return name of the bound. diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index c4eae90905f..276c66ebf60 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -6072,19 +6072,19 @@ void CConfig::SetMarkers(SU2_COMPONENT val_software) { if (Marker_MixingPlaneInterface != nullptr){ // Necessary in cases where no mixing plane interfaces are defined if (Marker_CfgFile_MixingPlaneInterface[iMarker_CfgFile] != 0) { //Is a mixing plane /*--- Find which list position this marker is in turbomachinery markers ---*/ - const auto* target = std::find(&Marker_Turbomachinery[0], &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]); + const auto* target = std::find(Marker_Turbomachinery, &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]); const auto target_index = target - Marker_Turbomachinery; /*--- Assert that we find the marker within the turbomachienry markers ---*/ assert(target != &Marker_Turbomachinery[nMarker_Turbomachinery*2-1]); /*--- Assign the correct interface ---*/ - SetKind_TurboInterface(target_index - 1, TURBO_INTERFACE_KIND::MIXING_PLANE); // Need to subtract 1 from index as to not consider the inlet an interface + Kind_TurboInterface[target_index-1] = TURBO_INTERFACE_KIND::MIXING_PLANE; // Need to subtract 1 from index as to not consider the inlet an interface } } if (Marker_Fluid_InterfaceBound != nullptr){ // No fluid interfaces are defined in the config file (nullptr if no interfaces defined) if (Marker_CfgFile_KindBC[iMarker_CfgFile] == BC_TYPE::FLUID_INTERFACE) { // iMarker_CfgFile is a fluid interface - const auto* target = std::find(&Marker_Turbomachinery[0], &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]); + const auto* target = std::find(Marker_Turbomachinery, &Marker_Turbomachinery[nMarker_Turbomachinery*2-1], Marker_CfgFile_TagBound[iMarker_CfgFile]); const auto target_index = target - Marker_Turbomachinery; - SetKind_TurboInterface(target_index-1, TURBO_INTERFACE_KIND::FROZEN_ROTOR); + Kind_TurboInterface[target_index-1] = TURBO_INTERFACE_KIND::FROZEN_ROTOR; } } }