...
Running the command will generate some Scala files. This is how the directory should look:
Code Block |
---|
PartitionString:
partitionstring:
PartitionString.cnc
PartitionStringBase.scala
PartitionStringGraph.scala
PartitionStringCncDefinition.scala
|
In short, these are what the files represent:
...
This step does not rely on input from an Item Collection, instead it uses the tag as the input. Please refer to the Partition String example for a step instance that retrieves inputs from Item Collections.
After providing the Step implementations and a Main class to run and launch the program, the directory should now have the following structure:
Code Block |
---|
PartitionString:
partitionstring:
PartitionString.cnc
PartitionStringBase.scala
PartitionStringGraph.scala
PartitionStringMain.scala
UserPartitionStringSteps.scala
PartitionStringCncDefinition.scala
|
Now, run the CnC-Scala compiler to compile the Scala files:
cnc_scala_compile
Once the files have been successfully compiled, the application can be run using the CnC-Scala run command:
cnc_scala_run -Dcnc.workers=4 -Dcnc.enableForkJoin=true findprimes.FindPrimesMain 100
Running this program with an input of 100
should produce the following output:
...