- if (smpi_privatize_global_variables == SmpiPrivStrategies::MMAP) {
- /* Now using the segment index of this process */
- ext->set_privatized_region(smpi_init_global_memory_segment_process());
- /* Done at the process's creation */
- SMPI_switch_data_segment(self);
- }
-
- std::string instance_id = self->get_property("instance_id");
- const int rank = xbt_str_parse_int(self->get_property("rank"), "Cannot parse rank");
+ const simgrid::s4u::Actor* self = simgrid::s4u::Actor::self();
+ ext->instance_id_ = self->get_property("instance_id");
+ const int rank = static_cast<int>(xbt_str_parse_int(self->get_property("rank"), "Cannot parse rank"));