LMDZ
phyaqua_mod.F90
Go to the documentation of this file.
1 !
2 ! $Id: $
3 !
4 MODULE phyaqua_mod
5 
6  IMPLICIT NONE
7 
8 CONTAINS
9 
10  SUBROUTINE iniaqua(nlon, iflag_phys)
11 
12  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
13  ! Create an initial state (startphy.nc) for the physics
14  ! Usefull for idealised cases (e.g. aquaplanets or testcases)
15  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16 
18  USE mod_phys_lmdz_para, ONLY: klon_omp
20  IMPLICIT NONE
21 
22  INTEGER,INTENT(IN) :: nlon,iflag_phys
23 
24  ! local variables
25  REAL :: pi
26 
27  ! initializations:
28  pi=2.*asin(1.)
29 
30  CALL phys_state_var_init()
31 
32  rlat(1:klon_omp)=latitude_deg(1:klon_omp)
33  rlon(1:klon_omp)=longitude_deg(1:klon_omp)
34 
35 
36  ! Here you could create an initial condition for the physics
37  ! ...
38  ! ... fill in the fields...
39  ! ...
40  ! ... and create a "startphy.nc" file
41  CALL phyredem ("startphy.nc")
42 
43  END SUBROUTINE iniaqua
44 
45 END MODULE phyaqua_mod
real, dimension(:), allocatable, save latitude_deg
subroutine phyredem(fichnom)
Definition: phyredem.F90:5
!$Id mode_top_bound COMMON comconstr && pi
Definition: comconst.h:7
!$Id ysinus ok_gradsfile hybrid COMMON logici iflag_phys
Definition: logic.h:10
subroutine iniaqua(nlon, iflag_phys)
Definition: phyaqua_mod.F90:11
real, dimension(:), allocatable, save rlon
real, dimension(:), allocatable, save rlat
subroutine phys_state_var_init()
real, dimension(:), allocatable, save longitude_deg