Skip to content
Snippets Groups Projects

BUG: RASModelVariables::SpalartAllmaras cannot be combined with an...

Merged Vaggelis Papoutsis requested to merge bug-1501-RASModelVariables-SpalartAllmaras into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -28,6 +28,7 @@ License
\*---------------------------------------------------------------------------*/
#include "SpalartAllmaras.H"
#include "wallDist.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@@ -77,7 +78,7 @@ SpalartAllmaras::SpalartAllmaras
nutPtr_ = mesh_.getObjectPtr<volScalarField>("nut");
hasDist_ = true;
dPtr_ = mesh_.getObjectPtr<volScalarField>("yWall");
dPtr_ = &(const_cast<volScalarField&>(wallDist::New(mesh_).y()));
allocateInitValues();
allocateMeanFields();
Loading