X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f8206609c3591c41c137f344f413a504e56aecf8..8b853cf697928f829717bb60bd9c1cadaf2beb8e:/src/surf/cpu_cas01.cpp diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index a82c95663c..114e9e1a4f 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -76,7 +76,7 @@ CpuCas01Model::~CpuCas01Model() surf_cpu_model_pm = nullptr; } -Cpu* CpuCas01Model::create_cpu(simgrid::s4u::Host* host, std::vector* speed_per_pstate, int core) +Cpu* CpuCas01Model::create_cpu(simgrid::s4u::Host* host, const std::vector& speed_per_pstate, int core) { return new CpuCas01(this, host, speed_per_pstate, core); } @@ -84,9 +84,10 @@ Cpu* CpuCas01Model::create_cpu(simgrid::s4u::Host* host, std::vector* sp /************ * Resource * ************/ -CpuCas01::CpuCas01(CpuCas01Model* model, simgrid::s4u::Host* host, std::vector* speedPerPstate, int core) - : Cpu(model, host, model->get_maxmin_system()->constraint_new(this, core * speedPerPstate->front()), speedPerPstate, - core) +CpuCas01::CpuCas01(CpuCas01Model* model, simgrid::s4u::Host* host, const std::vector& speed_per_pstate, + int core) + : Cpu(model, host, model->get_maxmin_system()->constraint_new(this, core * speed_per_pstate.front()), + speed_per_pstate, core) { }