Changes between Version 12 and Version 13 of Documentation/UserGuide/ParallelCoding
- Timestamp:
- 2020-03-19T18:44:30+01:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/ParallelCoding
v12 v13 16 16 '''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 17 17 the 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: 20 20 {{{ 21 21 IF (is_root_prc) THEN … … 28 28 CALL bcast(day_counter) 29 29 }}} 30 for restput, follow the example :31 {{{32 IF (is_root_prc) THEN33 var_name = 'day_counter'34 xtmp(1) = day_counter35 CALL restput (rest_id_stomate, var_name, 1, 1, 1, itime, xtmp)36 ENDIF37 }}}38 Note that only the master does the call to restget and restput.39 30 40 31 = OpenMP =