Ignore:
Timestamp:
07/31/12 21:43:20 (12 years ago)
Author:
ymipsl
Message:

add output for tracer

YM

File:
1 edited

Legend:

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

    r50 r63  
    3838  INTEGER :: matsuno_period 
    3939  INTEGER :: itaumax 
    40  
     40  REAL(rstd) ::write_period 
     41  INTEGER    :: itau_out 
     42   
    4143  dt=90. 
    4244  CALL getin('dt',dt) 
     
    5860  IF (TRIM(scheme)=='leapfrog') matsuno_period=itaumax+1 
    5961 
     62  write_period=0 
     63  CALL getin('write_period',write_period) 
     64  write_period=write_period/scale_factor 
     65  itau_out=FLOOR(.5+write_period/dt) 
     66  PRINT *, 'Output frequency (scaled) set to ',write_period, ' : itau_out = ',itau_out 
     67  
    6068  CALL allocate_field(f_phis,field_t,type_real) 
    6169   
     
    95103  DO it=0,itaumax 
    96104    PRINT *,"It No :",It,"   t :",dt*It 
    97  
     105    IF (mod(it,itau_out)==0 ) THEN 
     106      CALL writefield("q",f_q) 
     107    ENDIF 
     108     
    98109    CALL guided(it*dt,f_ps,f_theta_rhodz,f_u,f_q) 
    99110    CALL caldyn(it,f_phis,f_ps,f_theta_rhodz,f_u, f_dps, f_dtheta_rhodz, f_du) 
    100111    CALL advect_tracer(f_ps,f_u,f_q) 
     112 
    101113     
    102114    SELECT CASE (TRIM(scheme)) 
Note: See TracChangeset for help on using the changeset viewer.