1 #ifndef Sacado_auxiliary_functions_H 2 #define Sacado_auxiliary_functions_H 4 #include <deal.II/base/symmetric_tensor.h> 12 SymmetricTensor<2,dim,fad_double>
init_Sacado(
const SymmetricTensor<2,dim,double> &SymTensor)
14 SymmetricTensor<2,dim,fad_double> SymTensor_Sacado;
15 for (
unsigned int i=0; i<dim; ++i)
16 for (
unsigned int j=i; j<dim; ++j )
17 SymTensor_Sacado[i][j] = SymTensor[i][j];
19 return SymTensor_Sacado;
26 SymmetricTensor<2,dim> SymTensor;
28 for (
unsigned int i=0; i<dim; ++i)
29 for (
unsigned int j=i; j<dim; ++j )
30 SymTensor[i][j] = SymTensor_Sacado[i][j].val();
37 Vector<fad_double>
reinit(
unsigned int a,
bool b)
39 Vector<fad_double> abc (5);
43 #endif //Sacado_auxiliary_functions_H Vector< fad_double > reinit(unsigned int a, bool b)
Definition: Sacado-auxiliary_functions.h:37
SymmetricTensor< 2, dim, fad_double > init_Sacado(const SymmetricTensor< 2, dim, double > &SymTensor)
Definition: Sacado-auxiliary_functions.h:12
SymmetricTensor< 2, dim > extract_value_from_Sacado(const SymmetricTensor< 2, dim, fad_double > &SymTensor_Sacado)
Definition: Sacado-auxiliary_functions.h:24
Sacado::Fad::DFad< double > fad_double
Definition: Sacado-auxiliary_functions.h:7