Skip to content

Commit

Permalink
increase output precision
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxianchao committed Jan 14, 2025
1 parent 33c85cf commit 9fcd01b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/mc_minimize/mc_minimizer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
*/

#include "mc_minimizer.cuh"
#include <iostream>
#include <fstream>
#include <chrono>

MC_Minimizer::MC_Minimizer(const char** param, int num_param)
{
Expand All @@ -26,6 +23,7 @@ MC_Minimizer::MC_Minimizer(const char** param, int num_param)
mc_output << param[n] << " ";
}
mc_output << "\n";
mc_output << std::defaultfloat << std::setprecision(12);
if (strcmp(param[1], "local") == 0) {
mc_output << "Step" << "\t" << "Maximum displacement" << "\t" << "Average displacement"
<< "\t" << "Energy difference" << "\t" << "Accept ratio" << std::endl;
Expand Down
4 changes: 4 additions & 0 deletions src/mc_minimize/mc_minimizer.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#include "force/force.cuh"
#include <random>
#include "minimize/minimizer_fire.cuh"
#include <iostream>
#include <fstream>
#include <chrono>
#include <iomanip>

class MC_Minimizer
{
Expand Down

0 comments on commit 9fcd01b

Please sign in to comment.