Skip to content

Commit ba10ab5

Browse files
committed
close the print out of redundant information
1 parent 4639adb commit ba10ab5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

source/src_pdiag/test/diago_elpa_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#include "gtest/gtest.h"
66
#include <type_traits>
77

8-
#define DETAILINFO true
8+
#define DETAILINFO false
99
#define PASSTHRESHOLD 1e-4
10-
#define PRINT_NEW_MATRIX true // print out the H matrix after doing block-cycle distribution
10+
#define PRINT_NEW_MATRIX false // print out the H matrix after doing block-cycle distribution
1111
#define PRINT_HS false
1212

1313
/************************************************

source/src_pdiag/test/diago_elpa_utils.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ int elpa_sethandle(elpa_t &handle,
214214
if (error != 0)
215215
printf("ERROR: set blacs_context error=%d!\n", error);
216216

217+
elpa_set_integer(handle, "cannon_for_generalized", 0, &error);
218+
if (error != 0)
219+
printf("ERROR: set blacs_context error=%d!\n", error);
220+
217221
/* Setup */
218222
elpa_setup(handle); /* Set tunables */
219223
return 0;
@@ -416,7 +420,7 @@ template <class T> void random_hs(T *hmatrix, T *smatrix, int &n, int &sparsity)
416420
double mincoef = 0.0;
417421
if (int(u(e) % 10) > int(sparsity - 1))
418422
mincoef = 1.0;
419-
double realp = i + 1; // pow(-1.0,u(e)%2) * static_cast<double>(u(e))/max;
423+
double realp = pow(-1.0,u(e)%2) * static_cast<double>(u(e))/max;
420424

421425
hmatrix[i * n + j] = realp;
422426
if (std::is_same<T, std::complex<double>>::value)

0 commit comments

Comments
 (0)