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>
Foam::lduCalculatedProcessorField<Type>::lduCalculatedProcessorField
(
const lduInterface& interface,
const Field<Type>& iF
const lduInterface& interface
)
:
LduInterfaceField<Type>(interface),
procInterface_(refCast<const lduPrimitiveProcessorInterface>(interface)),
field_(iF),
sendBuf_(procInterface_.faceCells().size()),
receiveBuf_(procInterface_.faceCells().size()),
scalarSendBuf_(procInterface_.faceCells().size()),
@ -56,7 +54,6 @@ Foam::lduCalculatedProcessorField<Type>::lduCalculatedProcessorField
:
LduInterfaceField<Type>(refCast<const lduInterface>(ptf)),
procInterface_(ptf.procInterface_),
field_(ptf.field_),
sendBuf_(procInterface_.faceCells().size()),
receiveBuf_(procInterface_.faceCells().size()),
scalarSendBuf_(procInterface_.faceCells().size()),

View File

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

View File

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