Ignore:
Timestamp:
09/25/17 14:20:00 (7 years ago)
Author:
dubos
Message:

trunk : backported commits 555-557 from devel

File:
1 edited

Legend:

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

    r548 r561  
    5959    REAL(rstd),POINTER  :: convm(:,:)  
    6060    REAL(rstd),POINTER  :: wwuu(:,:) 
    61          
     61    REAL(rstd),POINTER  :: F_el(:,:), gradPhi2(:,:), w_il(:,:) , W_etadot(:,:), pres(:,:), m_il(:,:) 
    6262    INTEGER :: ind 
    6363    LOGICAL,SAVE :: first=.TRUE. 
     
    118118          dW = f_dW_fast(ind) 
    119119          dPhi = f_dPhi_fast(ind) 
    120           CALL compute_caldyn_solver(tau,mass,theta,pk,geopot,W,dPhi,dW,du) ! computes d(Phi,W,du)_fast and updates Phi,W 
     120          ! reuse buffers 
     121          m_il = f_wil(ind) 
     122          pres = f_gradPhi2(ind) 
     123          CALL compute_caldyn_solver(tau,mass,theta,pk,geopot,W, m_il,pres, dPhi,dW,du) ! computes d(Phi,W,du)_fast and updates Phi,W 
    121124       END IF 
    122125       u=f_u(ind) 
     
    161164          geopot = f_geopot(ind) 
    162165          dPhi = f_dPhi_slow(ind) 
    163           CALL compute_caldyn_slow_NH(u,mass,geopot,W, hflux,du,dPhi,dW) 
     166          F_el = f_Fel(ind) 
     167          gradPhi2 = f_gradPhi2(ind) 
     168          w_il = f_wil(ind) 
     169          CALL compute_caldyn_slow_NH(u,mass,geopot,W, F_el,gradPhi2,w_il, hflux,du,dPhi,dW) 
    164170       END IF 
    165171       CALL compute_caldyn_Coriolis(hflux,theta,qu, convm,dtheta_rhodz,du) 
     
    170176          CALL compute_caldyn_vert(u,theta,mass,convm, wflux,wwuu, dps, dtheta_rhodz, du) 
    171177          IF(.NOT.hydrostatic) THEN 
    172              CALL compute_caldyn_vert_NH(mass,geopot,W,wflux, du,dPhi,dW) 
     178             W_etadot=f_Wetadot(ind) 
     179             CALL compute_caldyn_vert_NH(mass,geopot,W,wflux, W_etadot, du,dPhi,dW) 
    173180          END IF 
    174181       END IF 
Note: See TracChangeset for help on using the changeset viewer.