Skip to content

Commit 9e02f88

Browse files
committed
SU2_OMP_PARALLEL formatting in CTurboOutput
1 parent b38da56 commit 9e02f88

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ BasedOnStyle: Google
22
PointerAlignment: Left
33
DerivePointerAlignment: false
44
ColumnLimit: 120
5-
SortIncludes: Never
5+
SortIncludes: false

SU2_CFD/src/output/CTurboOutput.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*/
2727

2828
#include "../../include/output/CTurboOutput.hpp"
29+
#include "Common/include/parallelization/omp_structure.hpp"
2930

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

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

181182
/* Switch between the Turbomachinery Performance Kind */
182183
// TODO: This needs to be fixed
@@ -202,6 +203,7 @@ CTurboOutput::CTurboOutput(const CConfig& config, const CGeometry& geometry, CFl
202203
break;
203204
}
204205
}
206+
END_SU2_OMP_PARALLEL
205207
}
206208
BladesPerformances.push_back(bladeSpanPerformances);
207209
}

0 commit comments

Comments
 (0)