]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bring up to date w.r.t. the mapping branch.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 8 Mar 2001 10:41:04 +0000 (10:41 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 8 Mar 2001 10:41:04 +0000 (10:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@4171 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-8/step-8.cc
deal.II/examples/step-9/step-9.cc

index fb4dcbeeede4e7176754c95310237e34c3a9a107..c7be77c74b5f63d95fcbcbfa1acc683cd8128c7e 100644 (file)
@@ -38,7 +38,7 @@
                                 // finite elements from regular Q1
                                 // elements which can be found here,
                                 // as usual:
-#include <fe/fe_lib.lagrange.h>
+#include <fe/fe_q.h>
 
                                 // This again is C++:
 #include <fstream>
@@ -70,7 +70,7 @@ class ElasticProblem
 
                                     // Instead of a concrete finite
                                     // element class such as
-                                    // ``FEQ1'', we now use a more
+                                    // ``FE_Q'', we now use a more
                                     // generic one, ``FESystem''. In
                                     // fact, it is not a finite
                                     // element itself, but rather a
@@ -80,7 +80,7 @@ class ElasticProblem
                                     // vector-valued finite
                                     // element. In our case, we will
                                     // compose the vector-valued
-                                    // element of ``FEQ1'' objects,
+                                    // element of ``FE_Q(1)'' objects,
                                     // as shown below in the
                                     // constructor of this class.
     FESystem<dim>        fe;
@@ -304,7 +304,7 @@ ElasticProblem<dim>::ElasticProblem () :
                                                 // vector-valued
                                                 // finite element as
                                                 // outer product of
-                                                // several scald
+                                                // several scalar
                                                 // finite
                                                 // elements. Of
                                                 // course, the number
@@ -330,11 +330,11 @@ ElasticProblem<dim>::ElasticProblem () :
                                                 // the system of, and
                                                 // how often it shall
                                                 // be repeated:
-               fe (FEQ1<dim>(), dim)
+               fe (FE_Q<dim>(1), dim)
                                 // In fact, the ``FESystem'' class
                                 // has several more constructors
                                 // which can perform more complex
-                                // operations that just stacking
+                                // operations than just stacking
                                 // together several scalar finite
                                 // elements of the same type into
                                 // one; we will get to know these
@@ -348,11 +348,8 @@ ElasticProblem<dim>::ElasticProblem () :
                                 // use an anonymous object created
                                 // in-place. The ``FESystem''
                                 // constructor only needs the
-                                // parameter to deduce the type of
-                                // the finite element from this and
-                                // then creates objects of the
-                                // underlying finite element type
-                                // itself.
+                                // parameter to generate a copy of
+                                // the finite element from this.
 {};
 
 
index 39d3f6a777e4129071ccd91ed884424f6770cbdc..8066823ce357f2a018188e68c76edf1b41c32086 100644 (file)
@@ -28,7 +28,7 @@
 #include <numerics/vectors.h>
 #include <numerics/matrices.h>
 #include <numerics/data_out.h>
-#include <fe/fe_lib.lagrange.h>
+#include <fe/fe_q.h>
 #include <grid/grid_out.h>
 
                                 // The following two files provide
@@ -133,7 +133,7 @@ class AdvectionProblem
     Triangulation<dim>   triangulation;
     DoFHandler<dim>      dof_handler;
 
-    FEQ1<dim>            fe;
+    FE_Q<dim>            fe;
 
     ConstraintMatrix     hanging_node_constraints;
 
@@ -626,7 +626,8 @@ class GradientEstimation
                                 // three function:
 template <int dim>
 AdvectionProblem<dim>::AdvectionProblem () :
-               dof_handler (triangulation)
+               dof_handler (triangulation),
+               fe(1)
 {};
 
 

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.