Fixed outputfile numeration:

Adding leading 0 to match length of file_endings.
MPI_RANK 9 with MPI_SIZE 100 -> '009'
This commit is contained in:
Christian
2019-07-23 15:42:22 +02:00
parent 1338b18aed
commit b3633ce956
3 changed files with 12 additions and 2 deletions
+2
View File
@@ -10,6 +10,7 @@
#define simulation_hpp
#include <mpi.h>
#include "particle_looper.hpp"
class Simulation {
@@ -47,6 +48,7 @@ private:
int calc_dir_number();
std::string build_dirname(int dir_number);
void create_out_dir(std::string dirname);
std::string create_number_extension();
public:
void doit();