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 359 for trunk/NEMO/OPA_SRC/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2005-12-21T11:46:45+01:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_033 : RB + CT : Add new surface pressure gradient algorithms

File:
1 edited

Legend:

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

    r352 r359  
    9898      !!        !  99-02  (E. Guilyardi)  name of netCDF files + variables 
    9999      !!   8.5  !  02-09  (G. Madec)  F90: Free form and module 
     100      !!   9.0  !  05-11  (V. Garnier) Surface pressure gradient organization 
    100101      !!---------------------------------------------------------------------- 
    101102      !! * Modules used 
     
    237238         CALL histdef( nid_T, "sosaline", "Sea Surface Salinity"               , "PSU"    ,   &  ! sss 
    238239            &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
    239 #if defined key_dynspg_fsc 
     240#if defined key_dynspg_rl 
     241         CALL histdef( nid_T, "sobarstf","Barotropic StreamFunction"           , "m3/s2"  ,   &  ! bsf 
     242            &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
     243#else 
    240244         CALL histdef( nid_T, "sossheig", "Sea Surface Height"                 , "m"      ,   &  ! ssh 
    241245            &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
    242 #else 
    243          CALL histdef( nid_T, "sobarstf","Barotropic StreamFunction"           , "m3/s2"  ,   &  ! bsf 
    244             &          jpi, jpj, nh_T, 1  , 1, 1  , -99 , 32, clop, zsto, zout ) 
    245 #endif 
    246 #if defined key_dynspg_fsc && defined key_ice_lim 
     246#endif 
     247#if ! defined key_dynspg_rl && defined key_ice_lim 
    247248         ! sowaflup = sowaflep + sorunoff + sowafldp + a term associated to 
    248249         !    internal damping to Levitus that can be diagnosed from others 
     
    325326         CALL histdef( nid_U, "sozotaux", "Wind Stress along i-axis"           , "N/m2"   ,   &  ! taux 
    326327            &          jpi, jpj, nh_U, 1  , 1, 1  , - 99, 32, clop, zsto, zout ) 
    327 #if ! defined key_dynspg_fsc 
     328#if defined key_dynspg_rl 
    328329         CALL histdef( nid_U, "sozospgx", "Zonal Surface Pressure Gradient"    , "N/kg"   ,   &  ! spgu 
    329330            &          jpi, jpj, nh_U, 1  , 1, 1  , - 99, 32, clop, zsto, zout ) 
     
    342343         CALL histdef( nid_V, "sometauy", "Wind Stress along j-axis"           , "N/m2"   ,   &  ! tauy 
    343344            &          jpi, jpj, nh_V, 1  , 1, 1  , - 99, 32, clop, zsto, zout ) 
    344 #if ! defined key_dynspg_fsc 
     345#if defined key_dynspg_rl 
    345346         CALL histdef( nid_V, "somespgy", "Meridional Surface Pressure Grad."  , "N/kg"   ,   &  ! spgv 
    346347            &          jpi, jpj, nh_V, 1  , 1, 1  , - 99, 32, clop, zsto, zout ) 
     
    407408      CALL histwrite( nid_T, "sosstsst", it, tn(:,:,1)     , ndim_hT, ndex_hT )   ! sea surface temperature 
    408409      CALL histwrite( nid_T, "sosaline", it, sn(:,:,1)     , ndim_hT, ndex_hT )   ! sea surface salinity 
    409 #if defined key_dynspg_fsc 
     410#if defined key_dynspg_rl 
     411      CALL histwrite( nid_T, "sobarstf", it, bsfn          , ndim_hT, ndex_hT )   ! barotropic streamfunction 
     412#else 
    410413      CALL histwrite( nid_T, "sossheig", it, sshn          , ndim_hT, ndex_hT )   ! sea surface height 
    411 #else 
    412       CALL histwrite( nid_T, "sobarstf", it, bsfn          , ndim_hT, ndex_hT )   ! barotropic streamfunction 
    413 #endif 
    414 #if defined key_dynspg_fsc && defined key_ice_lim 
     414#endif 
     415#if ! defined key_dynspg_rl && defined key_ice_lim 
    415416      CALL histwrite( nid_T, "iowaflup", it, fsalt(:,:)    , ndim_hT, ndex_hT )   ! ice=>ocean water flux 
    416417      CALL histwrite( nid_T, "sowaflep", it, fmass(:,:)    , ndim_hT, ndex_hT )   ! atmos=>ocean water flux 
     
    460461#endif 
    461462      CALL histwrite( nid_U, "sozotaux", it, taux          , ndim_hU, ndex_hU )   ! i-wind stress 
    462 #if ! defined key_dynspg_fsc 
     463#if defined key_dynspg_rl 
    463464      CALL lbc_lnk( spgu, 'U', -1. ) 
    464465      CALL histwrite( nid_U, "sozospgx", it, spgu          , ndim_hU, ndex_hU )   ! i-surf. press. grad. 
     
    471472#endif 
    472473      CALL histwrite( nid_V, "sometauy", it, tauy          , ndim_hV, ndex_hV )   ! j-wind stress 
    473 #if ! defined key_dynspg_fsc 
     474#if defined key_dynspg_rl 
    474475      CALL lbc_lnk( spgv, 'V', -1. ) 
    475476      CALL histwrite( nid_V, "somespgy", it, spgv          , ndim_hV, ndex_hV )   ! j-surf. pressure grad. 
     
    534535      !!   8.5  !  02-06  (A.Bozec, E. Durand)  Original code (diainit.F) 
    535536      !!   9.0  !  02-12  (G. Madec)  merge of diabort and diainit, F90 
     537      !!    "   !  05-11  (V. Garnier) Surface pressure gradient organization 
    536538      !!---------------------------------------------------------------------- 
    537539      !! * Modules used 
     
    584586      CALL histdef( id_i, "votemper", "Temperature"           , "C"      ,   &   ! temperature 
    585587         &          jpi, jpj, nh_i, jpk, 1, jpk, nz_i, 32, clop, zsto, zout ) 
     588#if defined key_dynspg_rl 
     589      CALL histdef( id_i, "sobarstf","Barotropic StreamFunction", "m3/s2"  ,   &  ! bsf 
     590         &          jpi, jpj, nh_i, 1  , 1, 1  , nz_i, 32, clop, zsto, zout ) 
     591#else 
     592      CALL histdef( id_i, "sossheig", "Sea Surface Height"    , "m"      ,   &  ! ssh 
     593         &          jpi, jpj, nh_i, 1  , 1, 1  , nz_i, 32, clop, zsto, zout ) 
     594#endif 
    586595      CALL histdef( id_i, "vozocrtx", "Zonal Current"         , "m/s"    ,   &   ! zonal current 
    587596         &          jpi, jpj, nh_i, jpk, 1, jpk, nz_i, 32, clop, zsto, zout ) 
     
    615624      CALL histwrite( id_i, "votemper", 1, tn    , jpi*jpj*jpk, idex )    ! now temperature 
    616625      CALL histwrite( id_i, "vosaline", 1, sn    , jpi*jpj*jpk, idex )    ! now salinity 
     626#if defined key_dynspg_rl 
     627      CALL histwrite( id_i, "sobarstf", 1, bsfn  , jpi*jpj    , idex )    ! barotropic streamfunction 
     628#else 
     629      CALL histwrite( id_i, "sossheig", 1, sshn  , jpi*jpj    , idex )    ! sea surface height 
     630#endif 
    617631      CALL histwrite( id_i, "vozocrtx", 1, un    , jpi*jpj*jpk, idex )    ! now i-velocity 
    618632      CALL histwrite( id_i, "vomecrty", 1, vn    , jpi*jpj*jpk, idex )    ! now j-velocity 
Note: See TracChangeset for help on using the changeset viewer.