Skip to content

Commit d65c487

Browse files
committed
fix build
1 parent 360b390 commit d65c487

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Common/include/omp_structure.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ inline void omp_destroy_lock(omp_lock_t*){}
100100
#if _OPENMP >= 201307
101101
#define HAVE_OMP_SIMD
102102
#define SU2_OMP_SIMD PRAGMIZE(omp simd)
103-
#else
103+
#endif
104+
#endif
105+
#ifndef SU2_OMP_SIMD
104106
#define SU2_OMP_SIMD
105107
#endif
106-
#endif // end SIMD detection
107108

108109
/*--- Convenience macros (do not use excessive nesting). ---*/
109110

SU2_CFD/src/drivers/CDiscAdjSinglezoneDriver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ void CDiscAdjSinglezoneDriver::Run() {
162162
if (TimeIter != 0) GetAllSolutions(ZONE_0, true, QNDriver);
163163
}
164164

165-
for (auto iter = 0ul; iter < nAdjoint_Iter; iter++) {
165+
for (auto Adjoint_Iter = 0ul; Adjoint_Iter < nAdjoint_Iter; Adjoint_Iter++) {
166166

167167
/*--- Initialize the adjoint of the output variables of the iteration with the adjoint solution
168168
*--- of the previous iteration. The values are passed to the AD tool.
169169
*--- Issues with iteration number should be dealt with once the output structure is in place. ---*/
170170

171-
config->SetInnerIter(iter);
171+
config->SetInnerIter(Adjoint_Iter);
172172

173173
iteration->InitializeAdjoint(solver_container, geometry_container, config_container, ZONE_0, INST_0);
174174

@@ -200,7 +200,7 @@ void CDiscAdjSinglezoneDriver::Run() {
200200

201201
if (steady) {
202202
iteration->Output(output_container[ZONE_0], geometry_container, solver_container,
203-
config_container, iter, false, ZONE_0, INST_0);
203+
config_container, Adjoint_Iter, false, ZONE_0, INST_0);
204204
}
205205

206206
if (StopCalc) break;

0 commit comments

Comments
 (0)