source: trunk/LMDZ.COMMON/libf/phy_common/print_control_mod.F90 @ 3829

Last change on this file since 3829 was 3829, checked in by emillour, 4 days ago

Common physics routines:
Some minor reorganization of the print_control module, in line
with what is done in the Earth GCM and likely healthier with
respect to OpenMP.
EM

File size: 766 bytes
RevLine 
[1521]1! $Id: $
2MODULE print_control_mod
3
[3829]4  IMPLICIT NONE
5
6  INTEGER,SAVE :: lunout ! default output file identifier (6==screen)
7  INTEGER,SAVE :: prt_level ! debug output level
8  LOGICAL,SAVE :: debug ! flag to specify if in "debug mode"
[1521]9!$OMP THREADPRIVATE(lunout,prt_level,debug)
10
[1682]11  ! NB: Module variable Initializations done by set_print_control
12  !     routine from init_print_control_mod to avoid circular
13  !     module dependencies
14
[1521]15CONTAINS
16
[1682]17  SUBROUTINE set_print_control(lunout_,prt_level_,debug_)
[1521]18  IMPLICIT NONE
[3829]19    INTEGER,INTENT(IN) :: lunout_
20    INTEGER,INTENT(IN) :: prt_level_
21    LOGICAL,INTENT(IN) :: debug_
[1682]22     
23    lunout = lunout_
24    prt_level = prt_level_
25    debug = debug_
[1521]26   
[1682]27  END SUBROUTINE set_print_control
[1521]28
29END MODULE print_control_mod
Note: See TracBrowser for help on using the repository browser.