Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initializing SimGrid's model in another way
authorBruno Donassolo <bruno.donassolo@inria.fr>
Thu, 11 Mar 2021 17:19:38 +0000 (18:19 +0100)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Thu, 11 Mar 2021 17:29:55 +0000 (18:29 +0100)
commit4504b542f9d6cb7a6ee10762e9b779a049684428
tree9069229d527ce398da2e3121818dba293c7ba051
parent8735a101c4a502473ba7381e88aec514ebe1b828
Initializing SimGrid's model in another way

Preparing the field to change models type to primary/virtual.
To do so, we need another way to set the "default" models in the root
netzone.

For that, we changed the order we created the zone during the XML
parser:
1) Create the netzone object (and set as root netzone if it's the first)
2) Create the simgrid's models (if
  2.1) During the initialization of simgrid's models (by the
surf_model_description_t structure), the default models are set in the
root netzone
3) If it's a child netzone, copy models from its father

Probably temporary changes:
- Create setters for each model in the NetZoneImpl. To be reviewed after
we decided where to put the "default" models.
16 files changed:
include/simgrid/kernel/routing/NetZoneImpl.hpp
src/kernel/activity/CommImpl.cpp
src/kernel/routing/NetZoneImpl.cpp
src/surf/cpu_cas01.cpp
src/surf/cpu_ti.cpp
src/surf/disk_s19.cpp
src/surf/host_clm03.cpp
src/surf/network_cm02.cpp
src/surf/network_constant.cpp
src/surf/network_ib.cpp
src/surf/network_ns3.cpp
src/surf/network_smpi.cpp
src/surf/ptask_L07.cpp
src/surf/sg_platf.cpp
teshsuite/surf/surf_usage/surf_usage.cpp
teshsuite/surf/surf_usage2/surf_usage2.cpp