]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove a block of code that should not get called, and replace it by a
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Oct 2002 15:42:34 +0000 (15:42 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Oct 2002 15:42:34 +0000 (15:42 +0000)
comment and an assertion to this effect.

git-svn-id: https://svn.dealii.org/trunk@6635 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_system.cc

index 0579ba33a5627761ef0d0174eec3eb951d03b397..4b23850bf9a834a7180f46f8853561a3c3295df5 100644 (file)
@@ -800,11 +800,18 @@ FESystem<dim>::compute_fill (const Mapping<dim>                   &mapping,
                       for (unsigned int q=0; q<n_q_points; ++q)
                         data.shape_gradients[out_index+s][q]=
                           base_data.shape_gradients[in_index+s][q];
-                    
-                    if (base_flags & update_second_derivatives)
-                      for (unsigned int q=0; q<n_q_points; ++q)
-                        data.shape_2nd_derivatives[out_index+s][q]=
-                          base_data.shape_2nd_derivatives[in_index+s][q];
+
+                                                     // _we_ handle
+                                                     // computation of
+                                                     // second
+                                                     // derivatives,
+                                                     // so the base
+                                                     // elements
+                                                     // should not
+                                                     // have computed
+                                                     // them!
+                    Assert (!(base_flags & update_second_derivatives),
+                            ExcInternalError());
                   };
               };
         };

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.