Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Make usage of state hash a runtime parameter (instead of compile-time)
[simgrid.git] / src / mc / mc_checkpoint.c
index 2937f65..abd70f6 100644 (file)
@@ -517,7 +517,7 @@ mc_snapshot_t MC_take_snapshot(int num_state){
 
   if(_sg_mc_visited > 0 || strcmp(_sg_mc_property_file,"")){
     snapshot->stacks = MC_take_snapshot_stacks(&snapshot, snapshot->regions[0]->data);
-    if(MC_USE_SNAPSHOT_HASH && snapshot->stacks!=NULL) {
+    if(_sg_mc_hash && snapshot->stacks!=NULL) {
       snapshot->hash = mc_hash_processes_state(num_state, snapshot->stacks);
     } else {
       snapshot->hash = 0;