|
Last change
on this file since 3974 was
3829,
checked in by emillour, 7 months 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
|
| Line | |
|---|
| 1 | ! $Id: $ |
|---|
| 2 | MODULE print_control_mod |
|---|
| 3 | |
|---|
| 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" |
|---|
| 9 | !$OMP THREADPRIVATE(lunout,prt_level,debug) |
|---|
| 10 | |
|---|
| 11 | ! NB: Module variable Initializations done by set_print_control |
|---|
| 12 | ! routine from init_print_control_mod to avoid circular |
|---|
| 13 | ! module dependencies |
|---|
| 14 | |
|---|
| 15 | CONTAINS |
|---|
| 16 | |
|---|
| 17 | SUBROUTINE set_print_control(lunout_,prt_level_,debug_) |
|---|
| 18 | IMPLICIT NONE |
|---|
| 19 | INTEGER,INTENT(IN) :: lunout_ |
|---|
| 20 | INTEGER,INTENT(IN) :: prt_level_ |
|---|
| 21 | LOGICAL,INTENT(IN) :: debug_ |
|---|
| 22 | |
|---|
| 23 | lunout = lunout_ |
|---|
| 24 | prt_level = prt_level_ |
|---|
| 25 | debug = debug_ |
|---|
| 26 | |
|---|
| 27 | END SUBROUTINE set_print_control |
|---|
| 28 | |
|---|
| 29 | END MODULE print_control_mod |
|---|
Note: See
TracBrowser
for help on using the repository browser.