Changes between Version 14 and Version 15 of AdaptParallelization
- Timestamp:
- Aug 27, 2010, 9:59:35 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdaptParallelization
v14 v15 102 102 COMM_model = MPI_COMM_WORLD 103 103 }}} 104 together with the `USE` statement for `mod_parallel` should be added. Subsequently, the call to `init_parallel_pdaf` has to be inserted at the beginning of the model code. 104 together with the `USE` statement for `mod_parallel` should be added. Subsequently, the call to `init_parallel_pdaf` has to be inserted at the beginning of the model code. At the end of the program one should insert 105 {{{ 106 CALL MPI_Barrier(MPI_COMM_WORLD,MPIerr) 107 CALL MPI_Finalize(MPIerr) 108 }}} 109 The module `mod_parallel.F90` from the template directory provides subroutines for the initialization and finalization of MPI. Thus, if this module is used, one can simply add 110 {{{ 111 CALL init_parallel() 112 }}} 113 at the beginning of the program and 114 {{{ 115 CALL finalize_parallel() 116 }}} 117 to the source code. 105 118 106 If the program is runwith these extensions using multiple model tasks, the issues discussed in '[#Compilingtheextendedprogram Compiling the extended program]' can occur. This one has to take care about which processes will perform output to the screen or to files.119 If the program is executed with these extensions using multiple model tasks, the issues discussed in '[#Compilingtheextendedprogram Compiling the extended program]' can occur. This one has to take care about which processes will perform output to the screen or to files.