Changes between Version 12 and Version 13 of Documentation/UserGuide/ParallelCoding


Ignore:
Timestamp:
2020-03-19T18:44:30+01:00 (4 years ago)
Author:
jgipsl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/ParallelCoding

    v12 v13  
    1616'''Except if you develop the routing module or if you make changes related to reading and writing files or changing the grid information''', you don't need to worry about 
    1717the parallelization. However, you have some rules to respect : 
    18  * 1. Use the subroutines called restget_p, restput_p and getin_p instead of restget, restput and getin. Note that all processes should call these subroutines _p and not only the master.  
    19  * 2. Exception : if you '''restart a scalar''', you have to use restget followed by a bcast command : 
     18 * Use the subroutines called restget_p, restput_p and getin_p instead of restget, restput and getin. Note that all processes should call these subroutines _p and not only the master.  
     19 * It is now possible to use restget_p also for scalar values. Before a workaround where only the master MPI did the call was used, see following example: 
    2020{{{ 
    2121    IF (is_root_prc) THEN 
     
    2828    CALL bcast(day_counter) 
    2929}}} 
    30  for restput, follow the example : 
    31 {{{ 
    32     IF (is_root_prc) THEN 
    33        var_name = 'day_counter' 
    34        xtmp(1) = day_counter 
    35        CALL restput (rest_id_stomate, var_name, 1, 1, 1, itime, xtmp) 
    36     ENDIF 
    37 }}} 
    38  Note that only the master does the call to restget and restput. 
    3930 
    4031= OpenMP =