20 params.addParam<TagName>(
"residual_vector_tag",
21 "the vector tag for the residual tag you will accumulate into");
22 params.set<
bool>(
"allow_other_flags_with_prekernels") =
true;
28 _residual_tag_name(getParam<TagName>(
"residual_vector_tag")),
45 "Should be computing jacobian but is not.");
51 auto & contribution_vec = nl.
getVector(contribution_tag_id);
54 contribution_vec.
zero();
56 contribution_vec.close();
60 auto & residual_vec = nl.getVector(nl.residualVectorTag());
62 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