Skip to content

Commit fbfa4ee

Browse files
authored
Merge branch 'develop' into fix_gridvel
2 parents ec118bc + 6d8f36f commit fbfa4ee

94 files changed

Lines changed: 1531 additions & 2803 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/include/CConfig.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,13 +1322,13 @@ class CConfig {
13221322
* \brief Print the header to screen
13231323
* \param val_software - Kind of software component
13241324
*/
1325-
void SetHeader(unsigned short val_software);
1325+
void SetHeader(unsigned short val_software) const;
13261326

13271327
/*!
13281328
* \brief Get the MPI communicator of SU2.
13291329
* \return MPI communicator of SU2.
13301330
*/
1331-
SU2_MPI::Comm GetMPICommunicator();
1331+
SU2_MPI::Comm GetMPICommunicator() const;
13321332

13331333
/*!
13341334
* \brief Set the MPI communicator for SU2.
@@ -3937,7 +3937,7 @@ class CConfig {
39373937
* \brief Get flag for whether a second gradient calculation is required for upwind reconstruction alone.
39383938
* \return <code>TRUE</code> means that a second gradient will be calculated for upwind reconstruction.
39393939
*/
3940-
bool GetReconstructionGradientRequired(void) { return ReconstructionGradientRequired; }
3940+
bool GetReconstructionGradientRequired(void) const { return ReconstructionGradientRequired; }
39413941

39423942
/*!
39433943
* \brief Get flag for whether a least-squares gradient method is being applied.
@@ -5403,13 +5403,13 @@ class CConfig {
54035403
* \brief Append the zone index to the restart or the solution files.
54045404
* \return Name of the restart file for the flow variables.
54055405
*/
5406-
string GetMultizone_FileName(string val_filename, int val_iZone, string ext);
5406+
string GetMultizone_FileName(string val_filename, int val_iZone, string ext) const;
54075407

54085408
/*!
54095409
* \brief Append the zone index to the restart or the solution files.
54105410
* \return Name of the restart file for the flow variables.
54115411
*/
5412-
string GetMultizone_HistoryFileName(string val_filename, int val_iZone, string ext);
5412+
string GetMultizone_HistoryFileName(string val_filename, int val_iZone, string ext) const;
54135413

54145414
/*!
54155415
* \brief Append the instance index to the restart or the solution files.
@@ -5483,7 +5483,7 @@ class CConfig {
54835483
* \param[in] val_iter - Unsteady iteration number or time instance.
54845484
* \return Name of the file with the iteration number for an unsteady solution file.
54855485
*/
5486-
string GetUnsteady_FileName(string val_filename, int val_iter, string ext);
5486+
string GetUnsteady_FileName(string val_filename, int val_iter, string ext) const;
54875487

54885488
/*!
54895489
* \brief Append the input filename string with the appropriate objective function extension.
@@ -5688,7 +5688,7 @@ class CConfig {
56885688
* \param[in] val - new value of the origin
56895689
* \return The mesh motion origin.
56905690
*/
5691-
void SetMotion_Origin(su2double* val) { for (int iDim = 0; iDim < 3; iDim++) Motion_Origin[iDim] = val[iDim]; }
5691+
void SetMotion_Origin(const su2double* val) { for (int iDim = 0; iDim < 3; iDim++) Motion_Origin[iDim] = val[iDim]; }
56925692

56935693
/*!
56945694
* \brief Get the mesh motion origin.
@@ -5703,7 +5703,7 @@ class CConfig {
57035703
* \param[in] val - new value of the origin
57045704
* \param[in] iMarkerMoving - Index of the moving marker (as specified in Marker_Moving)
57055705
*/
5706-
void SetMarkerMotion_Origin(su2double* val, unsigned short iMarkerMoving) {
5706+
void SetMarkerMotion_Origin(const su2double* val, unsigned short iMarkerMoving) {
57075707
for (int iDim = 0; iDim < 3; iDim++) MarkerMotion_Origin[3*iMarkerMoving + iDim] = val[iDim];
57085708
}
57095709

@@ -8338,7 +8338,7 @@ class CConfig {
83388338
* \brief Get the current number of non-physical reconstructions for 2nd-order upwinding.
83398339
* \return Current number of non-physical reconstructions for 2nd-order upwinding.
83408340
*/
8341-
unsigned long GetNonphysical_Reconstr(void) { return Nonphys_Reconstr; }
8341+
unsigned long GetNonphysical_Reconstr(void) const { return Nonphys_Reconstr; }
83428342

83438343
/*!
83448344
* \brief Given arrays x[1..n] and y[1..n] containing a tabulated function, i.e., yi = f(xi), with
@@ -8401,7 +8401,7 @@ class CConfig {
84018401
*
84028402
* \brief Set freestream turbonormal for initializing solution.
84038403
*/
8404-
void SetFreeStreamTurboNormal(su2double* turboNormal);
8404+
void SetFreeStreamTurboNormal(const su2double* turboNormal);
84058405

84068406
/*!
84078407
*

Common/include/CMultiGridQueue.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ using namespace std;
4141
*/
4242
class CMultiGridQueue {
4343
private:
44-
vector<CFastFindAndEraseQueue<> > QueueCV; /*!< \brief Queue structure to choose the next control volume in the agglomeration process. */
45-
vector<short> Priority; /*!< \brief The priority is based on the number of pre-agglomerated neighbors. */
46-
vector<char> RightCV; /*!< \brief In the lowest priority there are some CV that can not be agglomerated, this is the way to identify them. */
47-
const unsigned long nPoint = 0; /*!< \brief Total number of points. */
44+
using QueueType = CFastFindAndEraseQueue<>;
45+
vector<QueueType> QueueCV; /*!< \brief Queue structure to choose the next control volume in the agglomeration process. */
46+
vector<short> Priority; /*!< \brief The priority is based on the number of pre-agglomerated neighbors. */
47+
vector<char> RightCV; /*!< \brief In the lowest priority there are some CV that can not be agglomerated, this is the way to identify them. */
48+
const unsigned long nPoint = 0; /*!< \brief Total number of points. */
4849

4950
/*!
5051
* \brief Throw error with error message that the point is not in the priority list.

0 commit comments

Comments
 (0)