Commit f260829e authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

using sample id

parent 62c898e6
......@@ -3,6 +3,7 @@
#include "Plot.h"
#include "mesh/Meshes.hpp"
#include "montecarlo/SampleID.hpp"
#include <memory>
#include <sys/stat.h>
//#include "plot/VtuPlot.h"
......@@ -29,9 +30,9 @@ public:
initializeMap(levels, meshes);
}
void SetDirectory(const string &dir) {
currentDirShort = dir;
currentDir = defaultDir + dir;
void SetDirectory(SampleID id) {
currentDirShort = id.Str();
currentDir = defaultDir + currentDirShort;
char *currentDirAsCharArr = const_cast<char *> (currentDir.c_str());
mkdir(currentDirAsCharArr, 0777);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment