Changeset 861 for codes/icosagcm/devel


Ignore:
Timestamp:
05/09/19 01:27:19 (5 years ago)
Author:
dubos
Message:

devel : compute_X => compute_X_unst or compute_X_hex in init_caldyn

Location:
codes/icosagcm/devel/src/dynamics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/dynamics/caldyn_gcm.F90

    r846 r861  
    1717  SUBROUTINE init_caldyn 
    1818    USE compute_mod, ONLY : compute_pvort_only 
    19     USE compute_pvort_only_mod, ONLY : compute_pvort_only_hex 
     19    USE compute_pvort_only_mod, ONLY : compute_pvort_only_hex, compute_pvort_only_unst 
    2020 
    2121    CHARACTER(len=255) :: def 
     
    149149 
    150150    CALL allocate_caldyn 
    151  
    152     IF(grid_type==grid_ico) THEN 
     151     
     152    SELECT CASE(grid_type) 
     153    CASE(grid_ico) 
    153154       ! NB : unused now, would be useful for non-traditional / deep-atmosphere 
    154155       DO ind=1,ndomain 
     
    159160          CALL compute_planetvel(planetvel) 
    160161       END DO 
    161     END IF 
    162  
    163     compute_pvort_only => compute_pvort_only_hex 
     162       compute_pvort_only => compute_pvort_only_hex 
     163    CASE(grid_unst) 
     164       compute_pvort_only => compute_pvort_only_unst 
     165    END SELECT 
    164166 
    165167  END SUBROUTINE init_caldyn 
  • codes/icosagcm/devel/src/dynamics/caldyn_hevi.f90

    r859 r861  
    150150       qv=f_qv(ind) 
    151151       hv=f_hv(ind) 
     152!       PRINT *, 'caldyn_hevi : u, mass, qu qv, hv', & 
     153!            SHAPE(u), SHAPE(mass), SHAPE(qu), SHAPE(qv), SHAPE(hv) 
    152154       CALL compute_pvort_only(u,mass,qu,qv,hv) 
    153155       IF(caldyn_kinetic==kinetic_consistent) THEN 
Note: See TracChangeset for help on using the changeset viewer.