Changeset 130 for codes/icosagcm/trunk


Ignore:
Timestamp:
02/06/13 18:56:56 (11 years ago)
Author:
dubos
Message:

dissipation, transport and physics still deactivated

Location:
codes/icosagcm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/param_sets/dcmip2012/test4/test4.1/test4.1-0/run.def

    r101 r130  
    3232nqtot=2 
    3333 
    34 # timestep : real (default=90s) 
    35 dt = 45. 
     34# timestep : real (default=240s) 
     35dt = 240. 
    3636 
    3737# number of timestep (default 100) 
     
    6262# ------------------------------ Dynamics -------------------------------- 
    6363 
    64 # scheme type : string ( default='adam_bashforth') euler, leapfrog, leapfrog_matsuno, adam_bashforth) 
    65 scheme = adam_bashforth 
     64# scheme type : string ( default='runge_kutta') euler, leapfrog_matsuno, runge_kutta ) 
     65scheme = runge_kutta 
    6666 
    6767# matsuno period : integer ( default=5) 
     
    7070# guided_type : string (default=none) : none, ncar 
    7171guided_type=none 
     72 
     73caldyn_conserv=energy 
    7274 
    7375# ---------------------------------------------------------------------- 
  • codes/icosagcm/trunk/src/timeloop_gcm.f90

    r129 r130  
    133133       SELECT CASE (TRIM(scheme)) 
    134134       CASE('euler') 
    135           CALL  euler_scheme 
     135          CALL  euler_scheme(.TRUE.) 
    136136           
    137137       CASE ('runge_kutta') 
     
    156156       END SELECT 
    157157    END DO 
     158 
     159!    CALL dissip(f_u,f_du,f_ps,f_phis, f_theta_rhodz,f_dtheta_rhodz) 
     160!    CALL euler_scheme(.FALSE.) 
     161 
    158162!    CALL advect_tracer(f_ps,f_u,f_q) 
    159 !    CALL dissip(f_u,f_du,f_ps,f_phis, f_theta_rhodz,f_dtheta_rhodz) 
    160163!    CALL physics(it,f_phis, f_ps, f_theta_rhodz, f_u, f_q) 
    161164    ENDDO 
     
    163166  CONTAINS 
    164167 
    165     SUBROUTINE Euler_scheme 
     168    SUBROUTINE Euler_scheme(with_dps) 
    166169    IMPLICIT NONE 
    167       INTEGER :: ind 
    168        
    169       DO ind=1,ndomain 
    170         ps=f_ps(ind) ; u=f_u(ind) ; theta_rhodz=f_theta_rhodz(ind) 
    171         dps=f_dps(ind) ; du=f_du(ind) ; dtheta_rhodz=f_dtheta_rhodz(ind) 
    172         ps(:)=ps(:)+dt*dps(:) 
    173         u(:,:)=u(:,:)+dt*du(:,:) 
    174         theta_rhodz(:,:)=theta_rhodz(:,:)+dt*dtheta_rhodz(:,:) 
    175       ENDDO 
     170    LOGICAL :: with_dps 
     171    INTEGER :: ind 
     172       
     173    DO ind=1,ndomain 
     174       IF(with_dps) THEN 
     175          ps=f_ps(ind) ; dps=f_dps(ind) ;  
     176          ps(:)=ps(:)+dt*dps(:) 
     177       END IF 
     178       u=f_u(ind) ; theta_rhodz=f_theta_rhodz(ind) 
     179       du=f_du(ind) ; dtheta_rhodz=f_dtheta_rhodz(ind) 
     180       u(:,:)=u(:,:)+dt*du(:,:) 
     181       theta_rhodz(:,:)=theta_rhodz(:,:)+dt*dtheta_rhodz(:,:) 
     182    ENDDO 
    176183       
    177184    END SUBROUTINE Euler_scheme 
Note: See TracChangeset for help on using the changeset viewer.