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

This commit is contained in:
Henry Weller
2016-05-22 17:07:53 +01:00
parent 45e3b49c0d
commit e825f1ece0

View File

@ -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
// ************************************************************************* //