Ignore:
Timestamp:
08/27/18 13:51:26 (6 years ago)
Author:
dubos
Message:

devel : consistent discretization of kinetic energy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/dynamics/caldyn_hevi.f90

    r733 r734  
    5151    REAL(rstd),POINTER :: mass(:,:), theta_rhodz(:,:,:), dtheta_rhodz(:,:,:) 
    5252    REAL(rstd),POINTER :: du(:,:), dW(:,:), dPhi(:,:), hflux(:,:), wflux(:,:) 
    53     REAL(rstd),POINTER :: u(:,:), w(:,:), qu(:,:), qv(:,:) 
     53    REAL(rstd),POINTER :: u(:,:), w(:,:), qu(:,:), qv(:,:), Kv(:,:) 
    5454 
    5555! temporary shared variable 
     
    7474      CALL init_message(f_u,req_e1_vect,req_u) 
    7575      CALL init_message(f_qu,req_e1_scal,req_qu) 
     76      IF(caldyn_kinetic==kinetic_consistent) CALL init_message(f_Kv,req_z1_scal,req_Kv) 
    7677      IF(.NOT.hydrostatic) THEN 
    7778         CALL init_message(f_geopot,req_i1,req_geopot) 
     
    140141       qv=f_qv(ind) 
    141142       CALL compute_pvort_only(u,mass,qu,qv) 
     143       IF(caldyn_kinetic==kinetic_consistent) THEN 
     144          Kv=f_Kv(ind) 
     145          CALL compute_caldyn_Kv(u,Kv) 
     146       END IF 
    142147    ENDDO 
    143148     
    144149    CALL send_message(f_qu,req_qu) ! COM03 
    145150    CALL wait_message(req_qu) ! COM03 
    146         
     151 
     152    IF(caldyn_kinetic==kinetic_consistent) THEN 
     153       CALL send_message(f_Kv,req_Kv) 
     154       CALL wait_message(req_Kv) 
     155    END IF 
     156 
    147157    DO ind=1,ndomain 
    148158       IF (.NOT. assigned_domain(ind)) CYCLE 
     
    159169 
    160170       IF(hydrostatic) THEN 
    161           CALL compute_caldyn_slow_hydro(u,mass,hflux,du, .TRUE.) 
     171          Kv=f_Kv(ind) 
     172          CALL compute_caldyn_slow_hydro(u,mass,hflux,Kv,du, .TRUE.) 
    162173       ELSE 
    163174          W = f_W(ind) 
Note: See TracChangeset for help on using the changeset viewer.