Changeset 3853
- Timestamp:
- Aug 1, 2015, 3:44:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/ICOSAGCM/src/timeloop_gcm.f90
r3844 r3853 6 6 PUBLIC :: init_timeloop, timeloop 7 7 8 INTEGER, PARAMETER :: euler=1, rk4=2, mlf=3 8 INTEGER, PARAMETER :: euler=1, rk4=2, mlf=3, rk25=4 9 9 INTEGER, PARAMETER :: itau_sync=10 10 REAL(rstd), DIMENSION(4), PARAMETER :: coef_rk4 = (/ .25, 1./3., .5, 1. /) 11 REAL(rstd), DIMENSION(5), PARAMETER :: coef_rk25 = (/ .25, 1./6., 3./8., .5, 1. /) 10 12 11 13 TYPE(t_message),SAVE :: req_ps0, req_mass0, req_theta_rhodz0, req_u0, req_q0 … … 95 97 scheme=rk4 96 98 nb_stage=4 99 CASE ('RK2.5') 100 scheme=rk25 101 nb_stage=5 97 102 CASE ('leapfrog_matsuno') 98 103 scheme=mlf … … 254 259 CALL euler_scheme(.TRUE.) 255 260 CASE (rk4) 256 CALL rk_scheme(stage) 261 CALL rk_scheme(stage, coef_rk4) 262 CASE (rk25) 263 CALL rk_scheme(stage, coef_rk25) 257 264 CASE (mlf) 258 265 CALL leapfrog_matsuno_scheme(stage) … … 394 401 END SUBROUTINE Euler_scheme 395 402 396 SUBROUTINE RK_scheme(stage )403 SUBROUTINE RK_scheme(stage,coef) 397 404 IMPLICIT NONE 398 405 INTEGER :: ind, stage 399 REAL(rstd), DIMENSION(4), PARAMETER :: coef = (/ .25, 1./3., .5, 1. /)406 REAL(rstd), INTENT(IN) :: coef(:) 400 407 REAL(rstd) :: tau 401 408 INTEGER :: i,j,ij,l
Note: See TracChangeset
for help on using the changeset viewer.