Skip to content

Commit

Permalink
Fixed an issue in regModel for solids.
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe committed Apr 11, 2024
1 parent 5986311 commit 4a437c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/adjoint/DARegression/DARegression.C
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ void DARegression::calcInputFeatures()
}
else if (inputName == "ReWall")
{
#ifndef SolidDASolver
// wall distance based Reynolds number
const volScalarField& y = mesh_.thisDb().lookupObject<volScalarField>("yWall");
const volScalarField& k = mesh_.thisDb().lookupObject<volScalarField>("k");
Expand All @@ -244,6 +245,7 @@ void DARegression::calcInputFeatures()
features_[idxI][cellI] = (val + inputShift_[idxI]) * inputScale_[idxI];
}
features_[idxI].correctBoundaryConditions();
#endif
}
else if (inputName == "CoP")
{
Expand Down

0 comments on commit 4a437c5

Please sign in to comment.