diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-12 10:41:50 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-12 10:41:50 -0400 |
commit | a5afeaf1173291598818782b0b7c58ed21fff7c1 (patch) | |
tree | c04e3032f1f7f906978cf9f44c5824657e0df351 | |
parent | a576331ff4c570a82f476b76570bbf75e7adc4bb (diff) | |
download | c++-a5afeaf1173291598818782b0b7c58ed21fff7c1.tar.gz c++-a5afeaf1173291598818782b0b7c58ed21fff7c1.tar.bz2 c++-a5afeaf1173291598818782b0b7c58ed21fff7c1.zip |
even more informative...
-rw-r--r-- | src/analyze_correlations.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/analyze_correlations.cpp b/src/analyze_correlations.cpp index 8a22080..2703f6f 100644 --- a/src/analyze_correlations.cpp +++ b/src/analyze_correlations.cpp @@ -131,6 +131,8 @@ int main (int argc, char *argv[]) { while (EOF != fscanf(metadata, "<| \"ID\" -> %lu, \"MODEL\" -> \"%[^\"]\", \"q\" -> %" SCNq ", \"D\" -> %" SCND ", \"L\" -> %" SCNL ", \"NV\" -> %" SCNv ", \"NE\" -> %" SCNv ", ", &id, model, &q, &D, &L, &nv, &ne)) { + printf("%lu: Processing...\n", id); + bool is_finite = 0 == strcmp(model, "ISING") || 0 == strcmp(model, "POTTS") || 0 == strcmp(model, "CLOCK") || 0 == strcmp(model, "DGM"); if (is_finite) { @@ -233,7 +235,7 @@ int main (int argc, char *argv[]) { fwrite(OO_E, sizeof(double), 2 + length, file_E); fclose(file_E); - printf("%lu: Correlation functions for %g steps written.\n", id, OO_S[0]); + printf("\033[F\033[J%lu: Correlation functions for %g steps written.\n", id, OO_S[0]); free(OO_S); free(OO_E); @@ -311,7 +313,7 @@ int main (int argc, char *argv[]) { free(data_S); free(data_E); - printf("%lu: Correlation functions for %g steps written.\n", id, OO_S[0]); + printf("\033[F\033[J%lu: Correlation functions for %g steps written.\n", id, OO_S[0]); free(OO_S); free(OO_E); |