Changes between Version 14 and Version 15 of AdaptParallelization


Ignore:
Timestamp:
Aug 27, 2010, 9:59:35 AM (14 years ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdaptParallelization

    v14 v15  
    102102      COMM_model = MPI_COMM_WORLD
    103103}}}
    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.
     104together 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}}}
     109The 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}}}
     113at the beginning of the program and
     114{{{
     115    CALL finalize_parallel()
     116}}}
     117to the source code.
    105118
    106 If the program is run 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.
     119If 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.