]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
we indeed checked for a wrong flag here
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 23 Mar 2012 21:56:27 +0000 (21:56 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 23 Mar 2012 21:56:27 +0000 (21:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@25322 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_values.cc

index 9d4701a991ca53aaea77ca81696de8d1a0d237b5..71ed640d7376bc7633b7f1e15703ffb052bbe136 100644 (file)
@@ -2513,7 +2513,7 @@ void FEValuesBase<dim,spacedim>::get_function_gradients (
                                   // loops filling all components
   const unsigned int component_multiple = result_components / n_components;
 
-  Assert (this->update_flags & update_values, ExcAccessToUninitializedField());
+  Assert (this->update_flags & update_gradients, ExcAccessToUninitializedField());
 
                                   // initialize with zero
   for (unsigned i=0;i<gradients.size();++i)

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.