From: kbaati Date: Mon, 27 Jul 2015 15:18:24 +0000 (+0200) Subject: * update tutorial X-Git-Tag: v3_12~368 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5e419d76df1e88f5e9fa4d01fc70bbc48c1875a9 * update tutorial * fix bug: add a control on the controlStepMap size --- diff --git a/contrib/psg/src/psgsim/PSGSimulator.java b/contrib/psg/src/psgsim/PSGSimulator.java index 4d45d4e438..cd60973b3d 100644 --- a/contrib/psg/src/psgsim/PSGSimulator.java +++ b/contrib/psg/src/psgsim/PSGSimulator.java @@ -85,8 +85,9 @@ public class PSGSimulator { /** Process Controller **/ PSGPlatform.control(); - new PSGProcessController(PSGPlatform.hostList[0], - PSGPlatform.hostList[0].getName(), null).start(); + if (!PSGPlatform.controlStepMap.isEmpty()) + new PSGProcessController(PSGPlatform.hostList[0], + PSGPlatform.hostList[0].getName(), null).start(); /** Load and execute the initializers classes in the configuration file **/ PSGPlatform.init(); diff --git a/contrib/psg/tutorial.pdf b/contrib/psg/tutorial.pdf index 591649f7d1..faf141bbf1 100644 Binary files a/contrib/psg/tutorial.pdf and b/contrib/psg/tutorial.pdf differ