Skip to content

Commit

Permalink
get rid of printf
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonik committed Apr 18, 2019
1 parent 18d204e commit 4f6d926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interface/matrix.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,9 @@ namespace CTF {
CTF_SCALAPACK::pgesvd<dtype>('V', 'V', m, n, A, 1, 1, desca, s, u, 1, 1, descu, vt, 1, 1, descvt, work, lwork, &info);
if (threshold > 0.0){
rank = std::upper_bound(s, s+k, (dtype)threshold, [](const dtype a, const dtype b){ return std::abs(a) > std::abs(b); }) - s;
printf("truncated value ");
this->sr->print((char*)(s+rank));
printf(", threshold was %lf\n",threshold);
//printf("truncated value ");
//this->sr->print((char*)(s+rank));
//printf(", threshold was %lf\n",threshold);
}
int phase = S.edge_map[0].calc_phase();
if ((int)(this->wrld->rank) < phase){
Expand Down

0 comments on commit 4f6d926

Please sign in to comment.