]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Choice for "gnuplot_draft" in write
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 2 Oct 1998 11:46:32 +0000 (11:46 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 2 Oct 1998 11:46:32 +0000 (11:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@610 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_io.h
deal.II/deal.II/source/numerics/data_io.cc

index 9f5dce670caa7dbf0e8b3c8714426e6294c307a1..1502aebc010d3f679aa26b5a857d961043647aca 100644 (file)
@@ -271,7 +271,7 @@ class DataOut {
                                      * Provide a data type specifying the
                                      * presently supported output formats.
                                      */
-    enum OutputFormat { ucd, gnuplot, povray };
+    enum OutputFormat { ucd, gnuplot, gnuplot_draft, povray };
     
                                     /**
                                      * Constructor
@@ -354,6 +354,10 @@ class DataOut {
                                      * to the given data format. This function
                                      * simply calles the appropriate
                                      * #write_*# function.
+                                     *
+                                     * In case of gnuplot output, the
+                                     * standard accuracy of 1 is
+                                     * chosen.
                                      */
     void write (ostream &out, const OutputFormat output_format) const;
     
index 201916cfbcee8e335eea248c61ded2f4c306759d..1e6fb16dec5a1a9befd3a02fd27a0ec4ce790e03 100644 (file)
@@ -805,6 +805,9 @@ void DataOut<dim>::write (ostream &out,
       case gnuplot:
            write_gnuplot (out);
            break;
+      case gnuplot_draft:
+           write_gnuplot_draft (out);
+           break;
       case povray:
            write_povray (out);
            break;
@@ -822,6 +825,7 @@ string DataOut<dim>::default_suffix (const OutputFormat output_format) {
       case ucd:
            return ".inp";
       case gnuplot:
+      case gnuplot_draft:
            return ".gnuplot";
       case povray:
            return ".pov";

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.