Code simplification: GeometricField<Type, fvPatchField, volMesh> -> VolField<Type>
Using the VolField<Type> partial specialisation of GeometricField<Type, fvPatchField, volMesh> simplifies the code and improves readability.
This commit is contained in:
@ -228,7 +228,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::MPLIC::surfaceAlpha
|
||||
|
||||
Foam::tmp<Foam::surfaceScalarField> Foam::MPLIC::interpolate
|
||||
(
|
||||
const GeometricField<scalar, fvPatchField, volMesh>& vf
|
||||
const VolField<scalar>& vf
|
||||
) const
|
||||
{
|
||||
tmp<surfaceScalarField> tvff(upwind<scalar>(mesh(), phi_).interpolate(vf));
|
||||
|
||||
@ -143,7 +143,7 @@ public:
|
||||
//- Return the interpolation weighting factors
|
||||
virtual tmp<surfaceScalarField> weights
|
||||
(
|
||||
const GeometricField<scalar, fvPatchField, volMesh>&
|
||||
const VolField<scalar>&
|
||||
) const
|
||||
{
|
||||
NotImplemented;
|
||||
@ -154,7 +154,7 @@ public:
|
||||
//- Return the face-interpolate of the given cell field
|
||||
virtual tmp<surfaceScalarField> interpolate
|
||||
(
|
||||
const GeometricField<scalar, fvPatchField, volMesh>& vf
|
||||
const VolField<scalar>& vf
|
||||
) const;
|
||||
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ namespace Foam
|
||||
|
||||
Foam::tmp<Foam::surfaceScalarField> Foam::MPLICU::interpolate
|
||||
(
|
||||
const GeometricField<scalar, fvPatchField, volMesh>& vf
|
||||
const VolField<scalar>& vf
|
||||
) const
|
||||
{
|
||||
tmp<surfaceScalarField> tvff(upwind<scalar>(mesh(), phi_).interpolate(vf));
|
||||
|
||||
@ -113,7 +113,7 @@ public:
|
||||
//- Return the interpolation weighting factors
|
||||
virtual tmp<surfaceScalarField> weights
|
||||
(
|
||||
const GeometricField<scalar, fvPatchField, volMesh>& vf
|
||||
const VolField<scalar>& vf
|
||||
) const
|
||||
{
|
||||
NotImplemented;
|
||||
@ -124,7 +124,7 @@ public:
|
||||
//- Return the face-interpolate of the given cell field
|
||||
virtual tmp<surfaceScalarField> interpolate
|
||||
(
|
||||
const GeometricField<scalar, fvPatchField, volMesh>& vf
|
||||
const VolField<scalar>& vf
|
||||
) const;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user