A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
surfCpuModel add execute on host
[simgrid.git]
/
examples
/
java
/
surfCpuModel
/
TestCpuModel.java
diff --git
a/examples/java/surfCpuModel/TestCpuModel.java
b/examples/java/surfCpuModel/TestCpuModel.java
index
91345fd
..
5dc900f
100644
(file)
--- a/
examples/java/surfCpuModel/TestCpuModel.java
+++ b/
examples/java/surfCpuModel/TestCpuModel.java
@@
-21,12
+21,10
@@
public class TestCpuModel {
public static void main(String[] args) throws NativeException {
/* initialize the MSG simulation. Must be done before anything else (even logging). */
public static void main(String[] args) throws NativeException {
/* initialize the MSG simulation. Must be done before anything else (even logging). */
- CpuModel cm = new CpuConstantModel();
+ Cpu
Constant
Model cm = new CpuConstantModel();
Surf.setCpuModel(cm);
Surf.setCpuModel(cm);
- //Msg.info(Surf.getCpuModel().getName());
- //Msg.info(cm.getName());
+
Msg.init(args);
Msg.init(args);
- //Msg.info("Cpu Loaded: "+Surf.getCpuModel().getName());
if(args.length < 2) {
Msg.info("Usage : TestPlugin platform_file deployment_file");
if(args.length < 2) {
Msg.info("Usage : TestPlugin platform_file deployment_file");
@@
-37,10
+35,8
@@
public class TestCpuModel {
/* construct the platform and deploy the application */
Msg.createEnvironment(args[0]);
Msg.deployApplication(args[1]);
/* construct the platform and deploy the application */
Msg.createEnvironment(args[0]);
Msg.deployApplication(args[1]);
- //Msg.info("Cpu Loaded: "+Surf.getCpuModel().getName());
- //Msg.info("Cpu Loaded: "+cm.getName());
+ Msg.info("Cpu Loaded: "+Surf.getCpuModel().getName());
- // getName());
/* execute the simulation. */
Msg.run();
}
/* execute the simulation. */
Msg.run();
}