]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some 150 typename keywords.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 1 May 2001 16:06:35 +0000 (16:06 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 1 May 2001 16:06:35 +0000 (16:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@4513 0785d39b-7218-0410-832d-ea1e28bc413d

23 files changed:
deal.II/base/source/data_out_base.cc
deal.II/base/source/subscriptor.cc
deal.II/base/source/table_handler.cc
deal.II/deal.II/include/fe/fe_dgq.h
deal.II/deal.II/include/fe/fe_q.h
deal.II/deal.II/include/fe/fe_system.h
deal.II/deal.II/include/fe/mapping_cartesian.h
deal.II/deal.II/include/fe/mapping_q.h
deal.II/deal.II/include/fe/mapping_q1.h
deal.II/deal.II/source/fe/fe.cc
deal.II/deal.II/source/fe/fe_dgq.cc
deal.II/deal.II/source/fe/fe_q.cc
deal.II/deal.II/source/fe/fe_system.cc
deal.II/deal.II/source/fe/fe_values.cc
deal.II/deal.II/source/fe/mapping_cartesian.cc
deal.II/deal.II/source/fe/mapping_q.cc
deal.II/deal.II/source/fe/mapping_q1.cc
deal.II/examples/step-4/step-4.cc
deal.II/examples/step-5/step-5.cc
deal.II/examples/step-6/step-6.cc
deal.II/examples/step-7/step-7.cc
deal.II/examples/step-8/step-8.cc
deal.II/examples/step-9/step-9.cc

index a5bfe2405f8cf583cdba1dcd26bbce7cdca195d3..abe50d9fb99b49dd0c5a0dbff40f265f681a41dd 100644 (file)
@@ -1328,7 +1328,8 @@ void DataOutBase::write_eps (const typename std::vector<Patch<dim,spacedim> > &p
        double y_min = cells.begin()->vertices[0](1);
        double y_max = y_min;
        
-       for (std::multiset<EpsCell2d>::const_iterator cell=cells.begin();
+       for (typename std::multiset<EpsCell2d>::const_iterator
+              cell=cells.begin();
             cell!=cells.end(); ++cell)
          for (unsigned int vertex=0; vertex<4; ++vertex)
            {
@@ -1410,7 +1411,8 @@ void DataOutBase::write_eps (const typename std::vector<Patch<dim,spacedim> > &p
                                         // note: due to the ordering, we
                                         // traverse the list of cells
                                         // back-to-front
-       for (std::multiset<EpsCell2d>::const_iterator cell=cells.begin();
+       for (typename std::multiset<EpsCell2d>::const_iterator
+              cell=cells.begin();
             cell!=cells.end(); ++cell)
          {
            if (flags.draw_cells) 
index 77c48e04673cbcfadc75652d39bc60cfe9fed302..c81e648d803659b427bc02596844e17493ce8035 100644 (file)
@@ -54,7 +54,7 @@ ActiveObjectMonitor::~ActiveObjectMonitor ()
 {
   if (registered_objects.size() > 0)
     {
-      for (std::set<const Subscriptor*>::const_iterator i=registered_objects.begin();
+      for (typename std::set<const Subscriptor*>::const_iterator i=registered_objects.begin();
           i!=registered_objects.end(); ++i)
        std::cout << "Object still exists of type "
                  << typeid(**i).name()
index 24f062d1ab73d45ece922730526182c606c54572..7a38c0861f41e66ef274896a061a313d63bf82e4 100644 (file)
@@ -253,7 +253,6 @@ void TableHandler::write_text(std::ostream &out) const
       
       out.setf(std::ios::left);
       out << std::setw(column_string_size)
-//       << setfill('*') 
          << key << "\t";
     }
   out << std::endl;
index a062f0189528e9f83a0407e01f06676a6fe7aec7..73c1915389d3caf7a61bea4aa0160bdb73002347 100644 (file)
@@ -81,7 +81,8 @@ class FE_DGQ : public FiniteElement<dim>
                                      * structures and fill in values
                                      * independent of the cell.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_data (const UpdateFlags,
              const Mapping<dim>& mapping,
              const Quadrature<dim>& quadrature) const ;
index 77e4d320276ee3893679eee7bf3057e1e3108620..3b7bb883c446e0e73f4c66ab58eda1a6bfb9cf62 100644 (file)
@@ -292,7 +292,8 @@ class FE_Q : public FiniteElement<dim>
                                      * structures and fill in values
                                      * independent of the cell.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_data (const UpdateFlags,
              const Mapping<dim>& mapping,
              const Quadrature<dim>& quadrature) const ;
index a6246becc20fb28c7bacac774077ffede0a2ccc8..dbeb5bca16217353ad8f0a49ed68e835750946a8 100644 (file)
@@ -210,12 +210,12 @@ class FESystem : public FiniteElement<dim>
                                      * @ref{FiniteElement}.
                                      */
     virtual void
-    fill_fe_values (const Mapping<dim>                   &mapping,
+    fill_fe_values (const Mapping<dim>                      &mapping,
                    const typename DoFHandler<dim>::cell_iterator &cell,
-                   const Quadrature<dim>                &quadrature,
-                   Mapping<dim>::InternalDataBase      &mapping_data,
-                   Mapping<dim>::InternalDataBase      &fe_data,
-                   FEValuesData<dim>                    &data) const;
+                   const Quadrature<dim>                   &quadrature,
+                   typename Mapping<dim>::InternalDataBase &mapping_data,
+                   typename Mapping<dim>::InternalDataBase &fe_data,
+                   FEValuesData<dim>                       &data) const;
 
                                     /**
                                      * Implementation of the same
index ad885289742a6c992a2e0f2484dce31ac6affe36..7be76a844642221b8511f9363211717b1351eb67 100644 (file)
@@ -35,7 +35,8 @@ class MappingCartesian : public Mapping<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_data (const UpdateFlags,
              const Quadrature<dim>& quadrature) const;
 
@@ -43,7 +44,8 @@ class MappingCartesian : public Mapping<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_face_data (const UpdateFlags flags,
                   const Quadrature<dim-1>& quadrature) const;
 
@@ -51,7 +53,8 @@ class MappingCartesian : public Mapping<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_subface_data (const UpdateFlags flags,
                      const Quadrature<dim-1>& quadrature) const;
 
@@ -103,7 +106,7 @@ class MappingCartesian : public Mapping<dim>
     virtual void
     transform_covariant (std::vector<Tensor<1,dim> >       &dst,
                         const std::vector<Tensor<1,dim> > &src,
-                        const Mapping<dim>::InternalDataBase &mapping_data,
+                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                         const unsigned int src_offset) const;
     
                                     /**
@@ -113,7 +116,7 @@ class MappingCartesian : public Mapping<dim>
     virtual void
     transform_contravariant (std::vector<Tensor<1,dim> >       &dst,
                             const std::vector<Tensor<1,dim> > &src,
-                            const Mapping<dim>::InternalDataBase &mapping_data,
+                            const typename Mapping<dim>::InternalDataBase &mapping_data,
                             const unsigned int src_offset) const;
 
                                     /**
@@ -123,7 +126,7 @@ class MappingCartesian : public Mapping<dim>
     virtual void
     transform_covariant (std::vector<Point<dim> >       &dst,
                         const std::vector<Point<dim> > &src,
-                        const Mapping<dim>::InternalDataBase &mapping_data,
+                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                         const unsigned int src_offset) const;
     
                                     /**
@@ -133,7 +136,7 @@ class MappingCartesian : public Mapping<dim>
     virtual void
     transform_contravariant (std::vector<Point<dim> >       &dst,
                             const std::vector<Point<dim> > &src,
-                            const Mapping<dim>::InternalDataBase &mapping_data,
+                            const typename Mapping<dim>::InternalDataBase &mapping_data,
                             const unsigned int src_offset) const;
     
                                     /**
@@ -185,7 +188,7 @@ class MappingCartesian : public Mapping<dim>
     template <typename tensor_>
     void covariant_transformation (std::vector<tensor_>       &dst,
                                   const std::vector<tensor_> &src,
-                                  const Mapping<dim>::InternalDataBase &mapping_data,
+                                  const typename Mapping<dim>::InternalDataBase &mapping_data,
                                   const unsigned int src_offset) const;
     
                                     /**
@@ -195,7 +198,7 @@ class MappingCartesian : public Mapping<dim>
     template <typename tensor_>
     void contravariant_transformation (std::vector<tensor_>       &dst,
                                       const std::vector<tensor_> &src,
-                                      const Mapping<dim>::InternalDataBase &mapping_data,
+                                      const typename Mapping<dim>::InternalDataBase &mapping_data,
                                       const unsigned int src_offset) const;
 
                                     /** 
index ef8cc90ed12978358e28585706a689750644c6d3..fb9ab0420ea3e4f5c661a7419a2d993ea06f3a5c 100644 (file)
@@ -82,7 +82,7 @@ class MappingQ : public MappingQ1<dim>
     virtual void
     transform_covariant (std::vector<Tensor<1,dim> >       &dst,
                         const std::vector<Tensor<1,dim> > &src,
-                        const Mapping<dim>::InternalDataBase &mapping_data,
+                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                         const unsigned int src_offset) const;
     
                                     /**
@@ -92,7 +92,7 @@ class MappingQ : public MappingQ1<dim>
     virtual void
     transform_contravariant (std::vector<Tensor<1,dim> >       &dst,
                             const std::vector<Tensor<1,dim> > &src,
-                            const Mapping<dim>::InternalDataBase &mapping_data,
+                            const typename Mapping<dim>::InternalDataBase &mapping_data,
                             const unsigned int src_offset) const;
 
                                     /**
@@ -102,7 +102,7 @@ class MappingQ : public MappingQ1<dim>
     virtual void
     transform_covariant (std::vector<Point<dim> >       &dst,
                         const std::vector<Point<dim> > &src,
-                        const Mapping<dim>::InternalDataBase &mapping_data,
+                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                         const unsigned int src_offset) const;
     
                                     /**
@@ -112,7 +112,7 @@ class MappingQ : public MappingQ1<dim>
     virtual void
     transform_contravariant (std::vector<Point<dim> >       &dst,
                             const std::vector<Point<dim> > &src,
-                            const Mapping<dim>::InternalDataBase &mapping_data,
+                            const typename Mapping<dim>::InternalDataBase &mapping_data,
                             const unsigned int src_offset) const;
 
   protected:
@@ -123,7 +123,7 @@ class MappingQ : public MappingQ1<dim>
     virtual void
     fill_fe_values (const typename DoFHandler<dim>::cell_iterator &cell,
                    const Quadrature<dim>                &quadrature,
-                   typename Mapping<dim>::InternalDataBase       &mapping_data,
+                   typename Mapping<dim>::InternalDataBase &mapping_data,
                    std::vector<Point<dim> >             &quadrature_points,
                    std::vector<double>                  &JxW_values) const ;
 
@@ -198,7 +198,7 @@ class MappingQ : public MappingQ1<dim>
                                          * On interior cells
                                          * @p{MappingQ1} is used.
                                          */
-       MappingQ1<dim>::InternalData mapping_q1_data;
+       typename MappingQ1<dim>::InternalData mapping_q1_data;
     };
 
                                     /**
@@ -261,7 +261,8 @@ class MappingQ : public MappingQ1<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_data (const UpdateFlags,
              const Quadrature<dim>& quadrature) const;
 
@@ -269,7 +270,8 @@ class MappingQ : public MappingQ1<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_face_data (const UpdateFlags flags,
                   const Quadrature<dim-1>& quadrature) const;
 
@@ -277,16 +279,18 @@ class MappingQ : public MappingQ1<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_subface_data (const UpdateFlags flags,
-                      const Quadrature<dim-1>& quadrature) const;
+                     const Quadrature<dim-1>& quadrature) const;
     
                                     /**
                                      * Compute shape values and/or
                                      * derivatives.
                                      */
-    virtual void compute_shapes_virtual (const std::vector<Point<dim> > &unit_points,
-                                        MappingQ1<dim>::InternalData &data) const;
+    virtual void
+    compute_shapes_virtual (const std::vector<Point<dim> > &unit_points,
+                           typename MappingQ1<dim>::InternalData &data) const;
 
                                     /**
                                      * This function is needed by the
@@ -300,7 +304,8 @@ class MappingQ : public MappingQ1<dim>
                                      * @p{degree>=4} and MappingQ<2>
                                      * this vector is computed.
                                      */
-    void set_laplace_on_quad_vector(std::vector<std::vector<double> > &loqvs) const;
+    void
+    set_laplace_on_quad_vector(std::vector<std::vector<double> > &loqvs) const;
     
                                     /**
                                      * This function is needed by the
index 38b1ddbcb73a66ac35f10db2cf3a5ed57a581ce3..483b6bd1af414a76b3f140bcb07d8966f90e93a8 100644 (file)
@@ -68,7 +68,7 @@ class MappingQ1 : public Mapping<dim>
     virtual void
     transform_covariant (std::vector<Tensor<1,dim> >       &dst,
                         const std::vector<Tensor<1,dim> > &src,
-                        const Mapping<dim>::InternalDataBase &mapping_data,
+                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                         const unsigned int src_offset) const;
     
                                     /**
@@ -78,7 +78,7 @@ class MappingQ1 : public Mapping<dim>
     virtual void
     transform_contravariant (std::vector<Tensor<1,dim> >       &dst,
                             const std::vector<Tensor<1,dim> > &src,
-                            const Mapping<dim>::InternalDataBase &mapping_data,
+                            const typename Mapping<dim>::InternalDataBase &mapping_data,
                             const unsigned int src_offset) const;
 
                                     /**
@@ -88,7 +88,7 @@ class MappingQ1 : public Mapping<dim>
     virtual void
     transform_covariant (std::vector<Point<dim> >       &dst,
                         const std::vector<Point<dim> > &src,
-                        const Mapping<dim>::InternalDataBase &mapping_data,
+                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                         const unsigned int src_offset) const;
     
                                     /**
@@ -98,7 +98,7 @@ class MappingQ1 : public Mapping<dim>
     virtual void
     transform_contravariant (std::vector<Point<dim> >       &dst,
                             const std::vector<Point<dim> > &src,
-                            const Mapping<dim>::InternalDataBase &mapping_data,
+                            const typename Mapping<dim>::InternalDataBase &mapping_data,
                             const unsigned int src_offset) const;
     
     
@@ -163,7 +163,7 @@ class MappingQ1 : public Mapping<dim>
     template <typename tensor_>
     void covariant_transformation (std::vector<tensor_>       &dst,
                                   const std::vector<tensor_> &src,
-                                  const Mapping<dim>::InternalDataBase &mapping_data,
+                                  const typename Mapping<dim>::InternalDataBase &mapping_data,
                                   const unsigned int src_offset) const;
     
                                     /**
@@ -173,7 +173,7 @@ class MappingQ1 : public Mapping<dim>
     template <typename tensor_>
     void contravariant_transformation (std::vector<tensor_>       &dst,
                                       const std::vector<tensor_> &src,
-                                      const Mapping<dim>::InternalDataBase &mapping_data,
+                                      const typename Mapping<dim>::InternalDataBase &mapping_data,
                                       const unsigned int src_offset) const;
 
                                     /** 
@@ -467,7 +467,8 @@ class MappingQ1 : public Mapping<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_data (const UpdateFlags,
              const Quadrature<dim>& quadrature) const;
 
@@ -475,7 +476,8 @@ class MappingQ1 : public Mapping<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_face_data (const UpdateFlags flags,
                   const Quadrature<dim-1>& quadrature) const;
 
@@ -483,7 +485,8 @@ class MappingQ1 : public Mapping<dim>
                                      * Implementation of the interface in
                                      * @ref{Mapping}.
                                      */
-    virtual Mapping<dim>::InternalDataBase*
+    virtual
+    typename Mapping<dim>::InternalDataBase *
     get_subface_data (const UpdateFlags flags,
                      const Quadrature<dim-1>& quadrature) const;
 
index 0b2fda48711101114fd16a3247ecdfbd5863f6b1..ee67870c5c62f92af4399cdd62847245f3f81a98 100644 (file)
@@ -389,7 +389,7 @@ FiniteElement<dim>::~FiniteElement ()
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 FiniteElement<dim>::get_face_data (const UpdateFlags       flags,
                                   const Mapping<dim>      &mapping,
                                   const Quadrature<dim-1> &quadrature) const
@@ -401,7 +401,7 @@ FiniteElement<dim>::get_face_data (const UpdateFlags       flags,
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 FiniteElement<dim>::get_subface_data (const UpdateFlags        flags,
                                      const Mapping<dim>      &mapping,
                                      const Quadrature<dim-1> &quadrature) const
index 8e7fc91c0179359073c103b3b6f09ac6b1db6e80..c566e7c7fd6490562d9402c9bbb0597c9dab5e90 100644 (file)
@@ -359,7 +359,7 @@ FE_DGQ<dim>::rotate_indices (std::vector<unsigned int> &numbers,
 //----------------------------------------------------------------------
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 FE_DGQ<dim>::get_data (const UpdateFlags      update_flags,
                       const Mapping<dim>    &mapping,
                       const Quadrature<dim> &quadrature) const
index 51eff18833a3457be46249464b7a9dfec0fec649..4b0828fa2eff4df9d3f86bc46748cf28622a2f86 100644 (file)
@@ -957,7 +957,7 @@ FE_Q<dim>::update_each (UpdateFlags flags) const
 //----------------------------------------------------------------------
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 FE_Q<dim>::get_data (const UpdateFlags      update_flags,
                     const Mapping<dim>    &mapping,
                     const Quadrature<dim> &quadrature) const
index 7f241821ad4fc45ac3c9b7743d22b608271b3395..58b134bd04116ffa58e415dd0679fb4d970082e9 100644 (file)
@@ -63,7 +63,8 @@ FESystem<dim>::InternalData::~InternalData()
 
 
 template <int dim>
-inline FiniteElementBase<dim>::InternalDataBase &
+inline
+typename FiniteElementBase<dim>::InternalDataBase &
 FESystem<dim>::
 InternalData::get_fe_data (const unsigned int base_no) const
 {
@@ -78,7 +79,7 @@ template <int dim>
 inline void
 FESystem<dim>::
 InternalData::set_fe_data (const unsigned int base_no,
-                          FiniteElementBase<dim>::InternalDataBase *ptr)
+                          typename FiniteElementBase<dim>::InternalDataBase *ptr)
 {
   Assert(base_no<base_fe_datas.size(),
         ExcIndexRange(base_no,0,base_fe_datas.size()));
@@ -271,8 +272,9 @@ FESystem<dim>::update_each (const UpdateFlags flags) const
 }
 
 
+
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 FESystem<dim>::get_data (UpdateFlags      flags,
                         const Mapping<dim>    &mapping,
                         const Quadrature<dim> &quadrature) const
@@ -307,7 +309,7 @@ FESystem<dim>::get_data (UpdateFlags      flags,
       typename Mapping<dim>::InternalDataBase *base_fe_data_base =
        base_element(base_no).get_data(sub_flags, mapping, quadrature);
 
-      FiniteElementBase<dim>::InternalDataBase *base_fe_data =
+      typename FiniteElementBase<dim>::InternalDataBase *base_fe_data =
        dynamic_cast<typename FiniteElementBase<dim>::InternalDataBase *>
        (base_fe_data_base);
       
@@ -448,8 +450,8 @@ FESystem<dim>::compute_fill (const Mapping<dim>                   &mapping,
                                               // Pointer needed to get
                                               // the update flags of the
                                               // base element
-             Mapping<dim>::InternalDataBase &base_fe_data=
-               fe_data.get_fe_data(base_no);
+             typename Mapping<dim>::InternalDataBase &
+               base_fe_data = fe_data.get_fe_data(base_no);
              
                                               // compute update flags ...
              const UpdateFlags base_update_flags(mapping_data.update_flags
@@ -502,8 +504,8 @@ FESystem<dim>::compute_fill (const Mapping<dim>                   &mapping,
       for (unsigned int base_no=0, comp=0; base_no<n_base_elements(); ++base_no)
        {
          const FiniteElement<dim> &base_fe=base_element(base_no);
-         FiniteElementBase<dim>::InternalDataBase &base_fe_data=
-           fe_data.get_fe_data(base_no);
+         typename FiniteElementBase<dim>::InternalDataBase &
+           base_fe_data = fe_data.get_fe_data(base_no);
 
                                           // Make sure that in the
                                           // case of fill_fe_values
@@ -577,7 +579,7 @@ FESystem<dim>::compute_fill (const Mapping<dim>                   &mapping,
                                               // Pointer needed to get
                                               // the update flags of the
                                               // base element
-             Mapping<dim>::InternalDataBase &base_fe_data=
+             typename Mapping<dim>::InternalDataBase &base_fe_data=
                fe_data.get_fe_data(base_no);
              
                                               // compute update flags ...
index 7d377cbc26262729397838264aa64e9f372d659c..5e3d0e5c57bad773361ec86e7343bd5be5472eb3 100644 (file)
@@ -104,14 +104,14 @@ FEValuesBase<dim>::~FEValuesBase ()
 {
   if (fe_data)
     {
-      Mapping<dim>::InternalDataBase *tmp1=fe_data;
+      typename Mapping<dim>::InternalDataBase *tmp1=fe_data;
       fe_data=0;
       delete tmp1;
     }
 
   if (mapping_data)
     {
-      Mapping<dim>::InternalDataBase *tmp1=mapping_data;
+      typename Mapping<dim>::InternalDataBase *tmp1=mapping_data;
       mapping_data=0;
       delete tmp1;
     }
index f6b1662c451f08afd9b553898d115bff33a03c24..83d30b5abcb97f79e675caf64064a9e16bbce236 100644 (file)
@@ -62,7 +62,7 @@ MappingCartesian<dim>::update_each (const UpdateFlags in) const
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingCartesian<dim>::get_data (const UpdateFlags      flags,
                                 const Quadrature<dim> &q) const
 {
@@ -72,8 +72,9 @@ MappingCartesian<dim>::get_data (const UpdateFlags      flags,
 }
 
 
+
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingCartesian<dim>::get_face_data (const UpdateFlags,
                                      const Quadrature<dim-1>& quadrature) const
 {
@@ -85,7 +86,7 @@ MappingCartesian<dim>::get_face_data (const UpdateFlags,
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingCartesian<dim>::get_subface_data (const UpdateFlags,
                                         const Quadrature<dim-1> &quadrature) const
 {
@@ -413,9 +414,9 @@ MappingCartesian<1>::fill_fe_subface_values (const DoFHandler<1>::cell_iterator
 template <int dim>
 void
 MappingCartesian<dim>::transform_covariant (std::vector<Tensor<1,dim> >       &dst,
-                                    const std::vector<Tensor<1,dim> > &src,
-                                    const Mapping<dim>::InternalDataBase &mapping_data,
-                                    const unsigned int src_offset) const
+                                           const std::vector<Tensor<1,dim> > &src,
+                                           const typename Mapping<dim>::InternalDataBase &mapping_data,
+                                           const unsigned int src_offset) const
 {
   covariant_transformation(dst, src, mapping_data, src_offset);
 }
@@ -424,9 +425,9 @@ MappingCartesian<dim>::transform_covariant (std::vector<Tensor<1,dim> >       &d
 template <int dim>
 void
 MappingCartesian<dim>::transform_covariant (std::vector<Point<dim> >       &dst,
-                                    const std::vector<Point<dim> > &src,
-                                    const Mapping<dim>::InternalDataBase &mapping_data,
-                                    const unsigned int src_offset) const
+                                           const std::vector<Point<dim> > &src,
+                                           const typename Mapping<dim>::InternalDataBase &mapping_data,
+                                           const unsigned int src_offset) const
 {
   covariant_transformation(dst, src, mapping_data, src_offset);
 }
@@ -434,20 +435,21 @@ MappingCartesian<dim>::transform_covariant (std::vector<Point<dim> >       &dst,
 template <int dim>
 void
 MappingCartesian<dim>::transform_contravariant (std::vector<Tensor<1,dim> >       &dst,
-                                        const std::vector<Tensor<1,dim> > &src,
-                                        const Mapping<dim>::InternalDataBase &mapping_data,
-                                        const unsigned int src_offset) const
+                                               const std::vector<Tensor<1,dim> > &src,
+                                               const typename Mapping<dim>::InternalDataBase &mapping_data,
+                                               const unsigned int src_offset) const
 {
   contravariant_transformation(dst, src, mapping_data, src_offset);
 }
 
 
+
 template <int dim>
 void
 MappingCartesian<dim>::transform_contravariant (std::vector<Point<dim> >       &dst,
-                                        const std::vector<Point<dim> > &src,
-                                        const Mapping<dim>::InternalDataBase &mapping_data,
-                                        const unsigned int src_offset) const
+                                               const std::vector<Point<dim> > &src,
+                                               const typename Mapping<dim>::InternalDataBase &mapping_data,
+                                               const unsigned int src_offset) const
 {
   contravariant_transformation(dst, src, mapping_data, src_offset);
 }
@@ -525,7 +527,7 @@ inline
 void
 MappingCartesian<dim>::contravariant_transformation (std::vector<tensor_>       &dst,
                                                     const std::vector<tensor_> &src,
-                                                    const Mapping<dim>::InternalDataBase &mapping_data,
+                                                    const typename Mapping<dim>::InternalDataBase &mapping_data,
                                                     const unsigned int src_offset) const
 {
   Assert(tensor_::dimension==dim && tensor_::rank==1, ExcInvalidData());
@@ -562,7 +564,7 @@ inline
 void
 MappingCartesian<dim>::covariant_transformation (std::vector<tensor_>       &dst,
                                                 const std::vector<tensor_> &src,
-                                                const Mapping<dim>::InternalDataBase &mapping_data,
+                                                const typename Mapping<dim>::InternalDataBase &mapping_data,
                                                 const unsigned int src_offset) const
 {
   Assert(tensor_::dimension==dim && tensor_::rank==1, ExcInvalidData());
index dd63000fd8d92d2c3d7802a23671d4a3d3447ece..d8a1c8321cb06abec0b488d6a91f1f40e2b49cbc 100644 (file)
@@ -30,7 +30,8 @@ const bool MappingQ<dim>::use_mapping_q_on_all_cells;
 
 
 template<int dim>
-MappingQ<dim>::InternalData::InternalData (const unsigned int n_shape_functions):
+MappingQ<dim>::InternalData::InternalData (const unsigned int n_shape_functions)
+               :
                MappingQ1<dim>::InternalData(n_shape_functions),
                use_mapping_q1_on_current_cell(false),
                mapping_q1_data(1 << dim)
@@ -145,7 +146,7 @@ MappingQ<1>::compute_shapes_virtual (const std::vector<Point<1> > &unit_points,
 template<int dim>
 void
 MappingQ<dim>::compute_shapes_virtual (const std::vector<Point<dim> > &unit_points,
-                                      MappingQ1<dim>::InternalData &data) const
+                                      typename MappingQ1<dim>::InternalData &data) const
 {
   const unsigned int n_points=unit_points.size();
   std::vector<double> values;
@@ -185,7 +186,7 @@ MappingQ<dim>::compute_shapes_virtual (const std::vector<Point<dim> > &unit_poin
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingQ<dim>::get_data (const UpdateFlags update_flags,
                         const Quadrature<dim> &quadrature) const
 {
@@ -201,7 +202,7 @@ MappingQ<dim>::get_data (const UpdateFlags update_flags,
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingQ<dim>::get_face_data (const UpdateFlags update_flags,
                              const Quadrature<dim-1>& quadrature) const
 {
@@ -219,7 +220,7 @@ MappingQ<dim>::get_face_data (const UpdateFlags update_flags,
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingQ<dim>::get_subface_data (const UpdateFlags update_flags,
                                 const Quadrature<dim-1>& quadrature) const
 {
@@ -261,7 +262,7 @@ MappingQ<dim>::fill_fe_values (const typename DoFHandler<dim>::cell_iterator &ce
                                   // depending on this result, use
                                   // this or the other data object
                                   // for the mapping
-  MappingQ1<dim>::InternalData *p_data=0;
+  typename MappingQ1<dim>::InternalData *p_data=0;
   if (data.use_mapping_q1_on_current_cell)
     p_data=&data.mapping_q1_data;
   else
@@ -313,7 +314,7 @@ MappingQ<dim>::fill_fe_face_values (const typename DoFHandler<dim>::cell_iterato
                                   // depending on this result, use
                                   // this or the other data object
                                   // for the mapping
-  MappingQ1<dim>::InternalData *p_data=0;
+  typename MappingQ1<dim>::InternalData *p_data=0;
   if (data.use_mapping_q1_on_current_cell)
     p_data=&data.mapping_q1_data;
   else
@@ -369,7 +370,7 @@ MappingQ<dim>::fill_fe_subface_values (const typename DoFHandler<dim>::cell_iter
                                   // depending on this result, use
                                   // this or the other data object
                                   // for the mapping
-  MappingQ1<dim>::InternalData *p_data=0;
+  typename MappingQ1<dim>::InternalData *p_data=0;
   if (data.use_mapping_q1_on_current_cell)
     p_data=&data.mapping_q1_data;
   else
@@ -1099,13 +1100,13 @@ template <int dim>
 void
 MappingQ<dim>::transform_covariant (std::vector<Tensor<1,dim> >       &dst,
                                    const std::vector<Tensor<1,dim> > &src,
-                                   const Mapping<dim>::InternalDataBase &mapping_data,
+                                   const typename Mapping<dim>::InternalDataBase &mapping_data,
                                    const unsigned int src_offset) const
 {
-  const MappingQ1<dim>::InternalData *q1_data_ptr =
-    dynamic_cast<const MappingQ1<dim>::InternalData *> (&mapping_data);
+  const typename MappingQ1<dim>::InternalData *q1_data_ptr =
+    dynamic_cast<const typename MappingQ1<dim>::InternalData *> (&mapping_data);
   Assert(q1_data_ptr!=0, ExcInternalError());
-  const MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
+  const typename MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
 
   if (q1_data.is_mapping_q1_data)
     covariant_transformation(dst, src, q1_data, src_offset);
@@ -1127,13 +1128,13 @@ template <int dim>
 void
 MappingQ<dim>::transform_covariant (std::vector<Point<dim> >       &dst,
                                    const std::vector<Point<dim> > &src,
-                                   const Mapping<dim>::InternalDataBase &mapping_data,
+                                   const typename Mapping<dim>::InternalDataBase &mapping_data,
                                    const unsigned int src_offset) const
 {
-  const MappingQ1<dim>::InternalData *q1_data_ptr =
-    dynamic_cast<const MappingQ1<dim>::InternalData *> (&mapping_data);
+  const typename MappingQ1<dim>::InternalData *q1_data_ptr =
+    dynamic_cast<const typename MappingQ1<dim>::InternalData *> (&mapping_data);
   Assert(q1_data_ptr!=0, ExcInternalError());
-  const MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
+  const typename MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
 
   if (q1_data.is_mapping_q1_data)
     covariant_transformation(dst, src, q1_data, src_offset);
@@ -1155,13 +1156,13 @@ template <int dim>
 void
 MappingQ<dim>::transform_contravariant (std::vector<Tensor<1,dim> >       &dst,
                                        const std::vector<Tensor<1,dim> > &src,
-                                       const Mapping<dim>::InternalDataBase &mapping_data,
+                                       const typename Mapping<dim>::InternalDataBase &mapping_data,
                                        const unsigned int src_offset) const
 {
-  const MappingQ1<dim>::InternalData *q1_data_ptr =
-    dynamic_cast<const MappingQ1<dim>::InternalData *> (&mapping_data);
+  const typename MappingQ1<dim>::InternalData *q1_data_ptr =
+    dynamic_cast<const typename MappingQ1<dim>::InternalData *> (&mapping_data);
   Assert(q1_data_ptr!=0, ExcInternalError());
-  const MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
+  const typename MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
 
   if (q1_data.is_mapping_q1_data)
     contravariant_transformation(dst, src, q1_data, src_offset);
@@ -1183,13 +1184,13 @@ template <int dim>
 void
 MappingQ<dim>::transform_contravariant (std::vector<Point<dim> >       &dst,
                                        const std::vector<Point<dim> > &src,
-                                       const Mapping<dim>::InternalDataBase &mapping_data,
+                                       const typename Mapping<dim>::InternalDataBase &mapping_data,
                                        const unsigned int src_offset) const
 {
-  const MappingQ1<dim>::InternalData *q1_data_ptr =
-    dynamic_cast<const MappingQ1<dim>::InternalData *> (&mapping_data);
+  const typename MappingQ1<dim>::InternalData *q1_data_ptr =
+    dynamic_cast<const typename MappingQ1<dim>::InternalData *> (&mapping_data);
   Assert(q1_data_ptr!=0, ExcInternalError());
-  const MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
+  const typename MappingQ1<dim>::InternalData &q1_data=*q1_data_ptr;
 
   if (q1_data.is_mapping_q1_data)
     contravariant_transformation(dst, src, q1_data, src_offset);
@@ -1225,7 +1226,7 @@ Point<dim> MappingQ<dim>::transform_unit_to_real_cell (
   mdata->use_mapping_q1_on_current_cell = !(use_mapping_q_on_all_cells
                                             || cell->has_boundary_lines());
 
-  MappingQ1<dim>::InternalData *p_data=0;
+  typename MappingQ1<dim>::InternalData *p_data=0;
   if (mdata->use_mapping_q1_on_current_cell)
     p_data=&mdata->mapping_q1_data;
   else
@@ -1237,6 +1238,7 @@ Point<dim> MappingQ<dim>::transform_unit_to_real_cell (
 }
 
 
+
 template <int dim>
 Point<dim> MappingQ<dim>::transform_real_to_unit_cell (
   const typename Triangulation<dim>::cell_iterator cell,
@@ -1264,7 +1266,7 @@ Point<dim> MappingQ<dim>::transform_real_to_unit_cell (
   mdata->use_mapping_q1_on_current_cell = !(use_mapping_q_on_all_cells
                                             || cell->has_boundary_lines());
 
-  MappingQ1<dim>::InternalData *p_data=0;
+  typename MappingQ1<dim>::InternalData *p_data=0;
   if (mdata->use_mapping_q1_on_current_cell)
     p_data=&mdata->mapping_q1_data;
   else
index 821fd03927e501c8a9eed9659a8ec6382cf126f7..66cc335c791ec2ec129ae31fd20585601a64d5c0 100644 (file)
@@ -32,7 +32,8 @@ const unsigned int MappingQ1<dim>::n_shape_functions;
 
 
 template<int dim>
-MappingQ1<dim>::InternalData::InternalData (const unsigned int n_shape_functions):
+MappingQ1<dim>::InternalData::InternalData (const unsigned int n_shape_functions)
+               :
                is_mapping_q1_data(true),
                n_shape_functions (n_shape_functions)
 {}
@@ -44,46 +45,51 @@ MappingQ1<dim>::InternalData::shape (const unsigned int qpoint,
                                     const unsigned int shape_nr) const
 {
   Assert(qpoint*n_shape_functions + shape_nr < shape_values.size(),
-        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0, shape_values.size()));
+        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0,
+                      shape_values.size()));
   return shape_values [qpoint*n_shape_functions + shape_nr];
 }
 
 
 
 template<int dim> inline
-double&
-MappingQ1<dim>::InternalData::shape (unsigned int qpoint,
-                                    unsigned int shape_nr)
+double &
+MappingQ1<dim>::InternalData::shape (const unsigned int qpoint,
+                                    const unsigned int shape_nr)
 {
   Assert(qpoint*n_shape_functions + shape_nr < shape_values.size(),
-        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0, shape_values.size()));
+        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0,
+                      shape_values.size()));
   return shape_values [qpoint*n_shape_functions + shape_nr];
 }
 
 
 template<int dim> inline
 Tensor<1,dim>
-MappingQ1<dim>::InternalData::derivative (unsigned int qpoint,
-                                         unsigned int shape_nr) const
+MappingQ1<dim>::InternalData::derivative (const unsigned int qpoint,
+                                         const unsigned int shape_nr) const
 {
   Assert(qpoint*n_shape_functions + shape_nr < shape_derivatives.size(),
-        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0, shape_derivatives.size()));
+        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0,
+                      shape_derivatives.size()));
   return shape_derivatives [qpoint*n_shape_functions + shape_nr];
 }
 
 
 
 template<int dim> inline
-Tensor<1,dim>&
-MappingQ1<dim>::InternalData::derivative (unsigned int qpoint,
-                                         unsigned int shape_nr)
+Tensor<1,dim> &
+MappingQ1<dim>::InternalData::derivative (const unsigned int qpoint,
+                                         const unsigned int shape_nr)
 {
   Assert(qpoint*n_shape_functions + shape_nr < shape_derivatives.size(),
-        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0, shape_derivatives.size()));
+        ExcIndexRange(qpoint*n_shape_functions + shape_nr, 0,
+                      shape_derivatives.size()));
   return shape_derivatives [qpoint*n_shape_functions + shape_nr];
 }
 
 
+
 template<int dim>
 void
 MappingQ1<dim>::compute_shapes (const std::vector<Point<dim> > &unit_points,
@@ -346,8 +352,9 @@ MappingQ1<dim>::compute_data (const UpdateFlags      update_flags,
 }
 
 
+
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingQ1<dim>::get_data (const UpdateFlags update_flags,
                          const Quadrature<dim>& q) const
 {
@@ -357,6 +364,7 @@ MappingQ1<dim>::get_data (const UpdateFlags update_flags,
 }
 
 
+
 template <int dim>
 void
 MappingQ1<dim>::compute_face_data (UpdateFlags update_flags,
@@ -422,7 +430,7 @@ MappingQ1<dim>::compute_face_data (UpdateFlags update_flags,
   
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingQ1<dim>::get_face_data (const UpdateFlags        update_flags,
                               const Quadrature<dim-1> &quadrature) const
 {
@@ -436,7 +444,7 @@ MappingQ1<dim>::get_face_data (const UpdateFlags        update_flags,
 
 
 template <int dim>
-Mapping<dim>::InternalDataBase*
+typename Mapping<dim>::InternalDataBase *
 MappingQ1<dim>::get_subface_data (const UpdateFlags update_flags,
                                  const Quadrature<dim-1>& quadrature) const
 {
@@ -800,7 +808,7 @@ template <int dim>
 void
 MappingQ1<dim>::transform_covariant (std::vector<Tensor<1,dim> >       &dst,
                                     const std::vector<Tensor<1,dim> > &src,
-                                    const Mapping<dim>::InternalDataBase &mapping_data,
+                                    const typename Mapping<dim>::InternalDataBase &mapping_data,
                                     const unsigned int src_offset) const
 {
   covariant_transformation(dst, src, mapping_data, src_offset);
@@ -811,7 +819,7 @@ template <int dim>
 void
 MappingQ1<dim>::transform_covariant (std::vector<Point<dim> >       &dst,
                                     const std::vector<Point<dim> > &src,
-                                    const Mapping<dim>::InternalDataBase &mapping_data,
+                                    const typename Mapping<dim>::InternalDataBase &mapping_data,
                                     const unsigned int src_offset) const
 {
   covariant_transformation(dst, src, mapping_data, src_offset);
@@ -821,7 +829,7 @@ template <int dim>
 void
 MappingQ1<dim>::transform_contravariant (std::vector<Tensor<1,dim> >       &dst,
                                         const std::vector<Tensor<1,dim> > &src,
-                                        const Mapping<dim>::InternalDataBase &mapping_data,
+                                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                                         const unsigned int src_offset) const
 {
   contravariant_transformation(dst, src, mapping_data, src_offset);
@@ -832,7 +840,7 @@ template <int dim>
 void
 MappingQ1<dim>::transform_contravariant (std::vector<Point<dim> >       &dst,
                                         const std::vector<Point<dim> > &src,
-                                        const Mapping<dim>::InternalDataBase &mapping_data,
+                                        const typename Mapping<dim>::InternalDataBase &mapping_data,
                                         const unsigned int src_offset) const
 {
   contravariant_transformation(dst, src, mapping_data, src_offset);
@@ -987,7 +995,7 @@ inline
 void
 MappingQ1<dim>::contravariant_transformation (std::vector<tensor_>       &dst,
                                              const std::vector<tensor_> &src,
-                                             const Mapping<dim>::InternalDataBase &mapping_data,
+                                             const typename Mapping<dim>::InternalDataBase &mapping_data,
                                              const unsigned int src_offset) const
 {
   Assert(tensor_::dimension==dim && tensor_::rank==1, Mapping<dim>::ExcInvalidData());
@@ -1021,7 +1029,7 @@ inline
 void
 MappingQ1<dim>::covariant_transformation (std::vector<tensor_>       &dst,
                                          const std::vector<tensor_> &src,
-                                         const Mapping<dim>::InternalDataBase &mapping_data,
+                                         const typename Mapping<dim>::InternalDataBase &mapping_data,
                                          const unsigned int src_offset) const
 {
   Assert(tensor_::dimension==dim && tensor_::rank==1, Mapping<dim>::ExcInvalidData());
index 754ddc63019670d9f84477b73e09cedf3e49831d..9066a1e4f9f218e967343911b438f3ed870e32f8 100644 (file)
@@ -375,8 +375,8 @@ void LaplaceProblem<dim>::assemble_system ()
                                   // probably never see a difference
                                   // although they are totally
                                   // unrelated.
-  DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
-                                       endc = dof_handler.end();
+  typename DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
+                                                endc = dof_handler.end();
   for (; cell!=endc; ++cell)
     {
       fe_values.reinit (cell);
index 8a6fcb63f7707ceffc2904ee0ca45ffde2b7a1c7..4ebba492a33224d8f3be7f0e81621d3580565505 100644 (file)
@@ -354,8 +354,8 @@ void LaplaceProblem<dim>::assemble_system ()
                                   // variable for:
   std::vector<double>     coefficient_values (n_q_points);
 
-  DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
-                                       endc = dof_handler.end();
+  typename DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
+                                                endc = dof_handler.end();
   for (; cell!=endc; ++cell)
     {
       cell_matrix.clear ();
index 163abefa1c44a842eafd07b29d6b679ad0560f1e..45c98acbc99d1ba7fe7ce5327d941e4b6c07d2a4 100644 (file)
@@ -490,8 +490,8 @@ void LaplaceProblem<dim>::assemble_system ()
                                   // the user of the ``fe_values''
                                   // object, the actual finite
                                   // element type is transparent.
-  DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
-                                       endc = dof_handler.end();
+  typename DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
+                                                endc = dof_handler.end();
   for (; cell!=endc; ++cell)
     {
       cell_matrix.clear ();
index 3389fefbd125827068b70dceecb3ab8dedfaedae..068f017ba7d0518ba5244acfbc0e63ae349e70a3 100644 (file)
@@ -821,8 +821,8 @@ void LaplaceProblem<dim>::assemble_system ()
                                   // from previous examples, so we
                                   // only comment on the things that
                                   // have changed.
-  DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
-                                       endc = dof_handler.end();
+  typename DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
+                                                endc = dof_handler.end();
   for (; cell!=endc; ++cell)
     {
       cell_matrix.clear ();
@@ -1374,8 +1374,8 @@ void LaplaceProblem<dim>::run ()
                                           // all faces on Gamma2,
                                           // irrespective whether
                                           // they are active or not.
-         Triangulation<dim>::cell_iterator cell = triangulation.begin (),
-                                           endc = triangulation.end();
+         typename Triangulation<dim>::cell_iterator cell = triangulation.begin (),
+                                                    endc = triangulation.end();
          for (; cell!=endc; ++cell)
            for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face)
              if ((cell->face(face)->center()(0) == -1)
index 97d27c551c0e3170fa15b09af4438badef5d1be4..9605840eab0a7903b33f851379963d1159244e03 100644 (file)
@@ -502,8 +502,8 @@ void ElasticProblem<dim>::assemble_system ()
 
                                   // Now we can begin with the loop
                                   // over all cells:
-  DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
-                                       endc = dof_handler.end();
+  typename DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
+                                                endc = dof_handler.end();
   for (; cell!=endc; ++cell)
     {
       cell_matrix.clear ();
index 89e0cb51d3312dcd7cdc51ff793942784fa293e2..b3356eebd9596428a410479c8cbfa7640c9dbfb3 100644 (file)
@@ -119,8 +119,8 @@ class AdvectionProblem
                                     // which it shall operate, and
                                     // the one past the last.
     void assemble_system ();
-    void assemble_system_interval (const DoFHandler<dim>::active_cell_iterator &begin,
-                                  const DoFHandler<dim>::active_cell_iterator &end);
+    void assemble_system_interval (const typename DoFHandler<dim>::active_cell_iterator &begin,
+                                  const typename DoFHandler<dim>::active_cell_iterator &end);
     
                                     // The following functions again
                                     // are as in previous examples,
@@ -768,9 +768,9 @@ void AdvectionProblem<dim>::assemble_system ()
                                   // this. In fact, it does this not
                                   // only for a range of cell
                                   // iterators, but for iterators in
-                                  // general, so you could use for
-                                  // ``std::vector<T>::iterator'' or usual
-                                  // pointers as well.
+                                  // general, so you could use it for
+                                  // ``std::vector<T>::iterator'' or
+                                  // usual pointers as well.
                                   //
                                   // The function returns a vector of
                                   // pairs of iterators, where the
@@ -893,8 +893,8 @@ void AdvectionProblem<dim>::assemble_system ()
 template <int dim>
 void
 AdvectionProblem<dim>::
-assemble_system_interval (const DoFHandler<dim>::active_cell_iterator &begin,
-                         const DoFHandler<dim>::active_cell_iterator &end) 
+assemble_system_interval (const typename DoFHandler<dim>::active_cell_iterator &begin,
+                         const typename DoFHandler<dim>::active_cell_iterator &end) 
 {
                                   // First of all, we will need some
                                   // objects that describe boundary
@@ -980,7 +980,7 @@ assemble_system_interval (const DoFHandler<dim>::active_cell_iterator &begin,
 
                                   // Then we start the main loop over
                                   // the cells:
-  DoFHandler<dim>::active_cell_iterator cell;
+  typename DoFHandler<dim>::active_cell_iterator cell;
   for (cell=begin; cell!=end; ++cell)
     {
                                       // First clear old contents of

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.