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 "IntegralRayKernelBase.h" 11 : 12 : // MOOSE includes 13 : #include "Assembly.h" 14 : #include "NonlinearSystemBase.h" 15 : 16 : InputParameters 17 1527 : IntegralRayKernelBase::validParams() 18 : { 19 1527 : auto params = RayKernelBase::validParams(); 20 : 21 : // Set so that in the case that a derived class doesn't have any coupled 22 : // variables or materials that the RayTracingStudy knows that it still needs 23 : // qps and weights to be reinit on its segment 24 1527 : params.set<bool>("_need_segment_reinit") = true; 25 : 26 1527 : return params; 27 0 : } 28 : 29 826 : IntegralRayKernelBase::IntegralRayKernelBase(const InputParameters & params) 30 : : RayKernelBase(params), 31 826 : _assembly(_fe_problem.assembly(_tid, _nl->number())), 32 826 : _q_point(_assembly.qPoints()), 33 826 : _JxW(_assembly.JxW()) 34 : { 35 826 : } 36 : 37 : void 38 8009 : IntegralRayKernelBase::preExecuteStudy() 39 : { 40 : mooseAssert(needSegmentReinit(), "Must be true"); 41 8009 : }