Skip to content

Commit 4a437c5

Browse files
committed
Fixed an issue in regModel for solids.
1 parent 5986311 commit 4a437c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/adjoint/DARegression/DARegression.C

+2
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ void DARegression::calcInputFeatures()
233233
}
234234
else if (inputName == "ReWall")
235235
{
236+
#ifndef SolidDASolver
236237
// wall distance based Reynolds number
237238
const volScalarField& y = mesh_.thisDb().lookupObject<volScalarField>("yWall");
238239
const volScalarField& k = mesh_.thisDb().lookupObject<volScalarField>("k");
@@ -244,6 +245,7 @@ void DARegression::calcInputFeatures()
244245
features_[idxI][cellI] = (val + inputShift_[idxI]) * inputScale_[idxI];
245246
}
246247
features_[idxI].correctBoundaryConditions();
248+
#endif
247249
}
248250
else if (inputName == "CoP")
249251
{

0 commit comments

Comments
 (0)