www.mooseframework.org
ADTimeKernel.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "ADTimeKernel.h"
11 
12 // MOOSE includes
13 #include "Assembly.h"
14 #include "MooseVariableFE.h"
15 #include "SystemBase.h"
16 
17 #include "libmesh/quadrature.h"
18 
19 template <typename T>
22 {
24  params.set<MultiMooseEnum>("vector_tags") = "time";
25  params.set<MultiMooseEnum>("matrix_tags") = "system time";
26  return params;
27 }
28 
29 template <typename T>
31  : ADKernelTempl<T>(parameters), _u_dot(_var.adUDot())
32 {
33 }
34 
35 template class ADTimeKernelTempl<Real>;
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
Definition: ADKernel.C:23
All AD time kernels should inherit from this class.
Definition: ADTimeKernel.h:19
ADTimeKernelTempl(const InputParameters &parameters)
Definition: ADTimeKernel.C:30
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
static InputParameters validParams()
Definition: ADTimeKernel.C:21