Changes between Version 4 and Version 5 of AdaptParallelization


Ignore:
Timestamp:
Aug 23, 2010, 12:08:28 PM (14 years ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdaptParallelization

    v4 v5  
    2424      CALL MPI_Comm_Size(MPI_COMM_WORLD, size, ierr)
    2525}}}
    26 (The call to `MPI_init` is mandatory, while the second an third line are optional)
     26(The call to `MPI_init` is mandatory, while the second an third line are optional) If the model itself is not parallelized, the MPI-initialization will not be present. Please see the section [#Non-parallelmodels] below for this case.
     27
    2728Subsequently, one can define `COMM_model` by adding
    2829{{{
     
    5051 * Each model task might write file output. This can lead to the case that several processes try to generate the same file or try to write into the same file. In the extreme case this can result in a program crash. For this reason, it might be useful to restrict the file output to a single model task. This can be implemented using the variable `task_id`, which is initialized by `init_parallel_pdaf` and holds the index of the model task ranging from 1 to `n_modeltasks`. (For the ensemble assimilation, it can be useful to switch off the regular file output of the model completely. As each model tasks holds only a single member of the ensemble, this output might not be useful. In this case,  the file output for the state estimate and perhaps all ensemble members should be done in the pre/poststep routine of the assimilation system.)
    5152
    52 == Implementation for non-parallel models ==
     53== Non-parallel models ==
     54
     55If the numerical model is not parallelized, it still can be used with parallel model tasks. First,