]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add explanatory comment to step-71. 17947/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 18 Dec 2024 22:27:24 +0000 (15:27 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 19 Dec 2024 22:33:42 +0000 (15:33 -0700)
examples/step-71/step-71.cc

index 08e1514014702c5366873cd0399119ca4b1c4383..2a34e2db9fa0dfa618cf901e7d4261600394a741 100644 (file)
@@ -1205,8 +1205,8 @@ namespace Step71
         const ConstitutiveParameters &constitutive_parameters)
       : Coupled_Magnetomechanical_Constitutive_Law_Base<dim>(
           constitutive_parameters)
-      , H_components(0)
-      , C_components(Tensor<1, dim>::n_independent_components)
+      , H_components(0)   // 'dim' components starting at vector component 0
+      , C_components(dim) // Starting after the 'dim' components of H_components
       , ad_helper(Tensor<1, dim>::n_independent_components +
                   SymmetricTensor<2, dim>::n_independent_components)
       , psi(0.0)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.