BUG: wave model active absorption loop should be over all patch faces

This commit is contained in:
Andrew Heather
2016-11-23 10:41:37 +00:00
parent a895f20759
commit 0b83cebd12

View File

@ -370,9 +370,7 @@ void Foam::waveModel::correct(const scalar t)
{ {
const scalarField activeLevel(this->waterLevel()); const scalarField activeLevel(this->waterLevel());
if (patch_.size()) forAll(U_, facei)
{
forAll(activeLevel, facei)
{ {
const label paddlei = faceToPaddle_[facei]; const label paddlei = faceToPaddle_[facei];
@ -386,8 +384,7 @@ void Foam::waveModel::correct(const scalar t)
} }
else else
{ {
U_[facei] = vector::zero; U_[facei].x() = 0;
}
} }
} }
} }