]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an exception and use it.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 26 Sep 2002 16:01:37 +0000 (16:01 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 26 Sep 2002 16:01:37 +0000 (16:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@6530 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparse_direct.cc

index bb723ba3e9fe95c597ce60e1352d35e19bc61a48..0c240be6213e0115ba850c0bfaf87ac2cbd0a775 100644 (file)
@@ -245,15 +245,9 @@ struct SparseDirectMA27::DetachedModeData
             int ret = read (client_server_pipe[0],
                             reinterpret_cast<char *> (t) + count,
                             sizeof(T) * N - count);
-            if (ret < 0)
-              {
-                std::cerr << "****** error " << ret << " on server side!"
-                          << " errno=" << errno
-                          << std::endl;
-                abort ();
-              }
-            else
-              count += ret;
+            AssertThrow (ret >= 0,
+                         ExcReadError(ret, errno));
+            count += ret;
           };
       };
     

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.