Changes between Version 3 and Version 4 of Command-line execution
- Timestamp:
- 09/24/12 11:14:49 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Command-line execution
v3 v4 11 11 Depending on the complexity of the code and the runtime requirements MUSCLE has different execution modes. In the simplest case, all the code can be run on a single machine, and no debugger or MPI is used. Use, for example, the {{{SimpleExample.cxa.rb}}} provided with MUSCLE. This will write data from submodel w to submodel r. 12 12 {{{ 13 muscle2 --cxa $MUSCLE_HOME/share/muscle/examples/cxa/SimpleExample.cxa.rb --main --all kernels 13 muscle2 --cxa $MUSCLE_HOME/share/muscle/examples/cxa/SimpleExample.cxa.rb --main --allkernels 14 }}} 15 Alternatively, the commands also have short notation, so 16 {{{ 17 muscle2 -c $MUSCLE_HOME/share/muscle/examples/cxa/SimpleExample.cxa.rb -ma 14 18 }}} 15 19 When we dissect this command line, it starts the with the cxa file it needs, {{{$MUSCLE_HOME/share/muscle/examples/cxa/SimpleExample.cxa.rb}}}. Then {{{--main}}} indicates that the current execution is the main execution site, more on that later. Finally, {{{--allkernels}}} indicates that all kernels specified in the cxa file should be executed at the same time.