Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
f260829e
Commit
f260829e
authored
Sep 21, 2020
by
niklas.baumgarten
Browse files
using sample id
parent
62c898e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/main/MultilevelPlotter.hpp
View file @
f260829e
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment