From: wolf Date: Tue, 1 Oct 2002 19:12:48 +0000 (+0000) Subject: Indent comment. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6008e9b6ad5ebd7dc63cf800c49e6dc67d05e433;p=dealii-svn.git Indent comment. git-svn-id: https://svn.dealii.org/trunk@6587 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/hsl/source/detached_ma27.cc b/deal.II/contrib/hsl/source/detached_ma27.cc index 3e84c53e5a..39995d79d1 100644 --- a/deal.II/contrib/hsl/source/detached_ma27.cc +++ b/deal.II/contrib/hsl/source/detached_ma27.cc @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -154,21 +155,25 @@ void monitor_parent_liveness (const pid_t master_pid) template void put (const T *t, const size_t N, const char *debug_info) { - // repeat writing until syscall is - // not interrupted - int ret; - do - ret = write (1, reinterpret_cast (t), - sizeof(T) * N); - while ((ret<0) && (errno==EINTR)); - if (ret < 0) - die ("error on client side in 'put'", ret, errno); - if (ret < static_cast(sizeof(T)*N)) - die ("not everything was written", ret, sizeof(T)*N); + unsigned int count = 0; + while (count < sizeof(T)*N) + { + // repeat writing until syscall + // is not interrupted + int ret; + do + ret = write (1, reinterpret_cast (t), + sizeof(T) * N); + while ((ret<0) && (errno==EINTR)); + if (ret < 0) + die ("error on client side in 'put'", ret, errno); + count += ret; + }; + fflush (NULL); CommunicationsLog:: - record_communication (CommunicationsLog::put, N, ret, debug_info); + record_communication (CommunicationsLog::put, N, count, debug_info); }; diff --git a/deal.II/lac/source/sparse_direct.cc b/deal.II/lac/source/sparse_direct.cc index 26cbfaaa82..3fbf854692 100644 --- a/deal.II/lac/source/sparse_direct.cc +++ b/deal.II/lac/source/sparse_direct.cc @@ -363,8 +363,9 @@ struct SparseDirectMA27::DetachedModeData unsigned int count = 0; while (count < sizeof(T)*N) { - // repeat writing until syscall is - // not interrupted + // repeat writing until + // syscall is not + // interrupted int ret; do ret = write (server_client_pipe[1],