Skip to content

Commit ac2078c

Browse files
author
rois1995
committed
- Re-introduced the virtual function
1 parent 37a866f commit ac2078c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

SU2_CFD/include/variables/CTurbVariable.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ class CTurbVariable : public CScalarVariable {
108108
* \param[in] iPoint - Point index.
109109
* \return the value of the desired grid size for Scale Resolving Simulations.
110110
*/
111-
inline su2double GetSRSGridSize(unsigned long iPoint) const { return SRSGridSize(iPoint); }
111+
inline su2double GetSRSGridSize(unsigned long iPoint) const final { return SRSGridSize(iPoint); }
112112

113113
/*!
114114
* \brief Set the value of the desired grid size for Scale Resolving Simulations.
115115
* \param[in] iPoint - Point index.
116116
* \param[in] val_muT - Value of the desired grid size for Scale Resolving Simulations.
117117
*/
118-
inline void SetSRSGridSize(unsigned long iPoint, su2double val_gridSize) { SRSGridSize(iPoint) = val_gridSize; }
118+
inline void SetSRSGridSize(unsigned long iPoint, su2double val_gridSize) final { SRSGridSize(iPoint) = val_gridSize; }
119119

120120
/*!
121121
* \brief Get the DES length scale

SU2_CFD/include/variables/CVariable.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,6 +1721,18 @@ class CVariable {
17211721
*/
17221722
inline virtual void SetmuT(unsigned long iPoint, su2double val_muT) {}
17231723

1724+
/*!
1725+
* \brief Get the value of the desired grid size for Scale Resolving Simulations.
1726+
* \return the value of the desired grid size for Scale Resolving Simulations.
1727+
*/
1728+
inline virtual su2double GetSRSGridSize(unsigned long iPoint) const { return 0.0; }
1729+
1730+
/*!
1731+
* \brief Set the value of the desired grid size for Scale Resolving Simulations.
1732+
* \param[in] val_gridSize
1733+
*/
1734+
inline virtual void SetSRSGridSize(unsigned long iPoint, su2double val_gridSize) {}
1735+
17241736
/*!
17251737
* \brief Set the value of the turbulence index.
17261738
* \param[in] val_turb_index - turbulence index

0 commit comments

Comments
 (0)