mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: constructor used assignment operator
This commit is contained in:
@ -82,7 +82,7 @@ void Foam::weightedFlux<Type>::makeDeltas() const
|
|||||||
const labelUList& owner = mesh.owner();
|
const labelUList& owner = mesh.owner();
|
||||||
const labelUList& neighbour = mesh.neighbour();
|
const labelUList& neighbour = mesh.neighbour();
|
||||||
|
|
||||||
const surfaceVectorField n = mesh.Sf()/mesh.magSf();
|
const surfaceVectorField n(mesh.Sf()/mesh.magSf());
|
||||||
|
|
||||||
const vectorField& C = mesh.cellCentres();
|
const vectorField& C = mesh.cellCentres();
|
||||||
const vectorField& Cf = mesh.faceCentres();
|
const vectorField& Cf = mesh.faceCentres();
|
||||||
@ -104,7 +104,7 @@ void Foam::weightedFlux<Type>::makeDeltas() const
|
|||||||
const fvPatch& currPatch = mesh.boundary()[patchi];
|
const fvPatch& currPatch = mesh.boundary()[patchi];
|
||||||
|
|
||||||
// Patch normal vector
|
// Patch normal vector
|
||||||
const vectorField nPatch = currPatch.Sf()/currPatch.magSf();
|
const vectorField nPatch(currPatch.Sf()/currPatch.magSf());
|
||||||
|
|
||||||
// Processor patch
|
// Processor patch
|
||||||
if (currPatch.coupled())
|
if (currPatch.coupled())
|
||||||
@ -201,11 +201,13 @@ Foam::weightedFlux<Type>::interpolate
|
|||||||
// e.g. processor patches have to calculated separately
|
// e.g. processor patches have to calculated separately
|
||||||
|
|
||||||
const labelUList& pOwner = mesh.boundary()[patchi].faceCells();
|
const labelUList& pOwner = mesh.boundary()[patchi].faceCells();
|
||||||
scalarField sigmaN =
|
scalarField sigmaN
|
||||||
sigma_.boundaryField()[patchi].patchNeighbourField();
|
(
|
||||||
|
sigma_.boundaryField()[patchi].patchNeighbourField()
|
||||||
|
);
|
||||||
|
|
||||||
Field<Type> vfO = vf.boundaryField()[patchi].patchInternalField();
|
Field<Type> vfO(vf.boundaryField()[patchi].patchInternalField());
|
||||||
Field<Type> vfN = vf.boundaryField()[patchi].patchNeighbourField();
|
Field<Type> vfN(vf.boundaryField()[patchi].patchNeighbourField());
|
||||||
|
|
||||||
forAll(pOwner, facei)
|
forAll(pOwner, facei)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user