@@ -53,7 +53,7 @@ namespace aspect
5353 Assert (std::isfinite (in.strain_rate [i].norm ()),
5454 ExcMessage (" Invalid strain_rate in the MaterialModelInputs. This is likely because it was "
5555 " not filled by the caller." ));
56- const SymmetricTensor<2 ,dim> strain_rate_deviator = deviator (in.strain_rate [i]);
56+ const SymmetricTensor<2 ,dim> strain_rate_deviator = Utilities::Tensors:: deviator (in.strain_rate [i]);
5757
5858 // For the very first time this function is called
5959 // (the first iteration of the first timestep), this function is called
@@ -64,8 +64,8 @@ namespace aspect
6464 // In later iterations and timesteps we calculate the second moment
6565 // invariant of the deviatoric strain rate tensor.
6666 // This is equal to the negative of the second principle
67- // invariant of the deviatoric strain rate (calculated with the function second_invariant),
68- // as shown in Appendix A of Zienkiewicz and Taylor (Solid Mechanics, 2000).
67+ // invariant of the deviatoric strain rate, as shown in Appendix A of
68+ // Zienkiewicz and Taylor (Solid Mechanics, 2000).
6969 //
7070 // The negative of the second principle invariant is equal to 0.5 e_dot_dev_ij e_dot_dev_ji,
7171 // where e_dot_dev is the deviatoric strain rate tensor. The square root of this quantity
@@ -78,7 +78,7 @@ namespace aspect
7878 // initialized. This might mean that we are
7979 // in a unit test, or at least that we can't
8080 // rely on any simulator information
81- std::fabs (second_invariant (strain_rate_deviator))
81+ std::fabs (Utilities::Tensors::deviatoric_tensor_inv2 (strain_rate_deviator))
8282 :
8383 // simulator object is available, but we need to treat the
8484 // first time step separately
@@ -88,7 +88,7 @@ namespace aspect
8888 ?
8989 reference_strain_rate * reference_strain_rate
9090 :
91- std::fabs (second_invariant (strain_rate_deviator))));
91+ std::fabs (Utilities::Tensors::deviatoric_tensor_inv2 (strain_rate_deviator))));
9292
9393 const double strain_rate_effective = edot_ii_strict;
9494
0 commit comments