]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make it compile in 1d.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Mon, 21 May 2001 08:17:08 +0000 (08:17 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Mon, 21 May 2001 08:17:08 +0000 (08:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@4679 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_generator.cc

index a3d30d1967e3f7f0f80860ba7352542a005fa868..1edcf1daa3b0e193b450d81043b553dbc3ee4d4a 100644 (file)
@@ -738,6 +738,17 @@ void GridGenerator::hyper_shell (Triangulation<3>   &,
 #endif
 
 
+#if deal_II_dimension == 1
+
+template <>
+void GridGenerator::laplace_transformation (Triangulation<1> &,
+                                           const std::map<unsigned int,Point<1> > &)
+{
+  Assert(false, ExcNotImplemented());
+}
+
+#else
+
 template <int dim>
 void GridGenerator::laplace_transformation (Triangulation<dim> &tria,
                                            const std::map<unsigned int,Point<dim> > &new_points)
@@ -817,6 +828,8 @@ void GridGenerator::laplace_transformation (Triangulation<dim> &tria,
 }
 
 
+#endif
+
 void GridGenerator::laplace_solve (const SparseMatrix<double> &S,
                                   const std::map<unsigned int,double> &m,
                                   Vector<double> &u)
@@ -847,7 +860,9 @@ GridGenerator::hyper_cube (Triangulation<deal_II_dimension> &,
                           const double,
                           const double);
 
+#if deal_II_dimension != 1
 template void
 GridGenerator::laplace_transformation (Triangulation<deal_II_dimension> &,
                                       const std::map<unsigned int,Point<deal_II_dimension> > &);
 
+#endif

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.