From a35fa65ddc3ffb4c1187f4574ae42a23933812cb Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 11 Jan 2000 22:29:13 +0000 Subject: [PATCH] Some small modifications. git-svn-id: https://svn.dealii.org/trunk@2207 0785d39b-7218-0410-832d-ea1e28bc413d --- .../Attic/examples/step-by-step/step-3/step-3.cc | 14 ++++++++++---- .../Attic/examples/step-by-step/step-4/step-4.cc | 2 +- .../Attic/examples/step-by-step/step-5/step-5.cc | 2 +- deal.II/examples/step-3/step-3.cc | 14 ++++++++++---- deal.II/examples/step-4/step-4.cc | 2 +- deal.II/examples/step-5/step-5.cc | 2 +- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc index 6a2c095c2a..10e649fe44 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc @@ -313,11 +313,17 @@ void LaplaceProblem::assemble_system () // quadrature formula for the // evaluation of the integrals on // each cell. Let's take a Gauss - // formula with three quadrature + // formula with two quadrature // points in each direction, i.e. a - // total of nine points since we - // are in 2D: - QGauss3<2> quadrature_formula; + // total of four points since we + // are in 2D. This quadrature + // formula integrates polynomials + // of degrees up to three exactly + // (in 1D). Since the integrands in + // the matrix entries are quadratic + // (in 1D), this is sufficient. The + // same holds for 2D. + QGauss2<2> quadrature_formula; // And we initialize the object // which we have briefly talked // about above. It needs to be told diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc index 73967fb1e5..9b45c7d7f5 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc @@ -310,7 +310,7 @@ void LaplaceProblem::make_grid_and_dofs () template void LaplaceProblem::assemble_system () { - QGauss3 quadrature_formula; + QGauss2 quadrature_formula; // We wanted to have a non-constant // right hand side, so we use an diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc index e215db92ca..21ad88c484 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc @@ -327,7 +327,7 @@ void LaplaceProblem::assemble_system () // object will be used for this: const Coefficient coefficient; - QGauss3 quadrature_formula; + QGauss2 quadrature_formula; FEValues fe_values (fe, quadrature_formula, UpdateFlags(update_values | diff --git a/deal.II/examples/step-3/step-3.cc b/deal.II/examples/step-3/step-3.cc index 6a2c095c2a..10e649fe44 100644 --- a/deal.II/examples/step-3/step-3.cc +++ b/deal.II/examples/step-3/step-3.cc @@ -313,11 +313,17 @@ void LaplaceProblem::assemble_system () // quadrature formula for the // evaluation of the integrals on // each cell. Let's take a Gauss - // formula with three quadrature + // formula with two quadrature // points in each direction, i.e. a - // total of nine points since we - // are in 2D: - QGauss3<2> quadrature_formula; + // total of four points since we + // are in 2D. This quadrature + // formula integrates polynomials + // of degrees up to three exactly + // (in 1D). Since the integrands in + // the matrix entries are quadratic + // (in 1D), this is sufficient. The + // same holds for 2D. + QGauss2<2> quadrature_formula; // And we initialize the object // which we have briefly talked // about above. It needs to be told diff --git a/deal.II/examples/step-4/step-4.cc b/deal.II/examples/step-4/step-4.cc index 73967fb1e5..9b45c7d7f5 100644 --- a/deal.II/examples/step-4/step-4.cc +++ b/deal.II/examples/step-4/step-4.cc @@ -310,7 +310,7 @@ void LaplaceProblem::make_grid_and_dofs () template void LaplaceProblem::assemble_system () { - QGauss3 quadrature_formula; + QGauss2 quadrature_formula; // We wanted to have a non-constant // right hand side, so we use an diff --git a/deal.II/examples/step-5/step-5.cc b/deal.II/examples/step-5/step-5.cc index e215db92ca..21ad88c484 100644 --- a/deal.II/examples/step-5/step-5.cc +++ b/deal.II/examples/step-5/step-5.cc @@ -327,7 +327,7 @@ void LaplaceProblem::assemble_system () // object will be used for this: const Coefficient coefficient; - QGauss3 quadrature_formula; + QGauss2 quadrature_formula; FEValues fe_values (fe, quadrature_formula, UpdateFlags(update_values | -- 2.39.5