]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable one call while the class that it calls is disabled for hp as well.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 14 Feb 2006 02:50:46 +0000 (02:50 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 14 Feb 2006 02:50:46 +0000 (02:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@12383 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-21/step-21.cc

index 942287a0e0ad353eecfbcaf6235d84600c088701..6a914020d4116e94de9ff503b749be6899a5be14 100644 (file)
@@ -1609,11 +1609,19 @@ void DGMethod<dim>::refine_grid ()
 
                                   // Now the approximate gradients
                                   // are computed
-  DerivativeApproximation::approximate_gradient (mapping_collection[0],
-                                                dof_handler,
-                                                solution2,
-                                                gradient_indicator);
+  
+//TODO: disable this for the moment and replace by some more or less
+//random refinement. we need to do this since DerivativeApproximation
+//isn't really ready yet for hp
+  
+//   DerivativeApproximation::approximate_gradient (mapping_collection[0],
+//                                              dof_handler,
+//                                              solution2,
+//                                              gradient_indicator);
 
+  for (unsigned int i=0; i<gradient_indicator.size(); ++i)
+    gradient_indicator(i) = std::sin(1.*i);
+  
                                   // and they are cell-wise scaled by
                                   // the factor $h^{1+d/2}$
   typename hp::DoFHandler<dim>::active_cell_iterator

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.