Skip to content

Commit

Permalink
SU2_OMP_PARALLEL formatting in CTurboOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushma committed Apr 20, 2023
1 parent b38da56 commit 9e02f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BasedOnStyle: Google
PointerAlignment: Left
DerivePointerAlignment: false
ColumnLimit: 120
SortIncludes: Never
SortIncludes: false
4 changes: 3 additions & 1 deletion SU2_CFD/src/output/CTurboOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/

#include "../../include/output/CTurboOutput.hpp"
#include "Common/include/parallelization/omp_structure.hpp"

CTurbomachineryPrimitiveState::CTurbomachineryPrimitiveState() { Density = Pressure = TangVelocity = 0.0; }
CTurbomachineryPrimitiveState::CTurbomachineryPrimitiveState(vector<su2double> TurboPrimitive, unsigned short nDim,
Expand Down Expand Up @@ -176,7 +177,7 @@ CTurboOutput::CTurboOutput(const CConfig& config, const CGeometry& geometry, CFl

// TODO: I have a feeling this should not be in such a for loop, to be discussed with Salvo (Nitish)
SU2_OMP_PARALLEL {
const int thread = omp_get_thread_num();
// const int thread = omp_get_thread_num();

/* Switch between the Turbomachinery Performance Kind */
// TODO: This needs to be fixed
Expand All @@ -202,6 +203,7 @@ CTurboOutput::CTurboOutput(const CConfig& config, const CGeometry& geometry, CFl
break;
}
}
END_SU2_OMP_PARALLEL
}
BladesPerformances.push_back(bladeSpanPerformances);
}
Expand Down

0 comments on commit 9e02f88

Please sign in to comment.