Ignore:
Timestamp:
10/12/15 11:19:11 (9 years ago)
Author:
dubos
Message:

Cleanup detailed AAM budget

File:
1 edited

Legend:

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

    r364 r365  
    225225 
    226226       IF (mod(it,itau_out)==0 ) THEN 
     227          CALL transfert_request(f_u,req_e1_vect) 
    227228          CALL write_output_fields_basic(f_ps, f_u, f_q) 
    228229       ENDIF 
    229  
    230        CALL check_conserve_detailed('detailed_budget 0', & 
    231             f_ps,f_dps,f_u,f_theta_rhodz,f_phis,it) 
    232230 
    233231       CALL guided(it*dt,f_ps,f_theta_rhodz,f_u,f_q) 
     
    239237          CALL HEVI_scheme(it, fluxt_zero) 
    240238       END SELECT 
    241         
    242        CALL check_conserve_detailed('detailed_budget 1', & 
    243             f_ps,f_dps,f_u,f_theta_rhodz,f_phis,it) 
    244239        
    245240       IF (MOD(it,itau_dissip)==0) THEN 
     
    257252          ENDIF 
    258253           
     254          CALL check_conserve_detailed(it, AAM_dyn, & 
     255               f_ps,f_dps,f_u,f_theta_rhodz,f_phis) 
     256        
    259257          CALL dissip(f_u,f_du,f_mass,f_phis, f_theta_rhodz,f_dtheta_rhodz) 
    260258           
     
    264262             CALL euler_scheme(.FALSE.)  ! update only u, theta 
    265263          END IF 
    266        END IF 
    267         
    268        CALL check_conserve_detailed('detailed_budget 2', & 
    269             f_ps,f_dps,f_u,f_theta_rhodz,f_phis,it) 
     264 
     265          CALL check_conserve_detailed(it, AAM_dissip, & 
     266               f_ps,f_dps,f_u,f_theta_rhodz,f_phis) 
     267       END IF 
    270268        
    271269       IF(MOD(it,itau_adv)==0) THEN 
     
    284282       END IF 
    285283        
    286        IF (MOD(it,itau_check_conserv)==0) THEN 
    287           CALL check_conserve(f_ps,f_dps,f_u,f_theta_rhodz,f_phis,it)  
    288        ENDIF 
    289         
    290284       IF (MOD(it,itau_physics)==0) THEN 
     285          CALL check_conserve_detailed(it, AAM_dyn, & 
     286            f_ps,f_dps,f_u,f_theta_rhodz,f_phis) 
    291287          CALL physics(it,f_phis, f_ps, f_theta_rhodz, f_u, f_wflux, f_q)         
     288          CALL check_conserve_detailed(it, AAM_phys, & 
     289               f_ps,f_dps,f_u,f_theta_rhodz,f_phis) 
    292290          !$OMP MASTER 
    293291          IF (first_physic) CALL SYSTEM_CLOCK(start_clock) 
     
    295293          first_physic=.FALSE. 
    296294       END IF 
    297         
     295 
     296       IF (MOD(it,itau_check_conserv)==0) THEN 
     297          CALL check_conserve_detailed(it, AAM_dyn, & 
     298               f_ps,f_dps,f_u,f_theta_rhodz,f_phis) 
     299          CALL check_conserve(f_ps,f_dps,f_u,f_theta_rhodz,f_phis,it)  
     300       ENDIF        
    298301    END DO 
    299302     
    300303    CALL write_etat0(itau0+itaumax,f_ps, f_phis,f_theta_rhodz,f_u,f_q)  
    301304     
     305    CALL check_conserve_detailed(it, AAM_dyn, & 
     306         f_ps,f_dps,f_u,f_theta_rhodz,f_phis) 
    302307    CALL check_conserve(f_ps,f_dps,f_u,f_theta_rhodz,f_phis,it)   
    303308     
     
    316321    INTEGER :: it, itau0, itaumax, start_clock, stop_clock, rate_clock, throughput 
    317322    REAL :: per_step,total, elapsed 
    318     WRITE(*,'(A,I7,A,F8.1)') "It No :",it,"   t :",dt*it 
     323    WRITE(*,'(A,I7,A,F14.1)') "It No :",it,"   t :",dt*it 
    319324    IF(MOD(it,10)==0) THEN 
    320325       CALL SYSTEM_CLOCK(stop_clock) 
Note: See TracChangeset for help on using the changeset viewer.