Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ext-edelen_a
src
Commits
7da583e0
Commit
7da583e0
authored
Oct 13, 2017
by
adelmann
🎗
Browse files
Remove pid from directory name because in case of more than 1 coworker
this makes no sense. Would need a type of group number.
parent
82e47268
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
opt-pilot/Simulation/OpalSimulation.cpp
opt-pilot/Simulation/OpalSimulation.cpp
+4
-5
No files found.
opt-pilot/Simulation/OpalSimulation.cpp
View file @
7da583e0
...
...
@@ -24,7 +24,6 @@
#ifdef BOOST_FILESYSTEM
#include "boost/filesystem/operations.hpp"
//#include "boost/filesystem/fstream.hpp"
#endif
// access to OPAL lib
...
...
@@ -75,7 +74,7 @@ OpalSimulation::OpalSimulation(Expressions::Named_t objectives,
std
::
string
hash
=
HashNameGenerator
::
generate
(
dict
);
std
::
ostringstream
tmp
;
tmp
.
precision
(
15
);
tmp
<<
simTmpDir_
<<
"/"
<<
hash
<<
"_"
<<
my_rank
;
tmp
<<
simTmpDir_
<<
"/"
<<
hash
;
// ADA
<< "_" << my_rank;
simulationDirName_
=
tmp
.
str
();
if
(
getenv
(
"TEMPLATES"
)
==
NULL
)
{
...
...
@@ -199,7 +198,7 @@ void OpalSimulation::run() {
if
(
err
!=
0
)
{
std
::
cout
<<
"Cannot chdir to "
<<
simulationDirName_
.
c_str
()
<<
std
::
endl
;
std
::
cout
<<
"Continuing, disregarding this simulation.."
std
::
cout
<<
"Continuing
1
, disregarding this simulation.."
<<
std
::
endl
;
return
;
}
...
...
@@ -249,7 +248,7 @@ void OpalSimulation::run() {
std
::
cout
<<
"Opal exception during simulation run: "
<<
ex
->
what
()
<<
std
::
endl
;
std
::
cout
<<
"Continuing, disregarding this simulation.."
std
::
cout
<<
"Continuing
2
, disregarding this simulation.."
<<
std
::
endl
;
}
catch
(
ClassicException
*
ex
)
{
...
...
@@ -262,7 +261,7 @@ void OpalSimulation::run() {
std
::
cout
<<
"Classic exception during simulation run: "
<<
ex
->
what
()
<<
std
::
endl
;
std
::
cout
<<
"Continuing, disregarding this simulation.."
std
::
cout
<<
"Continuing
3
, disregarding this simulation.."
<<
std
::
endl
;
}
...
...
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