]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove the mess introduced by the effort to be backward compatible in the deal.II...
authorleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Feb 2007 12:46:34 +0000 (12:46 +0000)
committerleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Feb 2007 12:46:34 +0000 (12:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@14415 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index f932787c1e997abd31ccae481bffc2f1e1f56dc8..4b83c442c5cc7f8f39d2106173e648699b52351e 100644 (file)
@@ -4133,38 +4133,7 @@ operator >> (std::istream                     &in,
 
   in >> patch.patch_index >> patch.n_subdivisions;
 
-  {
-                                    // we would like to use
-                                    //   in >> patch.points_are_available;
-                                    // here, but in order to be compatible with
-                                    // older versions of the deal.II intermediate
-                                    // format, which did not contain this flag,
-                                    // we have to do it a bit more complicated.
-    
-    std::string line;
-                                    // eat the rest of the previous line
-    getline (in, line);
-                                    // now get the line that should contain the
-                                    // flag points_are_available
-    getline (in,line);
-    if (line=="1" || line=="true")
-      patch.points_are_available=true;
-    else if (line=="0" || line=="false")
-      patch.points_are_available=false;
-    else
-      {
-                                        // this is not the line we searched
-                                        // for, so this must be the old format,
-                                        // i.e. we have no points available
-       patch.points_are_available=false;
-                                        // put back the line, because it needs
-                                        // to be read in the following
-       in.putback('\n');
-       for (int c=line.length()-1; c>=0; --c)
-         in.putback(line[c]);
-       in.putback('\n');
-      }
-  }
+  in >> patch.points_are_available;
   
   unsigned int n_rows, n_cols;
   in >> n_rows >> n_cols;

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.