From f59bc1e7f128d810e4a2f84c403df503f2b7ed73 Mon Sep 17 00:00:00 2001 From: Ralf Hartmann Date: Mon, 21 May 2001 08:17:08 +0000 Subject: [PATCH] Make it compile in 1d. git-svn-id: https://svn.dealii.org/trunk@4679 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/grid_generator.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/deal.II/deal.II/source/grid/grid_generator.cc b/deal.II/deal.II/source/grid/grid_generator.cc index a3d30d1967..1edcf1daa3 100644 --- a/deal.II/deal.II/source/grid/grid_generator.cc +++ b/deal.II/deal.II/source/grid/grid_generator.cc @@ -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 > &) +{ + Assert(false, ExcNotImplemented()); +} + +#else + template void GridGenerator::laplace_transformation (Triangulation &tria, const std::map > &new_points) @@ -817,6 +828,8 @@ void GridGenerator::laplace_transformation (Triangulation &tria, } +#endif + void GridGenerator::laplace_solve (const SparseMatrix &S, const std::map &m, Vector &u) @@ -847,7 +860,9 @@ GridGenerator::hyper_cube (Triangulation &, const double, const double); +#if deal_II_dimension != 1 template void GridGenerator::laplace_transformation (Triangulation &, const std::map > &); +#endif -- 2.39.5