Skip to content

Commit

Permalink
fix minor log output bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianpineda committed Dec 11, 2020
1 parent fece427 commit a7e443d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ACTIONet/decomposition/ACTION.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ namespace ACTIONet {

int feature_no = S_r.n_rows;

Rprintf("Running ACTION (%d threads):\n", thread_no); R_FlushConsole();
Rprintf("Running ACTION (%d threads):", thread_no); R_FlushConsole();

if(k_max == -1)
k_max = (int)S_r.n_cols;
Expand All @@ -328,7 +328,7 @@ namespace ACTIONet {
char status_msg[50];

sprintf(status_msg, "Iterating from k = %d ... %d:", k_min, k_max);
REprintf("\t%s %d/%d finished", status_msg, current_k, (k_max - k_min + 1)); R_FlushConsole();
REprintf("\n\t%s %d/%d finished", status_msg, current_k, (k_max - k_min + 1)); R_FlushConsole();
ParallelFor(k_min, k_max+1, thread_no, [&](size_t kk, size_t threadId) {

SPA_results SPA_res = run_SPA(X_r, kk);
Expand Down

0 comments on commit a7e443d

Please sign in to comment.