Skip to content

Commit d16eb12

Browse files
author
Clang Robot
committed
Committing clang-format changes
1 parent da4030b commit d16eb12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/macis/solvers/davidson.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,19 +381,17 @@ auto p_davidson(int64_t N_local, int64_t max_m, const Functor& op,
381381
double E1_denom = 0, E1_num = 0;
382382
for(auto j = 0; j < N_local; ++j) {
383383
R_local[j] = -R_local[j] / (D_local[j] - LAM[0]);
384-
E1_num += X_local[j] * R_local[j];
384+
E1_num += X_local[j] * R_local[j];
385385
E1_denom += X_local[j] * X_local[j] / (D_local[j] - LAM[0]);
386386
}
387387
E1_denom = allreduce(E1_denom, MPI_SUM, comm);
388-
E1_num = allreduce(E1_num, MPI_SUM, comm);
388+
E1_num = allreduce(E1_num, MPI_SUM, comm);
389389
const double E1 = E1_num / E1_denom;
390390

391391
for(auto j = 0; j < N_local; ++j) {
392392
R_local[j] += E1 * X_local[j] / (D_local[j] - LAM[0]);
393393
}
394394

395-
396-
397395
// Project new vector out form old vectors
398396
p_gram_schmidt(N_local, k, V_local.data(), N_local, R_local, comm);
399397

0 commit comments

Comments
 (0)