]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a problem with a missing string end id.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 21 Feb 2000 13:18:16 +0000 (13:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 21 Feb 2000 13:18:16 +0000 (13:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@2449 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc
deal.II/examples/step-5/step-5.cc

index 3584831dd5f7355fa300b65065a99b1d22671f57..a131374b8696e255698b3dc862797f40c1f2328f 100644 (file)
@@ -740,6 +740,11 @@ void LaplaceProblem<dim>::output_results (const unsigned int cycle) const
   filename << "solution-"
           << cycle
           << ".eps";
+                                  // In order to append the final
+                                  // '\0', we have to put an ``ends''
+                                  // to the end of the string:
+  filename << ends;
+  
                                   // We can get whatever we wrote to
                                   // the stream using the ``str()''
                                   // function. Use that as filename
index 3584831dd5f7355fa300b65065a99b1d22671f57..a131374b8696e255698b3dc862797f40c1f2328f 100644 (file)
@@ -740,6 +740,11 @@ void LaplaceProblem<dim>::output_results (const unsigned int cycle) const
   filename << "solution-"
           << cycle
           << ".eps";
+                                  // In order to append the final
+                                  // '\0', we have to put an ``ends''
+                                  // to the end of the string:
+  filename << ends;
+  
                                   // We can get whatever we wrote to
                                   // the stream using the ``str()''
                                   // function. Use that as filename

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.