Skip to content

Commit

Permalink
Get rid of trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Jul 26, 2018
1 parent f22a189 commit 26fdcb6
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions amgcl/backend/builtin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ spectral_radius(const Matrix &A, int power_iters = 0) {
if (scale && c == i) dia = v;
}

if (scale) s *= math::norm(math::inverse(dia));
if (scale) s *= math::norm(math::inverse(dia));

emax = std::max(emax, s);
}
Expand Down Expand Up @@ -1049,7 +1049,7 @@ struct inner_product_impl<
return_type sum[1];
#endif


#pragma omp parallel
{
#ifdef _OPENMP
Expand Down
2 changes: 1 addition & 1 deletion amgcl/mpi/distributed_matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ spectral_radius(const mpi::distributed_matrix<Backend> &A, int power_iters = 0)
for(ptrdiff_t j = A_rem.ptr[i], e = A_rem.ptr[i+1]; j < e; ++j)
s += math::norm(A_rem.val[j]);

if (scale) s *= math::norm(math::inverse(dia));
if (scale) s *= math::norm(math::inverse(dia));

emax = std::max(emax, s);
}
Expand Down
2 changes: 1 addition & 1 deletion amgcl/relaxation/chebyshev.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class chebyshev {
}

size_t bytes() const {
return
return
backend::bytes(C) +
backend::bytes(*p) +
backend::bytes(*q);
Expand Down
2 changes: 1 addition & 1 deletion amgcl/relaxation/cusparse_ilu0.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ struct ilu0< backend::cuda<real> > {

size_t bytes() const {
// This is incomplete, as cusparse structs are opaque.
return
return
backend::bytes(ptr) +
backend::bytes(col) +
backend::bytes(val) +
Expand Down
12 changes: 6 additions & 6 deletions amgcl/solver/bicgstab.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ class bicgstab {

size_t bytes() const {
return
backend::bytes(*r) +
backend::bytes(*p) +
backend::bytes(*v) +
backend::bytes(*s) +
backend::bytes(*t) +
backend::bytes(*rh) +
backend::bytes(*r) +
backend::bytes(*p) +
backend::bytes(*v) +
backend::bytes(*s) +
backend::bytes(*t) +
backend::bytes(*rh) +
backend::bytes(*T);
}

Expand Down
2 changes: 1 addition & 1 deletion amgcl/solver/bicgstabl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The code is ported from PETSC BCGSL [1] and is based on [2].
[2] Fokkema, Diederik R. Enhanced implementation of BiCGstab (l) for solving
linear systems of equations. Universiteit Utrecht. Mathematisch Instituut,
1996.
The original code came with the following license:
\verbatim
Expand Down
2 changes: 1 addition & 1 deletion amgcl/solver/fgmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class fgmres {
b += backend::bytes(cs);
b += backend::bytes(sn);
b += backend::bytes(*r);

for(const auto &x : v) b += backend::bytes(*x);
for(const auto &x : z) b += backend::bytes(*x);

Expand Down
2 changes: 1 addition & 1 deletion amgcl/solver/gmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class gmres {
b += backend::bytes(cs);
b += backend::bytes(sn);
b += backend::bytes(*r);

for(const auto &x : v) b += backend::bytes(*x);

return b;
Expand Down
2 changes: 1 addition & 1 deletion amgcl/solver/idrs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class idrs {
* Determines the residual replacement strategy.
* If |r| > 1E3 |b| TOL/EPS) (EPS is the machine precision)
* the recursively computed residual is replaced by the true residual
* once |r| < |b| (to reduce the effect of large intermediate residuals
* once |r| < |b| (to reduce the effect of large intermediate residuals
* on the final accuracy).
* Default: No residual replacement.
*/
Expand Down

0 comments on commit 26fdcb6

Please sign in to comment.