Changeset 3605 for LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat
- Timestamp:
- Nov 21, 2019, 4:43:45 PM (5 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
-
LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/inigeomphy_mod.F90
r2963 r3605 76 76 REAL,ALLOCATABLE,SAVE :: boundslonfi(:,:) 77 77 REAL,ALLOCATABLE,SAVE :: boundslatfi(:,:) 78 !$OMP THREADPRIVATE (latfi,lonfi,cufi,cvfi,airefi,boundslonfi,boundslatfi) 78 INTEGER,ALLOCATABLE,SAVE :: ind_cell_glo_fi(:) 79 !$OMP THREADPRIVATE (latfi,lonfi,cufi,cvfi,airefi,boundslonfi,boundslatfi,ind_cell_glo_fi) 79 80 80 81 ! Initialize Physics distibution and parameters and interface with dynamics … … 93 94 94 95 DO i=1,iim 96 boundslon_reg(i,east)=rlonu(i+1) 95 97 boundslon_reg(i,west)=rlonu(i) 96 boundslon_reg(i,east)=rlonu(i+1)97 98 ENDDO 98 99 … … 204 205 ALLOCATE(boundslonfi(klon_omp,4)) 205 206 ALLOCATE(boundslatfi(klon_omp,4)) 207 ALLOCATE(ind_cell_glo_fi(klon_omp)) 206 208 207 209 … … 214 216 boundslonfi(1:klon_omp,:) = boundslonfi_glo(offset+klon_omp_begin:offset+klon_omp_end,:) 215 217 boundslatfi(1:klon_omp,:) = boundslatfi_glo(offset+klon_omp_begin:offset+klon_omp_end,:) 218 ind_cell_glo_fi(1:klon_omp)=(/ (i,i=offset+klon_omp_begin,offset+klon_omp_end) /) 216 219 217 220 ! copy over local grid longitudes and latitudes 218 221 CALL init_geometry(klon_omp,lonfi,latfi,boundslonfi,boundslatfi, & 219 airefi, cufi,cvfi)222 airefi,ind_cell_glo_fi,cufi,cvfi) 220 223 221 224 ! copy over preff , ap(), bp(), etc -
LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phydev/iniphysiq_mod.F90
r2588 r3605 71 71 CALL inifis(prad,pg,pr,pcpp) 72 72 73 ! Initialize dimphy module74 CALL Init_dimphy(klon_omp,nlayer)75 76 73 ! Initialize tracer names, numbers, etc. for physics 77 74 CALL init_infotrac_phy(nqtot,type_trac) -
LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/etat0dyn_netcdf.F90
r2941 r3605 100 100 101 101 deg2rad = pi/180.0 102 102 y(:,:,:)=0 !ym warning unitialized variable 103 103 104 ! Compute psol AND tsol, knowing phis. 104 105 !******************************************************************************* -
LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90
r3412 r3605 1 ! 2 ! $Id$ 3 ! 1 4 MODULE etat0phys 2 5 ! … … 40 43 USE phys_state_var_mod, ONLY: zmea, zstd, zsig, zgam, zthe, zpic, zval, z0m, & 41 44 solsw, radsol, t_ancien, wake_deltat, wake_s, rain_fall, qsol, z0h, & 42 sollw, rugoro, q_ancien, wake_deltaq, wake_pe, snow_fall, ratqs,w01, &45 sollw,sollwdown, rugoro, q_ancien, wake_deltaq, wake_pe, snow_fall, ratqs,w01, & 43 46 sig1, ftsol, clwcon, fm_therm, wake_Cstar, pctsrf, entr_therm,radpas, f0,& 44 zmax0,fevap, rnebcon,falb_dir, wake_fip, agesno, detr_therm, pbl_tke, &47 zmax0,fevap, rnebcon,falb_dir, falb_dif, wake_fip, agesno, detr_therm, pbl_tke, & 45 48 phys_state_var_init, ql_ancien, qs_ancien, prlw_ancien, prsw_ancien, & 46 prw_ancien 49 prw_ancien, u10m,v10m, treedrg, u_ancien, v_ancien, wake_delta_pbl_TKE, wake_dens, & 50 ale_bl, ale_bl_trig, alp_bl, & 51 ale_wake, ale_bl_stat 52 47 53 USE comconst_mod, ONLY: pi, dtvr 48 54 … … 110 116 INTEGER :: iflag_radia, iflag_cldcon, iflag_ratqs 111 117 REAL :: ratqsbas, ratqshaut, tau_ratqs 112 LOGICAL :: ok_ade, ok_aie, ok_ alw, ok_cdnc, aerosol_couple, chemistry_couple118 LOGICAL :: ok_ade, ok_aie, ok_volcan, ok_alw, ok_cdnc, aerosol_couple, chemistry_couple 113 119 INTEGER :: flag_aerosol 114 120 INTEGER :: flag_aerosol_strat … … 133 139 iflag_cldcon, & 134 140 iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, & 135 ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple, & 141 ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan, & 142 aerosol_couple, & 136 143 chemistry_couple, flag_aerosol, flag_aerosol_strat, & 137 144 flag_aer_feedback, & … … 194 201 falb_dir(:, :, is_oce) = 0.5 195 202 falb_dir(:, :, is_sic) = 0.6 203 204 !ym warning missing init for falb_dif => set to 0 205 falb_dif(:,:,:)=0 206 207 u10m(:,:)=0 208 v10m(:,:)=0 209 treedrg(:,:,:)=0 210 196 211 fevap(:,:) = 0. 197 212 DO i=1,nbsrf; qsolsrf(:,i)=150.; END DO … … 201 216 solsw = 165. 202 217 sollw = -53. 218 !ym warning missing init for sollwdown => set to 0 219 sollwdown = 0. 203 220 t_ancien = 273.15 204 221 q_ancien = 0. … … 209 226 prw_ancien = 0. 210 227 agesno = 0. 211 228 229 u_ancien = 0. 230 v_ancien = 0. 231 wake_delta_pbl_TKE(:,:,:)=0 232 wake_dens(:)=0 233 ale_bl = 0. 234 ale_bl_trig =0. 235 alp_bl=0. 236 ale_wake=0. 237 ale_bl_stat=0. 238 239 z0m(:,:)=0 ! ym missing 5th subsurface initialization 240 212 241 z0m(:,is_oce) = rugmer(:) 213 242 z0m(:,is_ter) = MAX(1.0e-05,zstd(:)*zsig(:)/2.0) … … 315 344 ALLOCATE(zmea0(iml,jml),zstd0(iml,jml)) !--- Mean orography and std deviation 316 345 ALLOCATE(zsig0(iml,jml),zgam0(iml,jml)) !--- Slope and nisotropy 346 zsig0(:,:)=0 !ym uninitialized variable 347 zgam0(:,:)=0 !ym uninitialized variable 317 348 ALLOCATE(zthe0(iml,jml)) !--- Highest slope orientation 349 zthe0(:,:)=0 !ym uninitialized variable 318 350 ALLOCATE(zpic0(iml,jml),zval0(iml,jml)) !--- Peaks and valley heights 319 351 -
LMDZ6/branches/Ocean_skin/libf/dynphy_lonlat/phylmd/iniphysiq_mod.F90
r3125 r3605 31 31 USE inifis_mod, ONLY: inifis 32 32 USE time_phylmdz_mod, ONLY: init_time 33 USE temps_mod, ONLY: annee_ref, day_ini, day_ref, start_time, calend 33 USE temps_mod, ONLY: annee_ref, day_ini, day_ref, start_time, calend, year_len 34 34 USE infotrac_phy, ONLY: init_infotrac_phy 35 35 USE phystokenc_mod, ONLY: init_phystokenc 36 36 USE phyaqua_mod, ONLY: iniaqua 37 USE comconst_mod, ONLY: omeg, rad 37 38 #ifdef INCA 38 39 USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic … … 118 119 119 120 ! Initialize dimphy module (unless in 1D where it has already been done) 120 IF (klon_glo>1) CALL Init_dimphy(klon_omp,nlayer)121 ! IF (klon_glo>1) CALL Init_dimphy(klon_omp,nlayer) 121 122 122 123 ! Copy over "offline" settings … … 134 135 cu,cuvsurcv,cv,cvusurcu, & 135 136 aire,apoln,apols, & 136 aireu,airev,rlatvdyn )137 aireu,airev,rlatvdyn,rad,omeg) 137 138 END IF 138 139 … … 172 173 ! Additional initializations for aquaplanets 173 174 IF (iflag_phys>=100) THEN 174 CALL iniaqua(klon_omp, iflag_phys)175 CALL iniaqua(klon_omp,year_len,iflag_phys) 175 176 END IF 176 177
Note: See TracChangeset
for help on using the changeset viewer.