]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New MGDoFCellAccessor::neighbor_child_on_subface function.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Oct 2003 15:41:16 +0000 (15:41 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Oct 2003 15:41:16 +0000 (15:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@8124 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_dof_accessor.h
deal.II/deal.II/source/multigrid/mg_dof_accessor.cc
deal.II/doc/news/c-4-0.html

index 138f17eb82fc9b4c3e7faba83568d72f9076937a..6431d818cb95c1c373718675bd556bb53a210e4d 100644 (file)
@@ -660,6 +660,21 @@ class MGDoFCellAccessor :  public MGDoFObjectAccessor<dim, dim> {
     face_iterator
     face (const unsigned int i) const;
 
+                                    /**
+                                     * Return the result of the
+                                     * @p{neighbor_child_on_subface}
+                                     * function of the base class,
+                                     * but convert it so that one can
+                                     * also access the MGDoF data (the
+                                     * function in the base class
+                                     * only returns an iterator with
+                                     * access to the triangulation
+                                     * data).
+                                     */
+    TriaIterator<dim,MGDoFCellAccessor<dim> >
+    neighbor_child_on_subface (const unsigned int face_no,
+                               const unsigned int subface_no) const;
+
                                     /**
                                      *  Exception
                                      */
index 27a935d4b70ff942d250aa56201aac168cc3c8b1..fab658d581ca144aaef53c34a477bd2eb2a88004 100644 (file)
@@ -683,6 +683,24 @@ MGDoFCellAccessor<3>::face (const unsigned int i) const
 #endif
 
 
+
+template <int dim>
+TriaIterator<dim,MGDoFCellAccessor<dim> >
+MGDoFCellAccessor<dim>::
+neighbor_child_on_subface (const unsigned int face,
+                           const unsigned int subface) const
+{
+  const TriaIterator<dim,CellAccessor<dim> > q
+    = CellAccessor<dim>::neighbor_child_on_subface (face, subface);
+  return TriaIterator<dim,MGDoFCellAccessor<dim> > (this->tria,
+                                                   q->level (),
+                                                   q->index (),
+                                                   this->mg_dof_handler);
+}
+
+
+
+
 // explicit instantiations
 
 template
index 7b4b4bd5c65acf61cbd6325ab58e5fbdb4099685..982686e07b818383e2a861f0d4cf180697a7b286 100644 (file)
@@ -257,8 +257,20 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
 
 <ol>
   <li> <p>
-       New: There is now a function <code
-       class="member">CellAccessor::neighbor_child_on_subface</code> 
+       New: There is now also a function <code
+       class="member">MGDoFCellAccessor::neighbor_child_on_subface</code>
+       that returns the result of the <code
+       class="member">CellAccessor::neighbor_child_on_subface</code>
+       function but converts it so that one can also access MGDoF
+       data.
+       <br>
+       (RH 2003/10/22)
+       </p>
+
+  <li> <p>
+       New: There are now functions <code
+       class="member">CellAccessor::neighbor_child_on_subface</code> and <code
+       class="member">DoFCellAccessor::neighbor_child_on_subface</code>
        that should be called instead of using <code
        class="member">GeometryInfo::child_cell_on_face</code> in most cases.
        <br> 

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.