]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add missing copy function to MGDoFAccessor
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 27 Sep 2012 08:18:43 +0000 (08:18 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 27 Sep 2012 08:18:43 +0000 (08:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@26774 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/multigrid/mg_dof_accessor.h
deal.II/source/multigrid/mg_dof_accessor.cc

index 11a832bb29de84402ee8a05c89bd2d7db587dcfe..7be31fcc80b53841c078a95076a9d519426268d6 100644 (file)
@@ -358,6 +358,12 @@ class MGDoFAccessor : public dealii::internal::MGDoFAccessor::Inheritance<struct
                                       */
     void copy_from (const MGDoFAccessor &a);
 
+                                     /**
+                                      * Implement the copy operator needed
+                                      * for the iterator classes.
+                                      */
+    void copy_from (const TriaAccessorBase<structdim,dim,spacedim>& a);
+
                                      /**
                                       * Exception for child classes
                                       */
index 4847bbb5a963f3fbeab6994b686440d20442bd07..ee04d227a7cd3e5bdb9906ba6e65000d8b7fcb42 100644 (file)
@@ -201,6 +201,15 @@ MGDoFAccessor<structdim, dim, spacedim>::copy_from (const MGDoFAccessor &a)
 
 
 
+template <int structdim, int dim, int spacedim>
+void
+MGDoFAccessor<structdim, dim, spacedim>::copy_from (const TriaAccessorBase<structdim,dim,spacedim> &a)
+{
+  DoFAccessor<structdim, DoFHandler<dim, spacedim> >::copy_from (a);
+}
+
+
+
 template <int structdim, int dim, int spacedim>
 typename internal::MGDoFHandler::Iterators<dim,spacedim>::line_iterator
 MGDoFAccessor<structdim,dim,spacedim>::line (const unsigned int i) const

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.