Skip to content

Commit a6896ff

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fix_inc_rotatingframe
2 parents 0077056 + 3ff9650 commit a6896ff

829 files changed

Lines changed: 6262 additions & 2726 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Common/doc/docmain.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file docmain.hpp
33
* \brief This file contains documentation for Doxygen and does not have any significance with respect to C++.
44
* \author F. Palacios
5-
* \version 7.0.6 "Blackbird"
5+
* \version 7.0.7 "Blackbird"
66
*
77
* The current SU2 release has been coordinated by the
88
* SU2 International Developers Society <www.su2devsociety.org>
@@ -33,7 +33,7 @@
3333
*/
3434

3535
/*!
36-
* \mainpage SU2 version 7.0.6 "Blackbird"
36+
* \mainpage SU2 version 7.0.7 "Blackbird"
3737
* SU2 suite is an open-source collection of C++ based software tools
3838
* to perform PDE analysis and PDE constrained optimization problems. The toolset is designed with
3939
* computational fluid dynamics and aerodynamic shape optimization in mind, but is extensible to

Common/include/CConfig.hpp

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* \brief All the information about the definition of the physical problem.
44
* The subroutines and functions are in the <i>CConfig.cpp</i> file.
55
* \author F. Palacios, T. Economon, B. Tracey
6-
* \version 7.0.6 "Blackbird"
6+
* \version 7.0.7 "Blackbird"
77
*
88
* SU2 Project Website: https://su2code.github.io
99
*
@@ -43,8 +43,8 @@
4343
#include <map>
4444
#include <assert.h>
4545

46-
#include "./option_structure.hpp"
47-
#include "./toolboxes/C2DContainer.hpp"
46+
#include "option_structure.hpp"
47+
#include "containers/container_decorators.hpp"
4848

4949
#ifdef HAVE_CGNS
5050
#include "cgnslib.h"
@@ -419,6 +419,7 @@ class CConfig {
419419
su2double *RK_Alpha_Step; /*!< \brief Runge-Kutta beta coefficients. */
420420

421421
unsigned short nQuasiNewtonSamples; /*!< \brief Number of samples used in quasi-Newton solution methods. */
422+
bool UseVectorization; /*!< \brief Whether to use vectorized numerics schemes. */
422423

423424
unsigned short nMGLevels; /*!< \brief Number of multigrid levels (coarse levels). */
424425
unsigned short nCFL; /*!< \brief Number of CFL, one for each multigrid level. */
@@ -591,10 +592,10 @@ class CConfig {
591592
*Kappa_AdjFlow, /*!< \brief Numerical dissipation coefficients for the adjoint flow equations. */
592593
*Kappa_Heat; /*!< \brief Numerical dissipation coefficients for the (fvm) heat equation. */
593594
su2double* FFD_Axis; /*!< \brief Numerical dissipation coefficients for the adjoint equations. */
594-
su2double Kappa_1st_AdjFlow, /*!< \brief JST 1st order dissipation coefficient for adjoint flow equations (coarse multigrid levels). */
595+
su2double Kappa_1st_AdjFlow, /*!< \brief Lax 1st order dissipation coefficient for adjoint flow equations (coarse multigrid levels). */
595596
Kappa_2nd_AdjFlow, /*!< \brief JST 2nd order dissipation coefficient for adjoint flow equations. */
596597
Kappa_4th_AdjFlow, /*!< \brief JST 4th order dissipation coefficient for adjoint flow equations. */
597-
Kappa_1st_Flow, /*!< \brief JST 1st order dissipation coefficient for flow equations (coarse multigrid levels). */
598+
Kappa_1st_Flow, /*!< \brief Lax 1st order dissipation coefficient for flow equations (coarse multigrid levels). */
598599
Kappa_2nd_Flow, /*!< \brief JST 2nd order dissipation coefficient for flow equations. */
599600
Kappa_4th_Flow, /*!< \brief JST 4th order dissipation coefficient for flow equations. */
600601
Kappa_2nd_Heat, /*!< \brief 2nd order dissipation coefficient for heat equation. */
@@ -1078,6 +1079,8 @@ class CConfig {
10781079
default_jst_adj_coeff[2], /*!< \brief Default artificial dissipation (adjoint) array for the COption class. */
10791080
default_ad_coeff_heat[2], /*!< \brief Default artificial dissipation (heat) array for the COption class. */
10801081
default_obj_coeff[5], /*!< \brief Default objective array for the COption class. */
1082+
default_mesh_box_length[3], /*!< \brief Default mesh box length for the COption class. */
1083+
default_mesh_box_offset[3], /*!< \brief Default mesh box offset for the COption class. */
10811084
default_geo_loc[2], /*!< \brief Default SU2_GEO section locations array for the COption class. */
10821085
default_distortion[2], /*!< \brief Default SU2_GEO section locations array for the COption class. */
10831086
default_ea_lim[3], /*!< \brief Default equivalent area limit array for the COption class. */
@@ -1163,7 +1166,7 @@ class CConfig {
11631166
ionization; /*!< \brief Flag for determining if free electron gas is in the mixture. */
11641167
string GasModel, /*!< \brief Gas Model. */
11651168
*Wall_Catalytic; /*!< \brief Pointer to catalytic walls. */
1166-
1169+
11671170
/*!
11681171
* \brief Set the default values of config options not set in the config file using another config object.
11691172
* \param config - Config object to use the default values from.
@@ -4113,6 +4116,11 @@ class CConfig {
41134116
*/
41144117
unsigned short GetnQuasiNewtonSamples(void) const { return nQuasiNewtonSamples; }
41154118

4119+
/*!
4120+
* \brief Get whether to use vectorized numerics (if available).
4121+
*/
4122+
bool GetUseVectorization(void) const { return UseVectorization; }
4123+
41164124
/*!
41174125
* \brief Get the relaxation coefficient of the linear solver for the implicit formulation.
41184126
* \return relaxation coefficient of the linear solver for the implicit formulation.
@@ -4508,7 +4516,7 @@ class CConfig {
45084516
* during the computation.
45094517
* \return Kind of center convective numerical scheme for the flow equations.
45104518
*/
4511-
unsigned short GetKind_Centered_Flow(void) const { return Kind_Centered_Flow; }
4519+
ENUM_CENTERED GetKind_Centered_Flow(void) const { return static_cast<ENUM_CENTERED>(Kind_Centered_Flow); }
45124520

45134521
/*!
45144522
* \brief Get the kind of center convective numerical scheme for the plasma equations.

Common/include/CMultiGridQueue.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* \brief Header of the multigrid queue class for the FVM solver.
44
* The subroutines and functions are in the <i>CMultiGridQueue.cpp</i> file.
55
* \author F. Palacios
6-
* \version 7.0.6 "Blackbird"
6+
* \version 7.0.7 "Blackbird"
77
*
88
* SU2 Project Website: https://su2code.github.io
99
*
@@ -29,7 +29,7 @@
2929
#pragma once
3030

3131
#include <vector>
32-
#include "toolboxes/CFastFindAndEraseQueue.hpp"
32+
#include "containers/CFastFindAndEraseQueue.hpp"
3333
#include "geometry/CGeometry.hpp"
3434

3535
using namespace std;

Common/include/adt/CADTBaseClass.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file CADTBaseClass.hpp
33
* \brief Base class for storing an ADT in an arbitrary number of dimensions.
44
* \author E. van der Weide
5-
* \version 7.0.6 "Blackbird"
5+
* \version 7.0.7 "Blackbird"
66
*
77
* SU2 Project Website: https://su2code.github.io
88
*

Common/include/adt/CADTComparePointClass.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file CADTComparePointClass.hpp
33
* \brief subroutines for comparing two points in an alternating digital tree (ADT).
44
* \author E. van der Weide
5-
* \version 7.0.6 "Blackbird"
5+
* \version 7.0.7 "Blackbird"
66
*
77
* SU2 Project Website: https://su2code.github.io
88
*

Common/include/adt/CADTElemClass.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file CADTElemClass.hpp
33
* \brief Class for storing an ADT of (linear) elements in an arbitrary number of dimensions.
44
* \author E. van der Weide
5-
* \version 7.0.6 "Blackbird"
5+
* \version 7.0.7 "Blackbird"
66
*
77
* SU2 Project Website: https://su2code.github.io
88
*
@@ -35,7 +35,7 @@
3535
* \class CADTElemClass
3636
* \brief Class for storing an ADT of (linear) elements in an arbitrary number of dimensions.
3737
* \author E. van der Weide
38-
* \version 7.0.6 "Blackbird"
38+
* \version 7.0.7 "Blackbird"
3939
*/
4040
class CADTElemClass : public CADTBaseClass {
4141
private:

Common/include/adt/CADTNodeClass.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file CADTNodeClass.hpp
33
* \brief Class for storing the information needed in a node of an ADT.
44
* \author E. van der Weide
5-
* \version 7.0.6 "Blackbird"
5+
* \version 7.0.7 "Blackbird"
66
*
77
* SU2 Project Website: https://su2code.github.io
88
*

Common/include/adt/CADTPointsOnlyClass.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file CADTPointsOnlyClass.hpp
33
* \brief Class for storing an ADT of only points in an arbitrary number of dimensions.
44
* \author E. van der Weide
5-
* \version 7.0.6 "Blackbird"
5+
* \version 7.0.7 "Blackbird"
66
*
77
* SU2 Project Website: https://su2code.github.io
88
*

Common/include/adt/CBBoxTargetClass.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* \brief Class for storing the information of a possible bounding box candidate
44
during a minimum distance search.
55
* \author E. van der Weide
6-
* \version 7.0.6 "Blackbird"
6+
* \version 7.0.7 "Blackbird"
77
*
88
* SU2 Project Website: https://su2code.github.io
99
*
@@ -34,7 +34,7 @@
3434
* \brief Class for storing the information of a possible bounding box candidate
3535
during a minimum distance search.
3636
* \author E. van der Weide
37-
* \version 7.0.6 "Blackbird"
37+
* \version 7.0.7 "Blackbird"
3838
*/
3939
struct CBBoxTargetClass {
4040

Common/include/basic_types/ad_structure.hpp

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file ad_structure.hpp
33
* \brief Main routines for the algorithmic differentiation (AD) structure.
44
* \author T. Albring
5-
* \version 7.0.6 "Blackbird"
5+
* \version 7.0.7 "Blackbird"
66
*
77
* SU2 Project Website: https://su2code.github.io
88
*
@@ -353,8 +353,7 @@ namespace AD{
353353
/*--- Base case for parameter pack expansion. ---*/
354354
FORCEINLINE void SetPreaccIn() {}
355355

356-
template<class T, class... Ts,
357-
typename std::enable_if<std::is_same<T,su2double>::value,bool>::type = 0>
356+
template<class T, class... Ts, su2enable_if<std::is_same<T,su2double>::value> = 0>
358357
FORCEINLINE void SetPreaccIn(const T& data, Ts&&... moreData) {
359358
if (!PreaccActive) return;
360359
if (data.isActive())
@@ -385,6 +384,18 @@ namespace AD{
385384
}
386385
}
387386

387+
template<class T>
388+
FORCEINLINE void SetPreaccIn(const T& data, const int size_x, const int size_y, const int size_z) {
389+
if (!PreaccActive) return;
390+
for (int i = 0; i < size_x; i++) {
391+
for (int j = 0; j < size_y; j++) {
392+
for (int k = 0; k < size_z; k++) {
393+
if (data[i][j][k].isActive()) PreaccHelper.addInput(data[i][j][k]);
394+
}
395+
}
396+
}
397+
}
398+
388399
FORCEINLINE void StartPreacc() {
389400
if (globalTape.isActive() && PreaccEnabled) {
390401
PreaccHelper.start();
@@ -395,8 +406,7 @@ namespace AD{
395406
/*--- Base case for parameter pack expansion. ---*/
396407
FORCEINLINE void SetPreaccOut() {}
397408

398-
template<class T, class... Ts,
399-
typename std::enable_if<std::is_same<T,su2double>::value,bool>::type = 0>
409+
template<class T, class... Ts, su2enable_if<std::is_same<T,su2double>::value> = 0>
400410
FORCEINLINE void SetPreaccOut(T& data, Ts&&... moreData) {
401411
if (!PreaccActive) return;
402412
if (data.isActive())

0 commit comments

Comments
 (0)