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 "FVInterpolationMethodInterface.h" 11 : 12 : #include "FVAdvectedInterpolationMethod.h" 13 : #include "FVFaceInterpolationMethod.h" 14 : #include "FEProblemBase.h" 15 : 16 : InputParameters 17 0 : FVInterpolationMethodInterface::validParams() 18 : { 19 0 : return emptyInputParameters(); 20 : } 21 : 22 1116 : FVInterpolationMethodInterface::FVInterpolationMethodInterface(const MooseObject * moose_object) 23 1116 : : _fvim_params(moose_object->parameters()), 24 4464 : _fvim_feproblem(*_fvim_params.getCheckedPointerParam<FEProblemBase *>("_fe_problem_base")), 25 1116 : _fvim_tid(_fvim_params.have_parameter<THREAD_ID>("_tid") ? _fvim_params.get<THREAD_ID>("_tid") 26 : : 0) 27 : { 28 1116 : } 29 : 30 : const FVFaceInterpolationMethod & 31 0 : FVInterpolationMethodInterface::getFVFaceInterpolationMethod( 32 : const InterpolationMethodName & name) const 33 : { 34 0 : return _fvim_feproblem.getFVFaceInterpolationMethod(name, _fvim_tid); 35 : } 36 : 37 : const FVAdvectedInterpolationMethod & 38 571 : FVInterpolationMethodInterface::getFVAdvectedInterpolationMethod( 39 : const InterpolationMethodName & name) const 40 : { 41 571 : return _fvim_feproblem.getFVAdvectedInterpolationMethod(name, _fvim_tid); 42 : } 43 : 44 : bool 45 0 : FVInterpolationMethodInterface::hasFVInterpolationMethod(const InterpolationMethodName & name) const 46 : { 47 0 : return _fvim_feproblem.hasFVInterpolationMethod(name); 48 : }