From 946b2bd0af9a4fc86e3ce9186f6b8cc9cbc2daa4 Mon Sep 17 00:00:00 2001 From: Aysegul Turupcu Date: Tue, 9 Jan 2018 12:04:36 +0100 Subject: [PATCH] cluster.cc: cluster member output format corrected (closes #40) --- gromos++/programs/cluster.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gromos++/programs/cluster.cc b/gromos++/programs/cluster.cc index 6aebc205..5ec3909b 100644 --- a/gromos++/programs/cluster.cc +++ b/gromos++/programs/cluster.cc @@ -320,9 +320,9 @@ int cluster_analysis(Arguments & args) { fout << setw(6) << i; for (size_t j = 0, jto = cluster[i].size(); j != jto; ++j) { if (j % 10 == 0 && j != 0) fout << "\n "; - fout << setw(6) << cluster[i][j]; + fout << " " << setw(7) << cluster[i][j]; } - if ((cluster[i].size()) % 10 != 0) fout << "\n"; + fout << "\n"; } if ((cluster[cluster.size() - 1].size()) % 10 == 0) fout << "\n"; fout << "END\n";