Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #include "FVFaceInterpolationMethod.h" 11 : 12 : Real 13 0 : FVFaceInterpolationMethod::interpolate(const Moose::FunctorBase<Real> & functor, 14 : const FaceInfo & face, 15 : const Moose::StateArg & state) const 16 : { 17 : mooseAssert(face.neighborPtr(), 18 : "Face interpolation with a Moose functor requires a two-sided internal face."); 19 : 20 0 : const Real elem_value = functor(Moose::ElemArg{face.elemPtr(), false}, state); 21 0 : const Real neighbor_value = functor(Moose::ElemArg{face.neighborPtr(), false}, state); 22 0 : return interpolate(face, elem_value, neighbor_value); 23 : }