From 042fd6504f871a6eec4a94ad5a956fcdea5cd85c Mon Sep 17 00:00:00 2001 From: Anatoly Date: Wed, 21 Oct 2020 18:49:41 +0300 Subject: [PATCH] - changed output --- src/colorvec.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/colorvec.cpp b/src/colorvec.cpp index 4cae924..3a6b835 100644 --- a/src/colorvec.cpp +++ b/src/colorvec.cpp @@ -291,7 +291,9 @@ void anglesFileDump(const int frameNum, const std::string &output, const std::ve } else { file << std::setw(4) << "no"; } - file << std::setw(8) << std::setprecision(2) << colorFormation[i].a12 << std::setw(8) << colorFormation[i].b12 << std::setw(8) << colorFormation[i].n12; + file << std::setw(8) << std::setprecision(3) << colorFormation[i].a12; + file << std::setw(8) << std::setprecision(3) << colorFormation[i].b12; + file << std::setw(8) << std::setprecision(3) << colorFormation[i].n12; temp = colorFormation[i].betaAngles.size() / 6; if (temp == 0) { file << std::setw(4) << 0; @@ -305,10 +307,10 @@ void anglesFileDump(const int frameNum, const std::string &output, const std::ve } file << std::setw(4) << temp; for (size_t j = 0; j < betaTemp.size(); ++j) { - file << std::setw(8) << std::setprecision(2) << betaTemp[j]; + file << std::setw(8) << std::setprecision(3) << betaTemp[j]; } for (size_t j = 0; j < colorFormation[i].betaAngles.size(); ++j) { - file << std::setw(8) << std::setprecision(2) << colorFormation[i].betaAngles[j]; + file << std::setw(8) << std::setprecision(3) << colorFormation[i].betaAngles[j]; } } file << std::endl; -- 2.22.0