mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fvcCellReduce: Correct signature and implementation of 'cellReduce' of a 'tmp' field
This commit is contained in:
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user