A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change xbt_cfg_set_default_<type> -> simgrid::config::set_default<type>.
[simgrid.git]
/
src
/
simdag
/
sd_global.cpp
diff --git
a/src/simdag/sd_global.cpp
b/src/simdag/sd_global.cpp
index
1a31386
..
cf67f8c
100644
(file)
--- a/
src/simdag/sd_global.cpp
+++ b/
src/simdag/sd_global.cpp
@@
-6,8
+6,8
@@
#include "simdag_private.hpp"
#include "simgrid/kernel/resource/Action.hpp"
#include "simgrid/s4u/Engine.hpp"
#include "simdag_private.hpp"
#include "simgrid/kernel/resource/Action.hpp"
#include "simgrid/s4u/Engine.hpp"
-#include "simgrid/sg_config.h"
-#include "src/include/instr/instr_interface.h"
+#include "simgrid/sg_config.h
pp
"
+#include "src/include/instr/instr_interface.h
pp
"
#include "src/surf/surf_interface.hpp"
XBT_LOG_NEW_CATEGORY(sd, "Logging specific to SimDag");
#include "src/surf/surf_interface.hpp"
XBT_LOG_NEW_CATEGORY(sd, "Logging specific to SimDag");
@@
-161,8
+161,8
@@
void SD_init_nocheck(int *argc, char **argv)
surf_init(argc, argv);
surf_init(argc, argv);
-
xbt_cfg_setdefault_string
("host/model", "ptask_L07");
- if
(xbt_cfg_get_boolean
("clean-atexit"))
+
simgrid::config::set_default<std::string>
("host/model", "ptask_L07");
+ if
(simgrid::config::get_value<bool>
("clean-atexit"))
atexit(SD_exit);
if (_sg_cfg_exit_asap) {
exit(0);
atexit(SD_exit);
if (_sg_cfg_exit_asap) {
exit(0);