mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 05:37:55 +00:00
move code out of conditional block to make sure slave_output_directory gets initialized fixes #848
This commit is contained in:
parent
5dd8fe4cf1
commit
d978cdf4c6
@ -34,13 +34,13 @@ int Trick::MonteCarlo::construct_run_directory() {
|
||||
return -1;
|
||||
}
|
||||
run_directory = run_base_directory + "MONTE_" + run_directory;
|
||||
}
|
||||
|
||||
// If the user hasn't set an output directory for slaves, default to
|
||||
// the same location as the master's output.
|
||||
if (slave_output_directory.empty()) {
|
||||
slave_output_directory = run_directory;
|
||||
}
|
||||
}
|
||||
|
||||
if (access(run_directory.c_str(), F_OK) != 0) {
|
||||
if (mkdir(run_directory.c_str(), 0775) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user