]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
dummy for 1d
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Feb 2000 17:57:47 +0000 (17:57 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Feb 2000 17:57:47 +0000 (17:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@2391 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/multigrid.templates.h

index 38d8050dc6dfd7cdf3aa72f54fec0bffc4e2d1af..412a84092417756fc7fffba84264775c2228c5b5 100644 (file)
 
 
 //TODO: This function needs to be specially implemented, since in 2d mode we use faces
-#if deal_II_dimension != 1
+#if deal_II_dimension == 1
 
 template <int dim>
 template <typename number>
 void
-Multigrid<dim>::copy_to_mg(const Vector<number>& src)
+Multigrid<dim>::copy_to_mg (const Vector<number>&)
+{
+  Assert(false, ExcNotImplemented());
+}
+
+#else
+
+template <int dim>
+template <typename number>
+void
+Multigrid<dim>::copy_to_mg (const Vector<number>& src)
 {
   const unsigned int dofs_per_cell = mg_dof_handler->get_fe().dofs_per_cell;
   const unsigned int dofs_per_face = mg_dof_handler->get_fe().dofs_per_face;

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.