[81] | 1 | MODULE physics_mod |
---|
[714] | 2 | USE icosa |
---|
[196] | 3 | USE field_mod |
---|
[714] | 4 | USE physics_interface_mod |
---|
| 5 | USE omp_para |
---|
| 6 | IMPLICIT NONE |
---|
[196] | 7 | PRIVATE |
---|
| 8 | |
---|
[739] | 9 | INTEGER, PARAMETER :: phys_none=0, phys_column=1, & |
---|
| 10 | phys_HS94=3, phys_LB2012=4, & |
---|
| 11 | phys_DCMIP=11, phys_DCMIP2016=12, & |
---|
| 12 | phys_lmdz_generic=21, phys_external=22 |
---|
[213] | 13 | INTEGER :: phys_type |
---|
[481] | 14 | TYPE(t_field),POINTER,SAVE :: f_extra_physics_2D(:), f_extra_physics_3D(:) |
---|
| 15 | TYPE(t_field),POINTER,SAVE :: f_dulon(:), f_dulat(:) |
---|
| 16 | TYPE(t_field),POINTER,SAVE :: f_ulon(:), f_ulat(:) |
---|
| 17 | TYPE(t_field),POINTER,SAVE :: f_p(:), f_pk(:) |
---|
| 18 | TYPE(t_field),POINTER,SAVE :: f_temp(:) |
---|
[714] | 19 | TYPE(t_field),POINTER,SAVE :: f_du_phys(:) |
---|
[196] | 20 | |
---|
[481] | 21 | CHARACTER(LEN=255),SAVE :: physics_type |
---|
[186] | 22 | !$OMP THREADPRIVATE(physics_type) |
---|
[81] | 23 | |
---|
[714] | 24 | PUBLIC :: physics, init_physics, zero_du_phys |
---|
[213] | 25 | |
---|
[81] | 26 | CONTAINS |
---|
| 27 | |
---|
[98] | 28 | SUBROUTINE init_physics |
---|
[178] | 29 | USE mpipara |
---|
| 30 | USE etat0_mod |
---|
[739] | 31 | USE etat0_venus_mod, ONLY : init_phys_venus=>init_physics |
---|
[215] | 32 | USE physics_dcmip_mod, ONLY : init_physics_dcmip=>init_physics |
---|
[381] | 33 | USE physics_dcmip2016_mod, ONLY : init_physics_dcmip2016=>init_physics |
---|
[327] | 34 | USE physics_lmdz_generic_mod, ONLY : init_physics_lmdz_generic=>init_physics |
---|
[347] | 35 | USE physics_external_mod, ONLY : init_physics_external=>init_physics |
---|
[739] | 36 | LOGICAL :: done |
---|
| 37 | physics_inout%dt_phys = dt*itau_physics |
---|
| 38 | !$OMP PARALLEL |
---|
| 39 | CALL allocate_field(f_du_phys,field_u,type_real,llm, name='du_phys') |
---|
[170] | 40 | |
---|
[217] | 41 | physics_type='none' |
---|
[81] | 42 | CALL getin("physics",physics_type) |
---|
[739] | 43 | ! below, flag done is set to .FALSE. if the CALL to init_XXX must be done outside any OMP PARALLEL region |
---|
| 44 | done=.TRUE. |
---|
| 45 | phys_type=phys_column |
---|
[81] | 46 | SELECT CASE(TRIM(physics_type)) |
---|
[217] | 47 | CASE ('none') |
---|
| 48 | IF(is_mpi_root) PRINT*,"NO PHYSICAL PACKAGE USED" |
---|
| 49 | phys_type = phys_none |
---|
| 50 | CASE ('held_suarez') |
---|
| 51 | phys_type = phys_HS94 |
---|
[325] | 52 | CASE ('Lebonnois2012') |
---|
| 53 | phys_type = phys_LB2012 |
---|
[739] | 54 | CALL init_phys_venus |
---|
[327] | 55 | CASE ('phys_lmdz_generic') |
---|
| 56 | phys_type=phys_lmdz_generic |
---|
[739] | 57 | done = .FALSE. |
---|
[347] | 58 | CASE ('phys_external') |
---|
| 59 | phys_type=phys_external |
---|
[739] | 60 | done = .FALSE. |
---|
| 61 | END SELECT |
---|
[726] | 62 | |
---|
[739] | 63 | IF(phys_type == phys_column) THEN |
---|
[217] | 64 | CALL allocate_field(f_dulon,field_t,type_real,llm, name='dulon') |
---|
| 65 | CALL allocate_field(f_dulat,field_t,type_real,llm, name='dulat') |
---|
[295] | 66 | CALL allocate_field(f_temp,field_t,type_real,llm, name='temp') |
---|
[481] | 67 | CALL allocate_field(f_ulon,field_t,type_real,llm, name='ulon') |
---|
| 68 | CALL allocate_field(f_ulat,field_t,type_real,llm, name='ulat') |
---|
| 69 | CALL allocate_field(f_p,field_t,type_real,llm+1, name='p') |
---|
| 70 | CALL allocate_field(f_pk,field_t,type_real,llm, name='pk') |
---|
[217] | 71 | CALL init_pack_before ! Compute physics_inout%ngrid and offsets used by pack/unpack |
---|
[739] | 72 | CALL init_pack_after ! Defines Ai, lon, lat in physics_inout |
---|
| 73 | |
---|
| 74 | SELECT CASE(TRIM(physics_type)) |
---|
| 75 | CASE ('dcmip') |
---|
| 76 | phys_type = phys_DCMIP |
---|
| 77 | CALL init_physics_dcmip |
---|
| 78 | CASE ('dcmip2016') |
---|
| 79 | phys_type = phys_DCMIP2016 |
---|
| 80 | CALL init_physics_dcmip2016 |
---|
| 81 | CASE DEFAULT |
---|
| 82 | IF(is_mpi_root) PRINT*, 'init_physics : Bad selector for variable physics <',& |
---|
| 83 | TRIM(physics_type), '> options are <none>, <held_suarez>, <Lebonnois2012>,', & |
---|
| 84 | '<dcmip>, <dcmip2016>, <phys_lmdz_generic>, <phys_external>' |
---|
| 85 | STOP |
---|
| 86 | END SELECT |
---|
| 87 | |
---|
| 88 | END IF |
---|
[726] | 89 | !$OMP END PARALLEL |
---|
| 90 | |
---|
[739] | 91 | IF(done==.FALSE.) THEN |
---|
| 92 | SELECT CASE(phys_type) |
---|
| 93 | CASE(phys_external) |
---|
| 94 | CALL init_physics_external |
---|
| 95 | CASE(phys_lmdz_generic) |
---|
| 96 | CALL init_physics_lmdz_generic |
---|
| 97 | END SELECT |
---|
| 98 | END IF |
---|
[726] | 99 | |
---|
[739] | 100 | IF(is_mpi_root) PRINT *, 'phys_type = ',phys_type |
---|
[726] | 101 | |
---|
[81] | 102 | END SUBROUTINE init_physics |
---|
| 103 | |
---|
[714] | 104 | SUBROUTINE zero_du_phys() |
---|
| 105 | REAL(rstd), DIMENSION(:,:), POINTER :: du |
---|
| 106 | INTEGER :: ind |
---|
| 107 | DO ind=1,ndomain |
---|
| 108 | IF (.NOT. assigned_domain(ind)) CYCLE |
---|
| 109 | CALL swap_dimensions(ind) |
---|
| 110 | CALL swap_geometry(ind) |
---|
| 111 | du=f_du_phys(ind) |
---|
| 112 | du(:,ll_begin:ll_end) = 0. |
---|
| 113 | END DO |
---|
| 114 | END SUBROUTINE zero_du_phys |
---|
| 115 | |
---|
| 116 | SUBROUTINE add_du_phys(coef, f_u) |
---|
| 117 | REAL(rstd), INTENT(IN) :: coef ! -1 before physics, +1 after physics |
---|
| 118 | TYPE(t_field),POINTER :: f_u(:) ! velocity field before/after call to physics |
---|
| 119 | REAL(rstd), DIMENSION(:,:), POINTER :: u, du |
---|
| 120 | INTEGER :: ind |
---|
| 121 | DO ind=1,ndomain |
---|
| 122 | IF (.NOT. assigned_domain(ind)) CYCLE |
---|
| 123 | CALL swap_dimensions(ind) |
---|
| 124 | CALL swap_geometry(ind) |
---|
| 125 | du=f_du_phys(ind) |
---|
| 126 | u=f_u(ind) |
---|
| 127 | du(:,ll_begin:ll_end) = du(:,ll_begin:ll_end) + coef*u(:,ll_begin:ll_end) |
---|
| 128 | END DO |
---|
| 129 | END SUBROUTINE add_du_phys |
---|
| 130 | |
---|
[327] | 131 | SUBROUTINE physics(it,f_phis, f_ps, f_theta_rhodz, f_ue, f_wflux, f_q) |
---|
| 132 | USE physics_lmdz_generic_mod, ONLY : physics_lmdz_generic => physics |
---|
[347] | 133 | USE physics_external_mod, ONLY : physics_external => physics |
---|
[213] | 134 | USE physics_dcmip_mod, ONLY : write_physics_dcmip => write_physics |
---|
[381] | 135 | USE physics_dcmip2016_mod, ONLY : write_physics_dcmip2016 => write_physics |
---|
[170] | 136 | USE etat0_heldsz_mod |
---|
[325] | 137 | USE etat0_venus_mod, ONLY : phys_venus => physics |
---|
[99] | 138 | INTEGER, INTENT(IN) :: it |
---|
[81] | 139 | TYPE(t_field),POINTER :: f_phis(:) |
---|
| 140 | TYPE(t_field),POINTER :: f_ps(:) |
---|
| 141 | TYPE(t_field),POINTER :: f_theta_rhodz(:) |
---|
| 142 | TYPE(t_field),POINTER :: f_ue(:) |
---|
[327] | 143 | TYPE(t_field),POINTER :: f_wflux(:) |
---|
[81] | 144 | TYPE(t_field),POINTER :: f_q(:) |
---|
[196] | 145 | |
---|
[149] | 146 | LOGICAL:: firstcall,lastcall |
---|
[196] | 147 | INTEGER :: ind |
---|
[213] | 148 | TYPE(t_physics_inout) :: args |
---|
[170] | 149 | |
---|
[714] | 150 | IF(MOD(it,itau_physics)==0 .AND. phys_type/=phys_none) THEN |
---|
| 151 | |
---|
| 152 | ! as a result of the the two calls to add_du_phys, |
---|
| 153 | ! du_phys increases by u(after physics) - u (before physics) |
---|
| 154 | CALL add_du_phys(-1., f_ue) |
---|
| 155 | |
---|
[213] | 156 | SELECT CASE(phys_type) |
---|
| 157 | CASE(phys_HS94) |
---|
| 158 | CALL held_suarez(f_ps,f_theta_rhodz,f_ue) |
---|
[327] | 159 | CASE (phys_lmdz_generic) |
---|
| 160 | CALL physics_lmdz_generic(it ,f_phis, f_ps, f_theta_rhodz, f_ue, f_wflux, f_q) |
---|
[347] | 161 | CASE (phys_external) |
---|
| 162 | CALL physics_external(it ,f_phis, f_ps, f_theta_rhodz, f_ue, f_wflux, f_q) |
---|
[325] | 163 | CASE(phys_LB2012) |
---|
| 164 | CALL phys_venus(f_ps,f_theta_rhodz,f_ue) |
---|
[213] | 165 | CASE DEFAULT |
---|
[214] | 166 | CALL physics_column(it, f_phis, f_ps, f_theta_rhodz, f_ue, f_q) |
---|
[213] | 167 | END SELECT |
---|
[149] | 168 | |
---|
[213] | 169 | CALL transfert_request(f_theta_rhodz,req_i0) |
---|
| 170 | CALL transfert_request(f_ue,req_e0_vect) |
---|
| 171 | CALL transfert_request(f_q,req_i0) |
---|
[714] | 172 | |
---|
| 173 | CALL add_du_phys(1., f_ue) |
---|
[213] | 174 | END IF |
---|
[149] | 175 | |
---|
[213] | 176 | IF (mod(it,itau_out)==0 ) THEN |
---|
[714] | 177 | CALL write_physics_tendencies |
---|
| 178 | CALL zero_du_phys |
---|
[213] | 179 | SELECT CASE(phys_type) |
---|
| 180 | CASE (phys_DCMIP) |
---|
| 181 | CALL write_physics_dcmip |
---|
[381] | 182 | CASE (phys_DCMIP2016) |
---|
| 183 | CALL write_physics_dcmip2016 |
---|
[213] | 184 | END SELECT |
---|
| 185 | END IF |
---|
| 186 | |
---|
| 187 | END SUBROUTINE physics |
---|
| 188 | |
---|
[714] | 189 | SUBROUTINE write_physics_tendencies |
---|
| 190 | USE observable_mod, ONLY : f_buf_ulon, f_buf_ulat |
---|
| 191 | USE wind_mod |
---|
| 192 | USE output_field_mod |
---|
| 193 | CALL transfert_request(f_du_phys,req_e1_vect) |
---|
| 194 | CALL un2ulonlat(f_du_phys, f_buf_ulon, f_buf_ulat, (1./(dt*itau_out))) |
---|
| 195 | CALL output_field("dulon_phys",f_buf_ulon) |
---|
| 196 | CALL output_field("dulat_phys",f_buf_ulat) |
---|
| 197 | END SUBROUTINE write_physics_tendencies |
---|
| 198 | |
---|
[214] | 199 | SUBROUTINE physics_column(it, f_phis, f_ps, f_theta_rhodz, f_ue, f_q) |
---|
[213] | 200 | USE physics_dcmip_mod, ONLY : full_physics_dcmip => full_physics |
---|
[381] | 201 | USE physics_dcmip2016_mod, ONLY : full_physics_dcmip2016 => full_physics |
---|
[295] | 202 | USE theta2theta_rhodz_mod |
---|
[281] | 203 | USE mpipara |
---|
[481] | 204 | USE checksum_mod |
---|
[213] | 205 | TYPE(t_field),POINTER :: f_phis(:) |
---|
| 206 | TYPE(t_field),POINTER :: f_ps(:) |
---|
| 207 | TYPE(t_field),POINTER :: f_theta_rhodz(:) |
---|
| 208 | TYPE(t_field),POINTER :: f_ue(:) |
---|
| 209 | TYPE(t_field),POINTER :: f_q(:) |
---|
| 210 | REAL(rstd),POINTER :: phis(:) |
---|
| 211 | REAL(rstd),POINTER :: ps(:) |
---|
[295] | 212 | REAL(rstd),POINTER :: temp(:,:) |
---|
[213] | 213 | REAL(rstd),POINTER :: ue(:,:) |
---|
| 214 | REAL(rstd),POINTER :: dulon(:,:) |
---|
| 215 | REAL(rstd),POINTER :: dulat(:,:) |
---|
| 216 | REAL(rstd),POINTER :: q(:,:,:) |
---|
[481] | 217 | REAL(rstd),POINTER :: p(:,:) |
---|
| 218 | REAL(rstd),POINTER :: pk(:,:) |
---|
| 219 | REAL(rstd),POINTER :: ulon(:,:) |
---|
| 220 | REAL(rstd),POINTER :: ulat(:,:) |
---|
[213] | 221 | INTEGER :: it, ind |
---|
| 222 | |
---|
[295] | 223 | CALL theta_rhodz2temperature(f_ps,f_theta_rhodz,f_temp) |
---|
[381] | 224 | |
---|
[213] | 225 | DO ind=1,ndomain |
---|
| 226 | IF (.NOT. assigned_domain(ind)) CYCLE |
---|
| 227 | CALL swap_dimensions(ind) |
---|
| 228 | CALL swap_geometry(ind) |
---|
| 229 | phis=f_phis(ind) |
---|
| 230 | ps=f_ps(ind) |
---|
[295] | 231 | temp=f_temp(ind) |
---|
[213] | 232 | ue=f_ue(ind) |
---|
| 233 | q=f_q(ind) |
---|
[481] | 234 | p=f_p(ind) |
---|
| 235 | pk=f_pk(ind) |
---|
| 236 | ulon=f_ulon(ind) |
---|
| 237 | ulat=f_ulat(ind) |
---|
| 238 | CALL pack_physics(pack_info(ind), phis, ps, temp, ue, q, p, pk, ulon, ulat) |
---|
[213] | 239 | END DO |
---|
| 240 | |
---|
| 241 | SELECT CASE(phys_type) |
---|
| 242 | CASE (phys_DCMIP) |
---|
[481] | 243 | IF (is_omp_level_master) CALL full_physics_dcmip |
---|
[381] | 244 | CASE (phys_DCMIP2016) |
---|
[481] | 245 | IF (is_omp_level_master) CALL full_physics_dcmip2016 |
---|
[281] | 246 | CASE DEFAULT |
---|
[481] | 247 | IF(is_master) PRINT *,'Internal error : illegal value of phys_type', phys_type |
---|
[281] | 248 | STOP |
---|
[196] | 249 | END SELECT |
---|
[170] | 250 | |
---|
[213] | 251 | DO ind=1,ndomain |
---|
| 252 | IF (.NOT. assigned_domain(ind)) CYCLE |
---|
| 253 | CALL swap_dimensions(ind) |
---|
| 254 | CALL swap_geometry(ind) |
---|
| 255 | ps=f_ps(ind) |
---|
[295] | 256 | temp=f_temp(ind) |
---|
[213] | 257 | q=f_q(ind) |
---|
| 258 | dulon=f_dulon(ind) |
---|
| 259 | dulat=f_dulat(ind) |
---|
[295] | 260 | CALL unpack_physics(pack_info(ind), ps, temp, q, dulon, dulat) |
---|
[213] | 261 | END DO |
---|
[481] | 262 | |
---|
[295] | 263 | CALL temperature2theta_rhodz(f_ps,f_temp,f_theta_rhodz) |
---|
[170] | 264 | |
---|
[213] | 265 | ! Transfer dulon, dulat |
---|
| 266 | CALL transfert_request(f_dulon,req_i0) |
---|
| 267 | CALL transfert_request(f_dulat,req_i0) |
---|
| 268 | |
---|
| 269 | DO ind=1,ndomain |
---|
| 270 | IF (.NOT. assigned_domain(ind)) CYCLE |
---|
| 271 | CALL swap_dimensions(ind) |
---|
| 272 | CALL swap_geometry(ind) |
---|
| 273 | ue=f_ue(ind) |
---|
| 274 | dulon=f_dulon(ind) |
---|
| 275 | dulat=f_dulat(ind) |
---|
| 276 | CALL compute_update_velocity(dulon, dulat, ue) |
---|
| 277 | END DO |
---|
| 278 | |
---|
[214] | 279 | END SUBROUTINE physics_column |
---|
[213] | 280 | |
---|
[481] | 281 | SUBROUTINE pack_physics(info, phis, ps, temp, ue, q, p, pk, ulon, ulat ) |
---|
[213] | 282 | USE wind_mod |
---|
| 283 | USE pression_mod |
---|
| 284 | USE theta2theta_rhodz_mod |
---|
[381] | 285 | USE exner_mod |
---|
[213] | 286 | TYPE(t_pack_info) :: info |
---|
| 287 | REAL(rstd) :: phis(iim*jjm) |
---|
| 288 | REAL(rstd) :: ps(iim*jjm) |
---|
[295] | 289 | REAL(rstd) :: temp(iim*jjm,llm) |
---|
[381] | 290 | REAL(rstd) :: pks(iim*jjm) |
---|
| 291 | REAL(rstd) :: pk(iim*jjm,llm) |
---|
[213] | 292 | REAL(rstd) :: ue(3*iim*jjm,llm) |
---|
| 293 | REAL(rstd) :: q(iim*jjm,llm,nqtot) |
---|
| 294 | |
---|
| 295 | REAL(rstd) :: p(iim*jjm,llm+1) |
---|
[584] | 296 | REAL(rstd) :: uc(iim*jjm,llm,3) |
---|
[213] | 297 | REAL(rstd) :: ulon(iim*jjm,llm) |
---|
| 298 | REAL(rstd) :: ulat(iim*jjm,llm) |
---|
| 299 | |
---|
[295] | 300 | !$OMP BARRIER |
---|
[213] | 301 | CALL compute_pression(ps,p,0) |
---|
[295] | 302 | !$OMP BARRIER |
---|
[381] | 303 | CALL compute_exner(ps,p,pks,pk,0) |
---|
| 304 | !$OMP BARRIER |
---|
[213] | 305 | CALL compute_wind_centered(ue,uc) |
---|
| 306 | CALL compute_wind_centered_lonlat_compound(uc, ulon, ulat) |
---|
[481] | 307 | !$OMP BARRIER |
---|
| 308 | IF (is_omp_level_master) THEN |
---|
| 309 | CALL pack_domain(info, phis, physics_inout%phis) |
---|
| 310 | CALL pack_domain(info, p, physics_inout%p) |
---|
| 311 | CALL pack_domain(info, pk, physics_inout%pk) |
---|
| 312 | CALL pack_domain(info, Temp, physics_inout%Temp) |
---|
| 313 | CALL pack_domain(info, ulon, physics_inout%ulon) |
---|
| 314 | CALL pack_domain(info, ulat, physics_inout%ulat) |
---|
| 315 | CALL pack_domain(info, q, physics_inout%q) |
---|
| 316 | ENDIF |
---|
| 317 | !$OMP BARRIER |
---|
[213] | 318 | END SUBROUTINE pack_physics |
---|
| 319 | |
---|
[295] | 320 | SUBROUTINE unpack_physics(info, ps,temp, q, dulon, dulat) |
---|
[213] | 321 | USE theta2theta_rhodz_mod |
---|
| 322 | TYPE(t_pack_info) :: info |
---|
| 323 | REAL(rstd) :: ps(iim*jjm) |
---|
[295] | 324 | REAL(rstd) :: temp(iim*jjm,llm) |
---|
[213] | 325 | REAL(rstd) :: q(iim*jjm,llm,nqtot) |
---|
| 326 | REAL(rstd) :: dulon(iim*jjm,llm) |
---|
| 327 | REAL(rstd) :: dulat(iim*jjm,llm) |
---|
| 328 | |
---|
| 329 | REAL(rstd) :: dq(iim*jjm,llm,nqtot) |
---|
| 330 | REAL(rstd) :: dTemp(iim*jjm,llm) |
---|
[481] | 331 | |
---|
| 332 | !$OMP BARRIER |
---|
| 333 | IF (is_omp_level_master) THEN |
---|
| 334 | CALL unpack_domain(info, dulon, physics_inout%dulon) |
---|
| 335 | CALL unpack_domain(info, dulat, physics_inout%dulat) |
---|
| 336 | CALL unpack_domain(info, dq, physics_inout%dq) |
---|
| 337 | CALL unpack_domain(info, Temp, physics_inout%Temp) |
---|
| 338 | CALL unpack_domain(info, dTemp, physics_inout%dTemp) |
---|
| 339 | q = q + physics_inout%dt_phys * dq |
---|
| 340 | Temp = Temp + physics_inout%dt_phys * dTemp |
---|
| 341 | ENDIF |
---|
| 342 | !$OMP BARRIER |
---|
| 343 | |
---|
[295] | 344 | ! CALL compute_temperature2theta_rhodz(ps,Temp,theta_rhodz,0) |
---|
[213] | 345 | END SUBROUTINE unpack_physics |
---|
| 346 | |
---|
| 347 | SUBROUTINE compute_update_velocity(dulon, dulat, ue) |
---|
| 348 | USE wind_mod |
---|
| 349 | REAL(rstd) :: dulon(iim*jjm,llm) |
---|
| 350 | REAL(rstd) :: dulat(iim*jjm,llm) |
---|
| 351 | REAL(rstd) :: ue(3*iim*jjm,llm) |
---|
[584] | 352 | REAL(rstd) :: duc(iim*jjm,llm,3) |
---|
[213] | 353 | REAL(rstd) :: dt2, due |
---|
| 354 | INTEGER :: i,j,ij,l |
---|
| 355 | ! Reconstruct wind tendencies at edges and add to normal wind |
---|
| 356 | CALL compute_wind_centered_from_lonlat_compound(dulon,dulat,duc) |
---|
| 357 | dt2=.5*physics_inout%dt_phys |
---|
[481] | 358 | DO l=ll_begin,ll_end |
---|
[213] | 359 | DO j=jj_begin,jj_end |
---|
| 360 | DO i=ii_begin,ii_end |
---|
| 361 | ij=(j-1)*iim+i |
---|
[584] | 362 | due = sum( (duc(ij,l,:) + duc(ij+t_right,l,:))*ep_e(ij+u_right,:) ) |
---|
[213] | 363 | ue(ij+u_right,l) = ue(ij+u_right,l) + dt2*due |
---|
| 364 | |
---|
[584] | 365 | due = sum( (duc(ij,l,:) + duc(ij+t_lup,l,:))*ep_e(ij+u_lup,:) ) |
---|
[213] | 366 | ue(ij+u_lup,l)=ue(ij+u_lup,l) + dt2*due |
---|
| 367 | |
---|
[584] | 368 | due = sum( (duc(ij,l,:) + duc(ij+t_ldown,l,:))*ep_e(ij+u_ldown,:) ) |
---|
[213] | 369 | ue(ij+u_ldown,l)=ue(ij+u_ldown,l) + dt2*due |
---|
| 370 | ENDDO |
---|
| 371 | ENDDO |
---|
| 372 | ENDDO |
---|
| 373 | END SUBROUTINE compute_update_velocity |
---|
| 374 | |
---|
[81] | 375 | END MODULE physics_mod |
---|