]> https://gitweb.dealii.org/ - release-papers.git/commitdiff
Be more verbose on hp interface.
authorMarc Fehling <marc.fehling@gmx.net>
Mon, 1 Jun 2020 18:22:31 +0000 (20:22 +0200)
committerMarc Fehling <marc.fehling@gmx.net>
Mon, 1 Jun 2020 18:50:22 +0000 (20:50 +0200)
9.2/paper.tex

index 0466ab22879526a352c5ca30782a365f98e4b348..48f38ca96ea73d078c229ee271feefdd89cae8d4 100644 (file)
@@ -566,11 +566,10 @@ Consider the following (incomplete) listing as an example: We estimate both erro
 smoothness of the finite element approximation. Further, we flag certain fractions of
 cells with the highest and lowest errors for refinement and coarsening, respectively
 (here: 30\%/3\%). From those cells listed for adaptation, we designate a subset
-for $h$- and $p$-adaptation (here: 10\%/90\%).
-\todo[inline]{Timo asks: is this a typo in the code where you say 0.9, 0.9?}
-The parameters of the corresponding
+for $h$- and $p$-adaptation. The parameters of the corresponding
 \texttt{hp::Refinement} function specify the fraction of cells to be $p$-adapted from
-those subsets flagged for refinement and coarsening, respectively.
+those subsets flagged for refinement and coarsening, respectively (here: 90\%/80\%),
+while the remaining fraction will be $h$-adapted (here: 10\%/20\%).
 \begin{c++}
 Vector<float> estimated_error_per_cell(n_active_cells);
 KellyErrorEstimator::estimate(
@@ -582,7 +581,7 @@ Vector<float> estimated_smoothness_per_cell(n_active_cells);
 SmoothnessEstimator::Legendre::coefficient_decay(
 ..., dof_handler, solution, estimated_smoothness_per_cell);
 hp::Refinement::p_adaptivity_fixed_number(
-dof_handler, estimated_smoothness_per_cell, 0.9, 0.9);
+dof_handler, estimated_smoothness_per_cell, 0.9, 0.8);
 hp::Refinement::choose_p_over_h(dof_handler);
 
 triangulation.execute_coarsening_and_refinement();

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.