Changeset 1398 for palm/trunk/SOURCE
- Timestamp:
- May 7, 2014 11:15:00 AM (11 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/boundary_conds.f90
r1381 r1398 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Dirichlet-condition at the top for u and v changed to u_init and v_init also 23 ! for large_scale_forcing 23 24 ! 24 25 ! Former revisions: … … 162 163 u_p(nzt+1,:,:) = u_init(nzt+1) 163 164 v_p(nzt+1,:,:) = v_init(nzt+1) 164 IF ( large_scale_forcing) THEN165 u_p(nzt+1,:,:) = ug(nzt+1)166 v_p(nzt+1,:,:) = vg(nzt+1)167 END IF168 165 !$acc end kernels 169 166 ELSE -
palm/trunk/SOURCE/fft_xy.f90
r1393 r1398 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! bugfix: typo removed for KIND in CMPLX function 23 23 ! 24 24 ! Former revisions: … … 1210 1210 y_out(0) = CMPLX( ar_tr(0,i,k), 0.0_wp, KIND=wp ) 1211 1211 DO j = 1, (ny+1)/2 - 1 1212 y_out(j) = CMPLX( ar_tr(j,i,k), ar_tr(ny+1-j,i,k ,&1213 KIND=wp ))1212 y_out(j) = CMPLX( ar_tr(j,i,k), ar_tr(ny+1-j,i,k), & 1213 KIND=wp ) 1214 1214 ENDDO 1215 1215 y_out((ny+1)/2) = CMPLX( ar_tr((ny+1)/2,i,k), 0.0_wp, & -
palm/trunk/SOURCE/nudging.f90
r1383 r1398 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Subroutine nudge_ref is extended to set u_init and v_init to the current 23 ! nudging profiles 23 24 ! 24 25 ! Former revisions: … … 552 553 553 554 USE arrays_3d, & 554 ONLY: time_vert, ptnudge, pt_init, qnudge, q_init 555 ONLY: time_vert, ptnudge, pt_init, qnudge, q_init, unudge, u_init, & 556 vnudge, v_init 555 557 556 558 USE kinds … … 580 582 pt_init = ptnudge(:,nt) + fac * ( ptnudge(:,nt+1) - ptnudge(:,nt) ) 581 583 q_init = qnudge(:,nt) + fac * ( qnudge(:,nt+1) - qnudge(:,nt) ) 584 u_init = unudge(:,nt) + fac * ( unudge(:,nt+1) - unudge(:,nt) ) 585 v_init = vnudge(:,nt) + fac * ( vnudge(:,nt+1) - vnudge(:,nt) ) 582 586 583 587 END SUBROUTINE nudge_ref 584 588 585 586 589 END MODULE nudge_mod -
palm/trunk/SOURCE/prognostic_equations.f90
r1381 r1398 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Rayleigh-damping for horizontal velocity components changed: instead of damping 23 ! against ug and vg, damping against u_init and v_init is used to allow for a 24 ! homogenized treatment in case of nudging 23 25 ! 24 26 ! Former revisions: … … 149 151 ref_state, rho, sa, sa_init, sa_p, saswsb, saswst, shf, tend, & 150 152 te_m, tnr_m, tpt_m, tq_m, tqr_m, tsa_m, tswst, tu_m, tv_m, & 151 tw_m, u, ug, u_ p, v, vg, vpt, v_p, w, w_p153 tw_m, u, ug, u_init, u_p, v, vg, vpt, v_init, v_p, w, w_p 152 154 153 155 USE control_parameters, & … … 383 385 u_p(k,j,i) = u(k,j,i) + dt_3d * ( tsc(2) * tend(k,j,i) + & 384 386 tsc(3) * tu_m(k,j,i) ) & 385 - tsc(5) * rdf(k) * ( u(k,j,i) - u g(k) )387 - tsc(5) * rdf(k) * ( u(k,j,i) - u_init(k) ) 386 388 ENDDO 387 389 … … 442 444 v_p(k,j,i) = v(k,j,i) + dt_3d * ( tsc(2) * tend(k,j,i) + & 443 445 tsc(3) * tv_m(k,j,i) ) & 444 - tsc(5) * rdf(k) * ( v(k,j,i) - v g(k) )446 - tsc(5) * rdf(k) * ( v(k,j,i) - v_init(k) ) 445 447 ENDDO 446 448 … … 975 977 u_p(k,j,i) = u(k,j,i) + dt_3d * ( tsc(2) * tend(k,j,i) + & 976 978 tsc(3) * tu_m(k,j,i) ) & 977 - tsc(5) * rdf(k) * ( u(k,j,i) - u g(k) )979 - tsc(5) * rdf(k) * ( u(k,j,i) - u_init(k) ) 978 980 ENDDO 979 981 ENDDO … … 1051 1053 v_p(k,j,i) = v(k,j,i) + dt_3d * ( tsc(2) * tend(k,j,i) + & 1052 1054 tsc(3) * tv_m(k,j,i) ) & 1053 - tsc(5) * rdf(k) * ( v(k,j,i) - v g(k) )1055 - tsc(5) * rdf(k) * ( v(k,j,i) - v_init(k) ) 1054 1056 ENDDO 1055 1057 ENDDO … … 1811 1813 ! 1812 1814 !-- Prognostic equation for u-velocity component 1813 !$acc kernels present( nzb_u_inner, rdf, tend, tu_m, u, u g, u_p )1815 !$acc kernels present( nzb_u_inner, rdf, tend, tu_m, u, u_init, u_p ) 1814 1816 !$acc loop independent 1815 1817 DO i = i_left, i_right … … 1821 1823 u_p(k,j,i) = u(k,j,i) + dt_3d * ( tsc(2) * tend(k,j,i) + & 1822 1824 tsc(3) * tu_m(k,j,i) ) & 1823 - tsc(5) * rdf(k) * ( u(k,j,i) - u g(k) )1825 - tsc(5) * rdf(k) * ( u(k,j,i) - u_init(k) ) 1824 1826 ! 1825 1827 !-- Tendencies for the next Runge-Kutta step … … 1878 1880 ! 1879 1881 !-- Prognostic equation for v-velocity component 1880 !$acc kernels present( nzb_v_inner, rdf, tend, tv_m, v, v g, v_p )1882 !$acc kernels present( nzb_v_inner, rdf, tend, tv_m, v, v_init, v_p ) 1881 1883 !$acc loop independent 1882 1884 DO i = i_left, i_right … … 1888 1890 v_p(k,j,i) = v(k,j,i) + dt_3d * ( tsc(2) * tend(k,j,i) + & 1889 1891 tsc(3) * tv_m(k,j,i) ) & 1890 - tsc(5) * rdf(k) * ( v(k,j,i) - v g(k) )1892 - tsc(5) * rdf(k) * ( v(k,j,i) - v_init(k) ) 1891 1893 ! 1892 1894 !-- Tendencies for the next Runge-Kutta step
Note: See TracChangeset
for help on using the changeset viewer.