Ignore:
Timestamp:
02/09/13 02:01:07 (11 years ago)
Author:
dubos
Message:

Some steps towards coupling with transport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/caldyn_gcm.f90

    r131 r132  
    22  USE icosa 
    33 
     4  PRIVATE 
     5 
     6  INTEGER, PARAMETER :: energy=1, enstrophy=2 
    47  TYPE(t_field),POINTER :: f_out_u(:), f_p(:), f_rhodz(:), f_qu(:) 
    58  REAL(rstd),POINTER :: out_u(:,:), p(:,:), rhodz(:,:), qu(:,:) 
     
    2528    SELECT CASE(TRIM(def)) 
    2629    CASE('energy') 
    27        caldyn_conserv=1 
     30       caldyn_conserv=energy 
    2831    CASE('enstrophy') 
    29        caldyn_conserv=2 
     32       caldyn_conserv=enstrophy 
    3033    CASE DEFAULT 
    3134       IF (is_mpi_root) PRINT *,'Bad selector for variable caldyn_conserv : <', TRIM(def),'> options are <energy>, <enstrophy>' 
     
    110113 
    111114    SELECT CASE(caldyn_conserv) 
    112     CASE(1) ! energy-conserving 
     115    CASE(energy) ! energy-conserving 
    113116       DO ind=1,ndomain 
    114117          CALL swap_dimensions(ind) 
     
    145148       ENDDO        
    146149        
    147     CASE(2) ! enstrophy-conserving 
     150    CASE(enstrophy) ! enstrophy-conserving 
    148151       DO ind=1,ndomain 
    149152          CALL swap_dimensions(ind) 
     
    412415 
    413416    SELECT CASE(caldyn_conserv) 
    414     CASE(1) ! energy-conserving TRiSK 
     417    CASE(energy) ! energy-conserving TRiSK 
    415418 
    416419       DO l=1,llm 
     
    461464       ENDDO 
    462465 
    463     CASE(2) ! enstrophy-conserving TRiSK 
     466    CASE(enstrophy) ! enstrophy-conserving TRiSK 
    464467   
    465468       DO l=1,llm 
Note: See TracChangeset for help on using the changeset viewer.