]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve an error message. 11611/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 23 Jan 2021 04:59:03 +0000 (21:59 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 23 Jan 2021 04:59:03 +0000 (21:59 -0700)
source/grid/grid_out.cc

index ed8ac97d70145bef1ae140d77983f50e1348efb7..3d39cc3952c6fc85b2f7d408d5a83b81de7d7486 100644 (file)
@@ -1512,7 +1512,17 @@ void
 GridOut::write_svg(const Triangulation<dim, spacedim> &,
                    std::ostream & /*out*/) const
 {
-  Assert(false, ExcNotImplemented());
+  Assert(false,
+         ExcMessage("Mesh output in SVG format is not implemented for anything "
+                    "other than two-dimensional meshes in two-dimensional "
+                    "space. That's because three-dimensional meshes are best "
+                    "viewed in programs that allow changing the viewpoint, "
+                    "but SVG format does not allow this: It is an inherently "
+                    "2d format, and for three-dimensional meshes would "
+                    "require choosing one, fixed viewpoint."
+                    "\n\n"
+                    "You probably want to output your mesh in a format such "
+                    "as VTK, VTU, or gnuplot."));
 }
 
 
@@ -2787,6 +2797,7 @@ GridOut::write_svg(const Triangulation<2, 2> &tria, std::ostream &out) const
 }
 
 
+
 template <>
 void
 GridOut::write_mathgl(const Triangulation<1> &, std::ostream &) const
@@ -2796,6 +2807,7 @@ GridOut::write_mathgl(const Triangulation<1> &, std::ostream &) const
 }
 
 
+
 template <int dim, int spacedim>
 void
 GridOut::write_mathgl(const Triangulation<dim, spacedim> &tria,

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.