11 params.addParam<TagName>(
"residual_vector_tag",
12 "the vector tag for the residual tag you will accumulate into");
13 params.set<
bool>(
"allow_other_flags_with_prekernels") =
true;
19 _residual_tag_name(getParam<TagName>(
"residual_vector_tag")),
36 "Should be computing jacobian but is not.");
42 auto & contribution_vec = nl.
getVector(contribution_tag_id);
45 contribution_vec.
zero();
47 contribution_vec.close();
51 auto & residual_vec = nl.getVector(nl.residualVectorTag());
53 residual_vec += contribution_vec;
const ExecFlagType EXEC_TIMESTEP_BEGIN
const ExecFlagType EXEC_NONLINEAR
registerMooseObject("RayTracingTestApp", SingleTraceLineSourceTest)
NonlinearSystemBase & getNonlinearSystemBase(const unsigned int sys_num)
virtual void execute() override
Executes the study (generates and propagates Rays)
A RayTracingStudy in which the user defines a set of Rays that can be traced repeatedly.
static InputParameters validParams()
const ExecFlagType & _current_execute_flag
const TagName & _residual_tag_name
the name of the tag that stores the residuals calculated by ray kernels
static InputParameters validParams()
virtual void execute() override
Executes the study (generates and propagates Rays)
bool _has_traced
whether or not the raytracing study has moved the rays on the current time step
SingleTraceLineSourceTest(const InputParameters ¶meters)
const bool & currentlyComputingJacobian() const
virtual TagID getVectorTagID(const TagName &tag_name) const
unsigned int number() const
virtual NumericVector< Number > & getVector(const std::string &name)
FEProblemBase & _fe_problem