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;
virtual TagID getVectorTagID(const TagName &tag_name) const
SingleTraceLineSourceTest(const InputParameters ¶meters)
const ExecFlagType & _current_execute_flag
const TagName & _residual_tag_name
the name of the tag that stores the residuals calculated by ray kernels
bool _has_traced
whether or not the raytracing study has moved the rays on the current time step
const ExecFlagType EXEC_TIMESTEP_BEGIN
registerMooseObject("RayTracingTestApp", SingleTraceLineSourceTest)
virtual void execute() override
Executes the study (generates and propagates Rays)
NonlinearSystemBase & getNonlinearSystemBase(const unsigned int sys_num)
unsigned int number() const
static InputParameters validParams()
const ExecFlagType EXEC_NONLINEAR
static InputParameters validParams()
FEProblemBase & _fe_problem
const bool & currentlyComputingJacobian() const
A RayTracingStudy in which the user defines a set of Rays that can be traced repeatedly.
virtual NumericVector< Number > & getVector(const std::string &name)
virtual void execute() override
Executes the study (generates and propagates Rays)