void Cpu::setVirtual(Cpu *physCpu)
{
+ if (!surf_energy)
+ return;
this->physCpu = physCpu;
XBT_DEBUG("The CPU is virtual so associate the cpu energy to the physical cpu instead of creating a new one");
std::map<Cpu*, CpuEnergy*>::iterator cpu_energy_it = surf_energy->find(physCpu);