]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Convert Assert(...,ExcIO()) to AssertThrow(...,ExcIO()).
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 1 Mar 2015 16:37:47 +0000 (10:37 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 1 Mar 2015 17:07:26 +0000 (11:07 -0600)
source/base/data_out_base.cc
source/base/index_set.cc

index cd72d947a7eeccf737cbb92e28322ad92b3aa5d8..526a883d8fd1b8e64cf6dab8709c5c8448b5c069 100644 (file)
@@ -3964,7 +3964,7 @@ namespace DataOutBase
                   const EpsFlags                          &flags,
                   std::ostream                            &out)
   {
-    Assert (out, ExcIO());
+    AssertThrow (out, ExcIO());
 
 #ifndef DEAL_II_WITH_MPI
     // verify that there are indeed
@@ -6488,7 +6488,7 @@ namespace DataOutBase
   std::pair<unsigned int, unsigned int>
   determine_intermediate_format_dimensions (std::istream &input)
   {
-    Assert (input, ExcIO());
+    AssertThrow (input, ExcIO());
 
     unsigned int dim, spacedim;
     input >> dim >> spacedim;
@@ -7769,7 +7769,7 @@ template <int dim, int spacedim>
 void
 DataOutReader<dim,spacedim>::read (std::istream &in)
 {
-  Assert (in, ExcIO());
+  AssertThrow (in, ExcIO());
 
   // first empty previous content
   {
@@ -7874,7 +7874,7 @@ DataOutReader<dim,spacedim>::read (std::istream &in)
       std_cxx11::get<2>(vector_data_ranges[i]) = name;
     }
 
-  Assert (in, ExcIO());
+  AssertThrow (in, ExcIO());
 }
 
 
@@ -8016,7 +8016,7 @@ namespace DataOutBase
   operator >> (std::istream                     &in,
                Patch<dim,spacedim> &patch)
   {
-    Assert (in, ExcIO());
+    AssertThrow (in, ExcIO());
 
     // read a header line and compare
     // it to what we usually
@@ -8059,7 +8059,7 @@ namespace DataOutBase
       for (unsigned int j=0; j<patch.data.n_cols(); ++j)
         in >> patch.data[i][j];
 
-    Assert (in, ExcIO());
+    AssertThrow (in, ExcIO());
 
     return in;
   }
index cc2cc7352282f306eefb57a8079ce544ff2230c5..9b9a23face6e4126d51231878c9d0b28054477db 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2005 - 2014 by the deal.II authors
+// Copyright (C) 2005 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -372,7 +372,7 @@ IndexSet::read(std::istream &in)
 void
 IndexSet::block_write(std::ostream &out) const
 {
-  Assert (out, ExcIO());
+  AssertThrow (out, ExcIO());
   out.write(reinterpret_cast<const char *>(&index_space_size),
             sizeof(index_space_size));
   size_t n_ranges = ranges.size();
@@ -381,7 +381,7 @@ IndexSet::block_write(std::ostream &out) const
   if (ranges.empty() == false)
     out.write (reinterpret_cast<const char *>(&*ranges.begin()),
                ranges.size() * sizeof(Range));
-  Assert (out, ExcIO());
+  AssertThrow (out, ExcIO());
 }
 
 void

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.