Changes between Version 19 and Version 20 of Installation
- Timestamp:
- 09/13/12 11:45:01 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Installation
v19 v20 76 76 $ cd muscle-2.0-RC1/build 77 77 }}} 78 }}} 79 Invoke MUSCLE build script with installation (we are installing muscle to the /opt/muscle directory which is default, type ./build.rb for more options): 78 Invoke MUSCLE build script with installation; this installs MUSCLE in /opt/muscle. For another location, add this as the first argument. 80 79 {{{ 81 80 ./build.sh … … 86 85 muscle2 --version 87 86 }}} 87 The command 88 {{{ 89 source /opt/muscle/etc/muscle.profile 90 }}} 91 should always be run before executing MUSCLE. It can help to put this command in {{{~/.bashrc}}} so that it runs on login. 88 92 89 93 == Sample execution == … … 93 97 94 98 ==== Sender ==== 95 At src/java/examples/simplejava/Senderwe provide a minimalist kernel written in Java, which sends data (an array of double).99 In {{{src/java/examples/simplejava/Sender.java}}} we provide a minimalist kernel written in Java, which sends data (an array of double). 96 100 97 101 ==== Receiver ==== 98 At src/java/examples/simplejava/ConsoleWriterwe provide a simple kernel written in Java. It receives data (an array of double) and prints its content to the standard output.102 In {{{src/java/examples/simplejava/ConsoleWriter.java}}} we provide a simple kernel written in Java. It receives data (an array of double) and prints its content to the standard output. 99 103 100 104 ==== CxA (coupling schema) ==== 101 The configuration src/cxa/SimpleExample.cxa.rb configures a minimal CxA which couples the src/java/examples/simplejava/Sender and src/java/examples/simplejava/ConsoleWriterkernels.105 The configuration {{{src/cxa/SimpleExample.cxa.rb}}} configures a minimal CxA which couples the {{{examples.simplejava.Sender}}} and {{{examples.simplejava.ConsoleWriter}}} kernels. 102 106 103 107 ==== Execution ==== 104 108 To run the simulation defined in src/cxa/SimpleExample.cxa.rb use the following command: 105 109 {{{ 106 #!div style="font-size: 90%" 107 {{{#!sh 108 /opt/muscle/bin/muscle --cxa_file src/cxa/SimpleExample.cxa.rb --main plumber w r --autoquit 109 }}} 110 }}} 110 muscle2 --cxa src/cxa/SimpleExample.cxa.rb --main --allkernels 111 }}} 112 or in shorthand notation 113 {{{ 114 muscle2 -c src/cxa/SimpleExample.cxa.rb -am 115 }}} 116 It will first start the Simulation Manager, of which one per simulation is necessary, and then the local manager, which manages the kernels that are started with one {{{muscle2}}} invocation. 111 117 112 118 == Further reading == 113 For more information how to use MUSCLE see doc/muscle_developers_guide.pdf included in the MUSCLE bundle.119 For more information how to use MUSCLE see the pages in [Documentation] and [Tutorials] section. 114 120 115 121 = MUSCLE Installation =