waveModels: Updated to compile single-precision
This commit is contained in:
@ -91,7 +91,7 @@ Foam::tmp<Foam::vector2DField> Foam::waveModels::Airy::vi
|
||||
else
|
||||
{
|
||||
const scalar kd = k()*depth();
|
||||
const scalarField kdz(max(0.0, kd - mag(kz)));
|
||||
const scalarField kdz(max(scalar(0), kd - mag(kz)));
|
||||
return i*zip(cosh(i*kdz)*cos(i*phi), sinh(i*kdz)*sin(i*phi))/sinh(kd);
|
||||
}
|
||||
}
|
||||
|
||||
@ -132,7 +132,7 @@ Foam::tmp<Foam::vector2DField> Foam::waveModels::solitary::velocity
|
||||
) const
|
||||
{
|
||||
const scalar A = alpha(t);
|
||||
const scalarField Z(max(0.0, 1 - mag(xz.component(1)/depth())));
|
||||
const scalarField Z(max(scalar(0), 1 - mag(xz.component(1)/depth())));
|
||||
const scalarField P(Pi(t, u, xz.component(0)));
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user