Changeset 1523 for trunk/LMDZ.GENERIC
- Timestamp:
- Mar 28, 2016, 5:27:51 PM (9 years ago)
- Location:
- trunk/LMDZ.GENERIC
- Files:
-
- 1 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/README
r1521 r1523 1135 1135 - Adapted "create_make_gcm" and "makegcm*" scripts accordingly 1136 1136 (deleted obsolete makegcm_g95) 1137 1138 == 28/03/2016 == EM 1139 - Added module "regular_lonlat_mod.F90" (to store information on global 1140 lon-lat grid) in phy_common. 1141 - Turned iniphysiq (in dynlonlat_phylonlat/phymars)into module 1142 "iniphysiq_mod.F90". -
trunk/LMDZ.GENERIC/libf/dyn3d/gcm.F
r1422 r1523 12 12 . apdiss,purmats,physic,apphys 13 13 USE temps_mod, ONLY: day_ini,day_end,itaufin,dt 14 USE iniphysiq_mod, ONLY: iniphysiq 14 15 IMPLICIT NONE 15 16 … … 260 261 ! CALL iniphysiq(iim,jjm,llm,daysec,day_ini,dtphys/nsplit_phys, 261 262 CALL iniphysiq(iim,jjm,llm,daysec,day_ini,dtphys, 262 & rlatu,rlonv,aire,cu,cv,rad,g,r,cpp, 263 & 1) 263 & rlatu,rlatv,rlonu,rlonv, 264 & aire,cu,cv,rad,g,r,cpp, 265 & 1) 264 266 ! & iflag_phys) 265 267 !#endif -
trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/iniphysiq_mod.F90
r1520 r1523 1 MODULE iniphysiq_mod 2 3 CONTAINS 4 1 5 subroutine iniphysiq(ii,jj,nlayer,punjours, pdayref,ptimestep, & 2 rlatu,rl onv,aire,cu,cv,&6 rlatu,rlatv,rlonu,rlonv,aire,cu,cv, & 3 7 prad,pg,pr,pcpp,iflag_phys) 4 8 … … 20 24 use planete_mod, only: ini_planete_mod 21 25 USE comvert_mod, ONLY: ap,bp,preff 26 use regular_lonlat_mod, only: init_regular_lonlat, & 27 east, west, north, south, & 28 north_east, north_west, & 29 south_west, south_east 22 30 23 31 implicit none … … 34 42 integer,intent(in) :: ii ! number of atmospheric coulumns along longitudes 35 43 integer,intent(in) :: jj ! number of atompsheric columns along latitudes 36 real,intent(in) :: rlatu(jj+1) ! latitudes of the dynamics U grid 37 real,intent(in) :: rlonv(ii+1) ! longitudes of the dynamics V grid 44 real,intent(in) :: rlatu(jj+1) ! latitudes of the physics grid 45 real,intent(in) :: rlatv(jj) ! latitude boundaries of the physics grid 46 real,intent(in) :: rlonv(ii+1) ! longitudes of the physics grid 47 real,intent(in) :: rlonu(ii+1) ! longitude boundaries of the physics grid 38 48 real,intent(in) :: aire(ii+1,jj+1) ! area of the dynamics grid (m2) 39 49 real,intent(in) :: cu((ii+1)*(jj+1)) ! cu coeff. (u_covariant = cu * u) … … 48 58 character(len=80) :: abort_message 49 59 real :: total_area_phy, total_area_dyn 60 real :: pi 50 61 62 ! boundaries, on global grid 63 real,allocatable :: boundslon_reg(:,:) 64 real,allocatable :: boundslat_reg(:,:) 51 65 52 66 ! global array, on full physics grid: … … 56 70 real,allocatable :: cvfi(:) 57 71 real,allocatable :: airefi(:) 72 73 pi=2.*asin(1.0) 58 74 59 75 IF (nlayer.NE.klev) THEN … … 76 92 77 93 !call init_phys_lmdz(iim,jjm+1,llm,1,(/(jjm-1)*iim+2/)) 94 95 ! init regular global longitude-latitude grid points and boundaries 96 ALLOCATE(boundslon_reg(ii,2)) 97 ALLOCATE(boundslat_reg(jj+1,2)) 98 99 DO i=1,ii 100 boundslon_reg(i,east)=rlonu(i) 101 boundslon_reg(i,west)=rlonu(i+1) 102 ENDDO 103 104 boundslat_reg(1,north)= PI/2 105 boundslat_reg(1,south)= rlatv(1) 106 DO j=2,jj 107 boundslat_reg(j,north)=rlatv(j-1) 108 boundslat_reg(j,south)=rlatv(j) 109 ENDDO 110 boundslat_reg(jj+1,north)= rlatv(jj) 111 boundslat_reg(jj+1,south)= -PI/2 112 113 ! Write values in module regular_lonlat_mod 114 CALL init_regular_lonlat(ii,jj+1, rlonv(1:ii), rlatu, & 115 boundslon_reg, boundslat_reg) 78 116 79 117 ! Generate global arrays on full physics grid … … 144 182 145 183 end subroutine iniphysiq 184 185 186 END MODULE iniphysiq_mod
Note: See TracChangeset
for help on using the changeset viewer.