]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some checks for safety.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 May 1998 09:08:04 +0000 (09:08 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 May 1998 09:08:04 +0000 (09:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@308 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 010595842c7f9c99f172bde0feb0c3b9daacbee7..892af90a8451938d4db97af648f8dab4d974ce40 100644 (file)
@@ -564,6 +564,8 @@ void DataOut<dim>::write (ostream &out,
       case gnuplot:
            write_gnuplot (out);
            break;
+      default:
+           Assert (false, ExcNotImplemented());
     };
 };
 
@@ -577,6 +579,9 @@ string DataOut<dim>::default_suffix (const OutputFormat output_format) {
            return ".inp";
       case gnuplot:
            return ".gnuplot";
+      default:
+           Assert (false, ExcNotImplemented());
+           return "";
     };
 };
   

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.