Changes between Version 38 and Version 39 of MpiKernels

Show
Ignore:
Timestamp:
02/29/12 10:14:39 (13 years ago)
Author:
mmamonski
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MpiKernels

    v38 v39  
    1818In 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()`. 
    1919=== Source files === 
    20 * LHC.cxa 
    21 * LHC.java 
    22 * PSB.java 
    23 * mpiringlib.{c,h} 
     20* LHC.cxa - the Complex Automata simulation file 
     21{{{ 
     22cxa.env["PSB:InitialEnergy"] = 1.2 
     23cxa.env["PSB:DeltaEnergy"] = 0.1 
     24cxa.env["PSB:MaxEnergy"] = 4.0 
     25 
     26cxa.env["LHC:DeltaEnergy"] = 0.2 
     27cxa.env["LHC:MaxEnergy"] = 12.0 
     28 
     29# declare kernels 
     30cxa.add_kernel('LHC', 'examples.mpiring.LHC') 
     31cxa.add_kernel('PSB', 'examples.mpiring.PSB') 
     32 
     33# configure connection scheme 
     34cs = cxa.cs 
     35 
     36cs.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 
    2443=== Running === 
    2544* plumber