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
when the value of an event is a negative one, don't update resource
[simgrid.git]
/
src
/
surf
/
surf.c
diff --git
a/src/surf/surf.c
b/src/surf/surf.c
index
22aeea5
..
3cf2263
100644
(file)
--- a/
src/surf/surf.c
+++ b/
src/surf/surf.c
@@
-518,9
+518,11
@@
void surf_presolve(void)
tmgr_history_get_next_event_leq(history, next_event_date,
&value,
(void **) &resource))) {
tmgr_history_get_next_event_leq(history, next_event_date,
&value,
(void **) &resource))) {
- resource->model->model_private->update_resource_state(resource,
- event, value,
- NOW);
+ if (value >= 0){
+ resource->model->model_private->update_resource_state(resource,
+ event, value,
+ NOW);
+ }
}
}
xbt_dynar_foreach(model_list, iter, model)
}
}
xbt_dynar_foreach(model_list, iter, model)