Changes between Version 38 and Version 39 of MpiKernels
- Timestamp:
- 02/29/12 10:14:39 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MpiKernels
v38 v39 18 18 In order to support MPI applications a new method, `public void executeDirectly()`, was introduced in the `CaController` class. Only this method is called instead of normal MUSCLE routines on the processes with non-zero rank. Process with rank 0 is started in the usual way. Portals cannot be attached to slave processes (i.e. to the processes with non-zero rank). The `executeDirectly` method default implementation calls by default `execute()`. 19 19 === Source files === 20 * LHC.cxa 21 * LHC.java 22 * PSB.java 23 * mpiringlib.{c,h} 20 * LHC.cxa - the Complex Automata simulation file 21 {{{ 22 cxa.env["PSB:InitialEnergy"] = 1.2 23 cxa.env["PSB:DeltaEnergy"] = 0.1 24 cxa.env["PSB:MaxEnergy"] = 4.0 25 26 cxa.env["LHC:DeltaEnergy"] = 0.2 27 cxa.env["LHC:MaxEnergy"] = 12.0 28 29 # declare kernels 30 cxa.add_kernel('LHC', 'examples.mpiring.LHC') 31 cxa.add_kernel('PSB', 'examples.mpiring.PSB') 32 33 # configure connection scheme 34 cs = cxa.cs 35 36 cs.attach('PSB' => 'LHC') { 37 tie('pipe', 'pipe') 38 } 39 }}} 40 * LHC.java - a Java wrapper kernel for LHC submodel 41 * PSB.java - a Java wrapper kernel for PSB submodel 42 * mpiringlib.c - compiled into `libmpiring` dynamic loadable library 24 43 === Running === 25 44 * plumber