Changeset 366 for codes/icosagcm/trunk/src/hevi_scheme.f90
- Timestamp:
- 10/30/15 15:41:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/trunk/src/hevi_scheme.f90
r362 r366 28 28 SUBROUTINE set_coefs_ark33(dt) 29 29 ! Fully-explicit RK3 scheme disguised as ARK 30 ! To check correctness of caldyn_hevi31 30 REAL(rstd) :: dt 32 REAL(rstd), PARAMETER, DIMENSION(3,4) :: & 33 ajl=(/ zero, (/.5,0.,0./), (/-1.,2.,0./), (/1./6.,2./3.,1./6./) /) 34 CALL set_coefs_hevi(dt, ajl, ajl) 31 CALL set_coefs_rk(dt, (/ zero, (/.5,0.,0./), (/-1.,2.,0./), (/1./6.,2./3.,1./6./) /) ) 35 32 END SUBROUTINE set_coefs_ark33 36 33 34 SUBROUTINE set_coefs_rk(dt, ajl) 35 REAL(rstd) :: dt, ajl(3,4) 36 CALL set_coefs_hevi(dt,ajl,ajl) 37 END SUBROUTINE set_coefs_rk 38 37 39 SUBROUTINE set_coefs_hevi(dt, ajl_slow, ajl_fast) 38 40 REAL(rstd) :: dt, ajl_slow(3,4), ajl_fast(3,4) ! fast/slow Butcher tableaus … … 58 60 CALL caldyn_hevi((j==1) .AND. (MOD(it,itau_out)==0), taujj(j), & 59 61 f_phis, f_ps,f_mass,f_theta_rhodz,f_u,f_q, & 60 f_ geopot, f_hflux, f_wflux, &62 f_W, f_geopot, f_hflux, f_wflux, & 61 63 f_dps_slow(:,j), f_dmass_slow(:,j), f_dtheta_rhodz_slow(:,j), & 62 f_du_slow(:,j), f_du_fast(:,j) ) 64 f_du_slow(:,j), f_du_fast(:,j), & 65 f_dPhi_slow(:,j), f_dPhi_fast(:,j), & 66 f_dW_slow(:,j), f_dW_fast(:,j) ) 63 67 ! accumulate mass fluxes for transport scheme 64 68 DO ind=1,ndomain … … 79 83 CALL update(bjl(l,j), f_u, f_du_slow(:,l)) 80 84 CALL update(cjl(l,j), f_u, f_du_fast(:,l)) 85 IF(.NOT. hydrostatic) THEN 86 ! CALL update(bjl(l,j), f_W, f_dW_slow(:,l)) ! slow tendencies of w, Phi not implemented yet 87 CALL update(cjl(l,j), f_W, f_dW_fast(:,l)) 88 ! CALL update(bjl(l,j), f_geopot, f_dPhi_slow(:,l)) 89 CALL update(cjl(l,j), f_geopot, f_dPhi_fast(:,l)) 90 END IF 81 91 END DO 82 92 END DO
Note: See TracChangeset
for help on using the changeset viewer.