Hi,
I am trying to run the code for the Master/Slave example, but keep getting
the following error:
(line 12) Int does not take parameters
archive.size() >= 10
The code I am running (taken from the website):
val i = Val[Int]
val archive = Val[Array[Int]]
val ex = ExplorationTask (i in (0 until 10))
val model = ScalaTask("i = i + 7") set (inputs += i, outputs += i)
val modelCapsule = Capsule(model)
val modelSlot1 = Slot(modelCapsule)
val modelSlot2 = Slot(modelCapsule)
val select = ScalaTask("archive = archive ++ (if (i % 3 == 0) Seq(i) else
Seq())") set(
(inputs, outputs) += (i,archive), archive := Array[Int]())
val selectCaps = MasterCapsule(select, archive)
val finalTask = EmptyTask()
val displayHook = ToStringHook()
val skel = ex -< modelSlot1 -- (selectCaps hook displayHook)
val loop = selectCaps -- modelSlot2
val terminate = selectCaps >| (Capsule (finalTask, strain=true) hook
displayHook,
"archive.size() >= 10")
skel & loop & terminate
Many thanks
Melissa
_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users