]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Chose a quadrature formula compatible with the fe_degree
authorAndrea Bonito <andrea.bonito.ch@gmail.com>
Tue, 1 Mar 2011 22:48:03 +0000 (22:48 +0000)
committerAndrea Bonito <andrea.bonito.ch@gmail.com>
Tue, 1 Mar 2011 22:48:03 +0000 (22:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@23452 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 56e1e6c1026182fce05aecfffda56cda29c89a75..54926ba4adc10ddfd8e8c62ae7cb9ed5c9ed8318 100644 (file)
@@ -427,7 +427,7 @@ void LaplaceBeltramiProblem<spacedim>::assemble_system ()
   system_matrix = 0;
   system_rhs = 0;
 
-  const QGauss<dim>  quadrature_formula(2);
+  const QGauss<dim>  quadrature_formula(2*fe.degree);
   FEValues<dim,spacedim> fe_values (mapping, fe, quadrature_formula,
                                    update_values              |
                                    update_gradients           |

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.