Skip to content

Commit d4ee84b

Browse files
author
rois1995
committed
same fix
1 parent 89a559a commit d4ee84b

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

SU2_CFD/include/variables/CFlowVariable.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ class CFlowVariable : public CVariable {
260260
* \param[in] iPoint - Point index.
261261
* \return Value of magnitude.
262262
*/
263-
inline su2double GetStrainMag(unsigned long iPoint) const { return StrainMag(iPoint); }
263+
inline su2double GetStrainMag(unsigned long iPoint) const final { return StrainMag(iPoint); }
264264

265265
/*!
266266
* \brief Get the entire vector of the rate of strain magnitude.
267267
* \return Vector of magnitudes.
268268
*/
269-
inline su2activevector& GetStrainMag() { return StrainMag; }
269+
inline su2activevector& GetStrainMag() final { return StrainMag; }
270270
};

SU2_CFD/include/variables/CVariable.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,19 @@ class CVariable {
13861386
*/
13871387
inline virtual su2double *GetdTvedU(unsigned long iPoint) { return nullptr; }
13881388

1389+
/*!
1390+
* \brief Get the magnitude of rate of strain.
1391+
* \param[in] iPoint - Point index.
1392+
* \return Value of magnitude.
1393+
*/
1394+
inline virtual su2double GetStrainMag(unsigned long iPoint) const {}
1395+
1396+
/*!
1397+
* \brief Get the entire vector of the rate of strain magnitude.
1398+
* \return Vector of magnitudes.
1399+
*/
1400+
inline virtual su2activevector& GetStrainMag() {}
1401+
13891402
/*!
13901403
* \brief A virtual member.
13911404
*/

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
15051505
const unsigned long iPoint) {
15061506
const auto* turb_solver = solver[TURB_SOL];
15071507
const auto* trans_solver = solver[TRANS_SOL];
1508-
const auto* Node_Flow = su2staticcast_p<CFlowVariable*>(solver[FLOW_SOL]->GetNodes());
1508+
const auto* Node_Flow = solver[FLOW_SOL]->GetNodes();
15091509
const auto* Node_Turb = (config->GetKind_Turb_Model() != TURB_MODEL::NONE) ? turb_solver->GetNodes() : nullptr;
15101510
const auto* Node_Trans = (config->GetKind_Trans_Model() != TURB_TRANS_MODEL::NONE) ? trans_solver->GetNodes() : nullptr;
15111511
const auto* Node_Geo = geometry->nodes;

0 commit comments

Comments
 (0)