Ignore:
Timestamp:
06/21/19 01:01:34 (5 years ago)
Author:
dubos
Message:

devel : separate modules for caldyn_vert and caldyn_vert_NH

File:
1 edited

Legend:

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

    r921 r928  
    33  USE transfert_mod 
    44  USE caldyn_vars_mod 
    5   USE caldyn_kernels_hevi_mod 
    6   USE caldyn_kernels_base_mod 
     5  USE compute_caldyn_vert_mod, ONLY : compute_caldyn_vert => compute_caldyn_vert_manual 
     6  USE compute_caldyn_vert_NH_mod, ONLY : compute_caldyn_vert_NH => compute_caldyn_vert_NH_manual 
    77  USE compute_theta_mod, ONLY : compute_theta => compute_theta_manual 
    88  USE compute_geopot_mod, ONLY : compute_geopot => compute_geopot_manual 
    99  USE compute_caldyn_kv_mod, ONLY : compute_caldyn_kv 
    10   USE compute_caldyn_Coriolis_mod, ONLY : compute_caldyn_Coriolis 
     10  USE compute_caldyn_Coriolis_mod, ONLY : compute_caldyn_Coriolis => compute_caldyn_Coriolis_manual 
    1111  USE compute_caldyn_slow_hydro_mod, ONLY : compute_caldyn_slow_hydro => compute_caldyn_slow_hydro_manual 
    1212  USE compute_caldyn_slow_NH_mod, ONLY : compute_caldyn_slow_NH 
     
    6262    REAL(rstd),POINTER :: du(:,:), dW(:,:), dPhi(:,:), hflux(:,:), wflux(:,:) 
    6363    REAL(rstd),POINTER :: u(:,:), w(:,:), qu(:,:), qv(:,:), Kv(:,:), hv(:,:) 
    64  
     64    REAL(rstd),POINTER :: berni(:,:), Ftheta(:,:) 
    6565! temporary shared variable 
    6666    REAL(rstd),POINTER  :: theta(:,:,:)   
     
    136136       END IF 
    137137       u=f_u(ind) 
    138        Kv=f_Kv(ind) ! buffer for partial Bernoulli function 
    139        CALL compute_caldyn_fast(tau,theta,geopot, pk,Kv,du,u) ! computes du_fast and updates u 
     138       berni=f_berni(ind) ! buffer for partial Bernoulli function 
     139       CALL compute_caldyn_fast(tau,theta,geopot, pk,berni,du,u) ! computes du_fast and updates u 
    140140    ENDDO 
    141141     
     
    186186          hv=f_hv(ind) 
    187187          Kv=f_Kv(ind) 
    188           CALL compute_caldyn_slow_hydro(.TRUE., u,mass,hv,Kv, Kv, hflux,du) 
     188          berni=f_berni(ind) 
     189          CALL compute_caldyn_slow_hydro(.TRUE., u,mass,hv,Kv, berni, hflux,du) 
    189190       ELSE 
    190191          W = f_W(ind) 
     
    197198          CALL compute_caldyn_slow_NH(u,mass,geopot,W, F_el,gradPhi2,w_il, hflux,du,dPhi,dW) 
    198199       END IF 
    199        CALL compute_caldyn_Coriolis(hflux,theta,qu, convm,dtheta_rhodz,du) 
     200       Ftheta=f_Ftheta(ind) 
     201       CALL compute_caldyn_Coriolis(hflux,theta,qu, Ftheta, convm,dtheta_rhodz,du) 
    200202       IF(caldyn_eta==eta_mass) THEN 
    201203          wflux=f_wflux(ind) 
Note: See TracChangeset for help on using the changeset viewer.