25#include "neml2/models/CopyVariable.h"
29#define COPYVARIABLE_REGISTER_FIXEDDIMTENSOR(T) register_NEML2_object(Copy##T)
30FOR_ALL_FIXEDDIMTENSOR(COPYVARIABLE_REGISTER_FIXEDDIMTENSOR);
37 options.
doc() =
"Copy the value from one variable to another.";
40 options.
set(
"from").doc() =
"Variable to copy value from";
43 options.
set(
"to").doc() =
"Variable to copy value to";
51 _to(declare_output_variable<T>(
"to")),
52 _from(declare_input_variable<T>(
"from"))
64 _to.d(_from) = T::identity_map(options());
72#define COPYVARIABLE_INSTANTIATE_FIXEDDIMTENSOR(T) template class CopyVariable<T>
73FOR_ALL_FIXEDDIMTENSOR(COPYVARIABLE_INSTANTIATE_FIXEDDIMTENSOR);
CopyVariable(const OptionSet &options)
Definition CopyVariable.cxx:49
static OptionSet expected_options()
Definition CopyVariable.cxx:34
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition CopyVariable.cxx:58
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
The accessor containing all the information needed to access an item in a LabeledAxis.
Definition LabeledAxisAccessor.h:44
The base class for all constitutive models.
Definition Model.h:53
static OptionSet expected_options()
Definition Model.cxx:33
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
const std::string & doc() const
A readonly reference to the option set's docstring.
Definition OptionSet.h:91
T & set(const std::string &)
Definition OptionSet.h:436
Definition CrossRef.cxx:32