void Foam::AveragingMethods::Basic<Type>::updateGrad() { GeometricField<Type, fvPatchField, volMesh> tempData ( IOobject ( "BasicAverage::Data", this->mesh_, IOobject::NO_READ, IOobject::NO_WRITE, false ), this->mesh_, dimensioned<Type>("zero", dimless, Zero), zeroGradientFvPatchField<Type>::typeName ); tempData.primitiveFieldRef() = data_; tempData.correctBoundaryConditions(); dataGrad_ = fvc::grad(tempData)->primitiveField(); }