STY: Deleting unused reference to Field in lduCalculatedProcessorField

This commit is contained in:
sergio
2022-07-07 15:44:50 -07:00
parent 490f02fad4
commit da0b241de6
3 changed files with 5 additions and 12 deletions

View File

@ -32,13 +32,11 @@ License
template<class Type> template<class Type>
Foam::lduCalculatedProcessorField<Type>::lduCalculatedProcessorField Foam::lduCalculatedProcessorField<Type>::lduCalculatedProcessorField
( (
const lduInterface& interface, const lduInterface& interface
const Field<Type>& iF
) )
: :
LduInterfaceField<Type>(interface), LduInterfaceField<Type>(interface),
procInterface_(refCast<const lduPrimitiveProcessorInterface>(interface)), procInterface_(refCast<const lduPrimitiveProcessorInterface>(interface)),
field_(iF),
sendBuf_(procInterface_.faceCells().size()), sendBuf_(procInterface_.faceCells().size()),
receiveBuf_(procInterface_.faceCells().size()), receiveBuf_(procInterface_.faceCells().size()),
scalarSendBuf_(procInterface_.faceCells().size()), scalarSendBuf_(procInterface_.faceCells().size()),
@ -56,7 +54,6 @@ Foam::lduCalculatedProcessorField<Type>::lduCalculatedProcessorField
: :
LduInterfaceField<Type>(refCast<const lduInterface>(ptf)), LduInterfaceField<Type>(refCast<const lduInterface>(ptf)),
procInterface_(ptf.procInterface_), procInterface_(ptf.procInterface_),
field_(ptf.field_),
sendBuf_(procInterface_.faceCells().size()), sendBuf_(procInterface_.faceCells().size()),
receiveBuf_(procInterface_.faceCells().size()), receiveBuf_(procInterface_.faceCells().size()),
scalarSendBuf_(procInterface_.faceCells().size()), scalarSendBuf_(procInterface_.faceCells().size()),

View File

@ -30,8 +30,7 @@ Group
grpGenericBoundaryConditions grpGenericBoundaryConditions
Description Description
A lduProcessorField type bypassing coupledFvPatchField and holding A lduProcessorField type bypassing coupledFvPatchField
a reference to the Field<Type>.
Used to add updateInterfaceMatrix capabilities to a lduMatrix Used to add updateInterfaceMatrix capabilities to a lduMatrix
which is fully uncoupled from the fvMesh. which is fully uncoupled from the fvMesh.
@ -72,8 +71,6 @@ protected:
//- Local reference cast into the interface //- Local reference cast into the interface
const lduPrimitiveProcessorInterface& procInterface_; const lduPrimitiveProcessorInterface& procInterface_;
//- Local Field
const Field<Type>& field_;
// Sending and receiving // Sending and receiving
@ -118,8 +115,8 @@ public:
//- Construct from patch and internal field //- Construct from patch and internal field
lduCalculatedProcessorField lduCalculatedProcessorField
( (
const lduInterface& interface, const lduInterface& interface
const Field<Type>& //const Field<Type>&
); );
//- Construct as copy //- Construct as copy

View File

@ -894,8 +894,7 @@ void Foam::radiation::viewFactor::calculate()
i, i,
new lduCalculatedProcessorField<scalar> new lduCalculatedProcessorField<scalar>
( (
lduPtr_().interfaces()[i], lduPtr_().interfaces()[i]
qrBandI_[bandI]
) )
); );
} }