32template<
class returnType,
class sourceType,
class castType>
42 auto& dJtotdvar = tdJtotdvar.ref();
45 for (sourceType& funcI : sourceList)
47 castType& cfuncI = refCast<castType>(funcI);
50 dJtotdvar += cfuncI.weight()*dJdvar;
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
tmp< Field< returnType > > sumContributions(PtrList< sourceType > &sourceList, const fvPatchField< returnType > &(castType::*boundaryFunction)(const label))
static autoPtr< boundaryAdjointContribution > New(const word &managerName, const word &adjointSolverName, const word &simulationType, const fvPatch &patch)
Return a reference to the selected turbulence model.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual label size() const
Return size.
label index() const
Return the index of this patch in the fvBoundaryMesh.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)