]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add comments for the multigrid master plan
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 9 May 2009 18:33:28 +0000 (18:33 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 9 May 2009 18:33:28 +0000 (18:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@18828 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_transfer.templates.h
deal.II/deal.II/source/multigrid/mg_transfer_prebuilt.cc

index af0ef18dd6f5a58f68c1c339bb8c7ef260a0d932..3fa2e06042be79991bb8cdecc5242eaa58a45d41 100644 (file)
@@ -49,6 +49,13 @@ MGTransferPrebuilt<VECTOR>::copy_to_mg (
       for (IT i= copy_indices[level].begin();
           i != copy_indices[level].end();++i)
        dst[level](i->second) = src(i->first);
+                                      // For non-DG: degrees of
+                                      // freedom in the refinement
+                                      // face may need special
+                                      // attention, since they belong
+                                      // to the coarse level, but
+                                      // have fine level basis
+                                      // functions
       if (!first)
        restrict_and_add (level+1, dst[level], dst[level+1]);
       first = false;
@@ -65,6 +72,13 @@ MGTransferPrebuilt<VECTOR>::copy_from_mg(
   OutVector&                     dst,
   const MGLevelObject<VECTOR>& src) const
 {
+                                      // For non-DG: degrees of
+                                      // freedom in the refinement
+                                      // face may need special
+                                      // attention, since they belong
+                                      // to the coarse level, but
+                                      // have fine level basis
+                                      // functions
   for (unsigned int level=0;level<mg_dof_handler.get_tria().n_levels();++level)
     for (IT i= copy_indices[level].begin();
         i != copy_indices[level].end();++i)
@@ -81,6 +95,13 @@ MGTransferPrebuilt<VECTOR>::copy_from_mg_add (
   OutVector                            &dst,
   const MGLevelObject<VECTOR> &src) const
 {
+                                      // For non-DG: degrees of
+                                      // freedom in the refinement
+                                      // face may need special
+                                      // attention, since they belong
+                                      // to the coarse level, but
+                                      // have fine level basis
+                                      // functions
   for (unsigned int level=0;level<mg_dof_handler.get_tria().n_levels();++level)
     for (IT i= copy_indices[level].begin();
         i != copy_indices[level].end();++i)
index b7dde4fe4d6c8bc0ed6f7abaa6c3639d891119e1..a2e7137008349d344a85098954c018adb1fbec83 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
+//    Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -156,7 +156,13 @@ void MGTransferPrebuilt<number>::build_matrices (
              }
          }
     }
-
+                                  // For non-DG elements, add a
+                                  // condense operator here.
+  
+                                  // Prepare indices to copy from a
+                                  // global vector to the parts of an
+                                  // MGVector corresponding to active
+                                  // cells.
   copy_indices.resize(mg_dof.get_tria().n_levels());
   std::vector<unsigned int> global_dof_indices (dofs_per_cell);
   std::vector<unsigned int> level_dof_indices  (dofs_per_cell);

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.