Changes between Version 37 and Version 38 of MpiKernels
- Timestamp:
- 02/29/12 10:10:37 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MpiKernels
v37 v38 14 14 The example codes can be found in `src/cpp/examples/mpiring/` directory of the MUSCLE source distribution. The next two sections will describe two diffrent approachs of running such coupled simulation via MUSCLE. 15 15 == MPI Kernels as dynamic libraries == 16 This approach follows the original MUSCLE philosophy that relay on using Java Native !Interface/Accessmechanism to integrate C/C++ codes as MUSCLE kernels.16 This approach follows the original MUSCLE philosophy that relay on using [http://en.wikipedia.org/wiki/Java_Native_Interface Java Native Interface] (or more userfriendly [http://en.wikipedia.org/wiki/Java_Native_Access Java Native Access]) mechanism to integrate C/C++ codes as MUSCLE kernels. 17 17 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()`.