New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 632 for trunk/NEMO/OPA_SRC/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2007-03-02T17:45:17+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_bugfix_026 : CT : -add key_flx_core to save in restart files the nfbulk parameter and the gsst(:,:) field when using CORE forcing

  • save surface fluxes qla, qsb and qlw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DIA/diawri.F90

    r460 r632  
    120120      CHARACTER (len=80) :: clname 
    121121      !!---------------------------------------------------------------------- 
    122        
     122 
    123123      ! 0. Initialisation 
    124124      ! ----------------- 
    125        
     125 
    126126      ! local variable for debugging 
    127127      ll_print = .FALSE. 
     
    160160 
    161161         ! Define the NETCDF files (one per grid) 
    162           
     162 
    163163         ! Compute julian date from starting date of the run 
    164164         CALL ymds2ju( nyear, nmonth, nday, 0.e0, zjulian ) 
     
    175175         WRITE(inum,*) clhstnam 
    176176         CLOSE(inum) 
    177           
     177 
    178178         ! Define the T grid FILE ( nid_T ) 
    179           
     179 
    180180         CALL dia_nam( clhstnam, nwrite, 'grid_T' ) 
    181181         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam    ! filename 
     
    224224         CALL histvert( nid_W, "depthw", "Vertical W levels",      &  ! Vertical grid: gdepw 
    225225            &          "m", ipk, gdepw_0, nz_W ) 
    226   
     226 
    227227 
    228228         ! Declare all the output fields as NETCDF variables 
     
    280280            &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
    281281#endif 
     282 
     283#if defined key_flx_core 
     284         CALL histdef( nid_T, "solhflup", "Latent Heat Flux Upward"         , "W/m2"   ,   &  ! qla 
     285            &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
     286         CALL histdef( nid_T, "solwfldo", "Longwave Radiation downward"     , "W/m2"   ,   &  ! qlw 
     287            &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
     288         CALL histdef( nid_T, "sosbhfup", "Sensible Heat Flux upward"       , "W/m2"   ,   &  ! qsb 
     289            &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
     290#endif 
     291 
    282292 
    283293#if ( defined key_coupled && ! defined key_ice_lim )  
     
    432442      zw2d(:,:) = erp(:,:) * sn(:,:,1) * tmask(:,:,1) 
    433443      CALL histwrite( nid_T, "sosafldp", it, zw2d          , ndim_hT, ndex_hT )   ! salt flux damping 
     444#endif 
     445#if defined key_flx_core 
     446      CALL histwrite( nid_T, "solhflup", it, qla           , ndim_hT, ndex_hT )   ! latent heat flux 
     447      CALL histwrite( nid_T, "solwfldo", it, qlw           , ndim_hT, ndex_hT )   ! longwave heat flux 
     448      CALL histwrite( nid_T, "sosbhfup", it, qsb           , ndim_hT, ndex_hT )   ! sensible heat flux 
    434449#endif 
    435450#if ( defined key_coupled && ! defined key_ice_lim )  
     
    556571      IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~   and forcing fields file created ' 
    557572      IF(lwp) WRITE(numout,*) '                and named :', cdfile_name, '.nc' 
    558        
     573 
    559574      ! 0. Initialisation 
    560575      ! ----------------- 
    561        
     576 
    562577      ! Define frequency of output and means 
    563578      zdt  = rdt 
     
    617632      ! donne le nombre d'elements, et idex la liste des indices a sortir 
    618633      idex(1) = 1   ! init to avoid compil warning 
    619        
     634 
    620635      ! Write all fields on T grid 
    621636      CALL histwrite( id_i, "votemper", 1, tn    , jpi*jpj*jpk, idex )    ! now temperature 
     
    641656 
    642657   END SUBROUTINE dia_wri_state 
    643   
     658 
    644659#endif 
    645660   !!====================================================================== 
Note: See TracChangeset for help on using the changeset viewer.