Commit eb79a51f authored by Henry Weller's avatar Henry Weller
Browse files

fvcCellReduce: Correct signature and implementation of 'cellReduce' of a 'tmp' field

parent 3c44f08d
......@@ -31,18 +31,9 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace fvc
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type, class CombineOp>
tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>>
Foam::fvc::cellReduce
(
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf,
const CombineOp& cop
......@@ -93,14 +84,14 @@ tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce
template<class Type, class CombineOp>
tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>>
Foam::fvc::cellReduce
(
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>&> tssf,
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf,
const CombineOp& cop
)
{
tmp<GeometricField<Type, fvPatchField, volMesh>>
tvf(cellReduce(cop, tssf));
tmp<GeometricField<Type, fvPatchField, volMesh>> tvf(cellReduce(tssf, cop));
tssf.clear();
......@@ -108,12 +99,4 @@ tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace fvc
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment