]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Extend error estimator for a variable coefficient.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 3 Aug 1998 08:00:27 +0000 (08:00 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 3 Aug 1998 08:00:27 +0000 (08:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@467 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc
tests/big-tests/error-estimation/error-estimation.cc

index d3107985f4c3e5cb3a4987f95d771d98f0b8d32e..8549548ad2caeceee7ae05d79b0520abfc29f756 100644 (file)
@@ -481,7 +481,9 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
       ee.estimate_error (*dof, eq, fe, *boundary,
                         KellyErrorEstimator<dim>::FunctionMap(),
                         solution,
-                        estimated_error_per_cell);
+                        estimated_error_per_cell,
+                        ((prm.get("Test case")=="Kink") ?
+                         kink_coefficient : 0 ));
       cout << estimated_error_per_cell.l2_norm() << endl;
       estimated_error.push_back (estimated_error_per_cell.l2_norm());
 
index d3107985f4c3e5cb3a4987f95d771d98f0b8d32e..8549548ad2caeceee7ae05d79b0520abfc29f756 100644 (file)
@@ -481,7 +481,9 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
       ee.estimate_error (*dof, eq, fe, *boundary,
                         KellyErrorEstimator<dim>::FunctionMap(),
                         solution,
-                        estimated_error_per_cell);
+                        estimated_error_per_cell,
+                        ((prm.get("Test case")=="Kink") ?
+                         kink_coefficient : 0 ));
       cout << estimated_error_per_cell.l2_norm() << endl;
       estimated_error.push_back (estimated_error_per_cell.l2_norm());
 

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.