Changeset 569


Ignore:
Timestamp:
10/12/17 17:52:17 (7 years ago)
Author:
dubos
Message:

devel : additional fields in restart when NH - requires changes to icosa.xml

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

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/output/write_etat0.f90

    r533 r569  
    55CONTAINS 
    66 
    7   SUBROUTINE write_etat0(it,f_ps,f_phis,f_theta_rhodz,f_u, f_q) 
     7  SUBROUTINE write_etat0(it,f_ps,f_phis,f_theta_rhodz,f_u, f_q, f_geopot, f_W) 
    88  USE icosa 
    99  USE restart_mod 
     
    2020    TYPE(t_field),POINTER :: f_u(:) 
    2121    TYPE(t_field),POINTER :: f_q(:) 
     22    TYPE(t_field),POINTER, OPTIONAL :: f_geopot(:) 
     23    TYPE(t_field),POINTER, OPTIONAL :: f_W(:) 
    2224   
    2325    TYPE(t_field),POINTER,SAVE :: f_ulon(:) 
     
    4143    CALL transfert_request(f_u,req_e1_vect) 
    4244    CALL un2ulonlat(f_u, f_ulon, f_ulat) 
    43      
    44     CALL write_restart(it,f_ps,f_phis,f_theta_rhodz_1d,f_u, f_ulon, f_ulat, f_q) 
    4545 
     46    IF(hydrostatic) THEN 
     47       CALL write_restart(it,f_ps,f_phis,f_theta_rhodz_1d,f_u, f_ulon, f_ulat, f_q) 
     48    ELSE 
     49       CALL write_restart(it,f_ps,f_phis,f_theta_rhodz_1d,f_u, f_ulon, f_ulat, f_q, f_geopot, f_W) 
     50    END IF 
    4651    CALL deallocate_field(f_ulon) 
    4752    CALL deallocate_field(f_ulat) 
  • codes/icosagcm/devel/src/time/timeloop_gcm.f90

    r533 r569  
    219219    END IF 
    220220     
    221     IF (write_start) CALL write_etat0(itau0,f_ps, f_phis,f_theta_rhodz,f_u,f_q)  ! FIXME : write_start undefined 
     221!    IF (write_start) CALL write_etat0(itau0,f_ps, f_phis,f_theta_rhodz,f_u,f_q) 
     222    IF (write_start) CALL write_etat0(itau0,f_ps, f_phis,f_theta_rhodz,f_u,f_q, f_geopot, f_W) 
    222223    
    223224    CALL write_output_fields_basic(.TRUE., f_phis, f_ps, f_mass, f_geopot, f_theta_rhodz, f_u, f_W, f_q) 
     
    337338    END DO 
    338339     
    339     CALL write_etat0(itau0+itaumax,f_ps, f_phis,f_theta_rhodz,f_u,f_q)  
     340!    CALL write_etat0(itau0+itaumax,f_ps, f_phis,f_theta_rhodz,f_u,f_q)  
     341    CALL write_etat0(itau0+itaumax,f_ps, f_phis,f_theta_rhodz,f_u,f_q, f_geopot, f_W)  
    340342     
    341343    CALL check_conserve_detailed(it, AAM_dyn, & 
Note: See TracChangeset for help on using the changeset viewer.