Loading code/suspension (94.5 KiB) File changed.No diff preview for this file type. View original file View changed file code/suspension.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -484,7 +484,7 @@ void suspension::run_simulation(int N_config, int bnum_r, int bnum_phi, std::str for (int i = 0; i < N_config; i++) { double percentage = (static_cast<double>(i + 1) / N_config) * 100; std::cout << "Generating configuration " << i + 1 << " of " << N_config << " (" << percentage << "%)\r" << std::flush; //std::cout << "Generating configuration " << i + 1 << " of " << N_config << " (" << percentage << "%)\r" << std::flush; generate_gas(); obs_buff = measure_observable(bnum_r, bnum_phi); Loading @@ -511,7 +511,7 @@ void suspension::run_simulation(int N_config, int bnum_r, int bnum_phi, std::str } } save_gas_config_to_file(folder + "/config_" + finfo + ".csv"); //save_gas_config_to_file(folder + "/config_" + finfo + ".csv"); //save_observable_to_file(folder + "/obs_" + finfo + ".csv", obs_ensemble); save_avg_observable_to_file(folder + "/obs_" + finfo + ".csv"); } No newline at end of file Loading
code/suspension (94.5 KiB) File changed.No diff preview for this file type. View original file View changed file
code/suspension.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -484,7 +484,7 @@ void suspension::run_simulation(int N_config, int bnum_r, int bnum_phi, std::str for (int i = 0; i < N_config; i++) { double percentage = (static_cast<double>(i + 1) / N_config) * 100; std::cout << "Generating configuration " << i + 1 << " of " << N_config << " (" << percentage << "%)\r" << std::flush; //std::cout << "Generating configuration " << i + 1 << " of " << N_config << " (" << percentage << "%)\r" << std::flush; generate_gas(); obs_buff = measure_observable(bnum_r, bnum_phi); Loading @@ -511,7 +511,7 @@ void suspension::run_simulation(int N_config, int bnum_r, int bnum_phi, std::str } } save_gas_config_to_file(folder + "/config_" + finfo + ".csv"); //save_gas_config_to_file(folder + "/config_" + finfo + ".csv"); //save_observable_to_file(folder + "/obs_" + finfo + ".csv", obs_ensemble); save_avg_observable_to_file(folder + "/obs_" + finfo + ".csv"); } No newline at end of file