- setprec...(2)
[alexxy/gromacs-colorvec.git] / src / colorvec.cpp
index 7eedff20607ca871b1ecac1f187ffd14e82f88fe..5fefc74059c2ff18ca6a070dae99b75b9e5f2216 100644 (file)
@@ -296,9 +296,9 @@ void anglesFileDump(const int frameNum, const std::string &output, const std::ve
             file << std::setw(4) << "no";
         }
         file << std::fixed;
-        file << std::setw(8) << std::setprecision(5) << colorFormation[i].a12;
-        file << std::setw(8) << std::setprecision(5) << colorFormation[i].b12;
-        file << std::setw(8) << std::setprecision(5) << colorFormation[i].n12;
+        file << std::setw(8) << std::setprecision(2) << colorFormation[i].a12;
+        file << std::setw(8) << std::setprecision(2) << colorFormation[i].b12;
+        file << std::setw(8) << std::setprecision(2) << colorFormation[i].n12;
         if (colorFormation[i].betaAngles.size() == 0) {
             file << std::setw(4) << 0;
         } else {
@@ -314,10 +314,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(5) << betaTemp[j];
+                file << std::setw(8) << std::setprecision(2) << betaTemp[j];
             }
             for (size_t j = 0; j < colorFormation[i].betaAngles.size(); ++j) {
-                file << std::setw(8) << std::setprecision(5) << colorFormation[i].betaAngles[j];
+                file << std::setw(8) << std::setprecision(2) << colorFormation[i].betaAngles[j];
             }
         }
         file << std::endl;