32template<
class returnType,
class sourceType,
class castType>
38 bool (castType::*hasFunction)()
const
43 auto& dJtotdvar = tdJtotdvar.ref();
46 for (sourceType& funcI : sourceList)
49 if ((cfuncI.*hasFunction)())
52 (cfuncI.*boundaryFunction)(
patch_.index());
53 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), bool(castType::*hasFunction)() const)
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...
A class for managing temporary objects.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
static constexpr const zero Zero
Global zero (0).