Last change
on this file since 5435 was
2311,
checked in by Ehouarn Millour, 10 years ago
|
Further modifications to enforce physics/dynamics separation:
- moved iniprint.h and misc_mod back to dyn3d_common, as these should only be used by dynamics.
- created print_control_mod in the physics to store flags prt_level, lunout, debug to be local to physics (should be used rather than iniprint.h)
- created abort_physic.F90 , which does the same job as abort_gcm() did, but should be used instead when in physics.
- reactivated inifis (turned it into a module, inifis_mod.F90) to initialize physical constants and print_control_mod flags.
EM
|
File size:
681 bytes
|
Line | |
---|
1 | ! $Id: $ |
---|
2 | MODULE inifis_mod |
---|
3 | |
---|
4 | CONTAINS |
---|
5 | |
---|
6 | SUBROUTINE inifis(prad, pg, pr, pcpp) |
---|
7 | ! Initialize some physical constants and settings |
---|
8 | USE print_control_mod, ONLY: init_print_control |
---|
9 | USE comcstphy, ONLY: rradius, & ! planet radius (m) |
---|
10 | rr, & ! recuced gas constant: R/molar mass of atm |
---|
11 | rg, & ! gravity |
---|
12 | rcpp ! specific heat of the atmosphere |
---|
13 | IMPLICIT NONE |
---|
14 | |
---|
15 | REAL,INTENT(IN) :: prad, pg, pr, pcpp |
---|
16 | |
---|
17 | ! Initialize flags lunout, prt_level, debug |
---|
18 | CALL init_print_control |
---|
19 | |
---|
20 | ! copy some fundamental parameters to physics |
---|
21 | rradius=prad |
---|
22 | rg=pg |
---|
23 | rr=pr |
---|
24 | rcpp=pcpp |
---|
25 | |
---|
26 | END SUBROUTINE inifis |
---|
27 | |
---|
28 | END MODULE inifis_mod |
---|
Note: See
TracBrowser
for help on using the repository browser.