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

Ignore:
Timestamp:
2009-03-31T14:36:28+02:00 (15 years ago)
Author:
smasson
Message:

first implementation of iom_put, see ticket:387

File:
1 edited

Legend:

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

    r1334 r1359  
    2727   USE in_out_manager  ! I/O manager 
    2828   USE diadimg         ! dimg direct access file format output 
     29   USE iom 
    2930   USE ioipsl 
    3031 
     
    411412         WRITE(numout,*) '~~~~~~ ' 
    412413      ENDIF 
     414       
     415!--------------------------------------------------------------------------- 
     416 
     417      CALL iom_put("votemper",tn) 
     418      CALL iom_put("vosaline",sn) 
     419      CALL iom_put("sosstsst",tn(:,:,1))   ! sea surface temperature 
     420      CALL iom_put("sosaline",sn(:,:,1))   ! sea surface salinity 
     421#if defined key_dynspg_rl 
     422      CALL iom_put("sobarstf",bsfn)   ! barotropic streamfunction 
     423#else 
     424      CALL iom_put("sossheig",sshn)   ! sea surface height 
     425#endif 
     426 
     427      CALL iom_put("sowaflup",emp )   ! upward water flux 
     428      CALL iom_put("sowaflcd",emps)   ! c/d water flux 
     429      zw2d(:,:) = emps(:,:) * sn(:,:,1) * tmask(:,:,1) 
     430      CALL iom_put("sosalflx",zw2d)   ! c/d salt flux 
     431      CALL iom_put("sohefldo",qns + qsr )   ! total heat flux 
     432      CALL iom_put("soshfldo",qsr)   ! solar heat flux 
     433      CALL iom_put("somxl010",hmlp)   ! mixed layer depth 
     434      CALL iom_put("somixhgt",hmld)   ! turbocline depth 
     435      CALL iom_put("soicecov",fr_i)   ! ice fraction  
     436#if ! defined key_coupled 
     437      CALL iom_put("sohefldp",qrp)   ! heat flux damping 
     438      CALL iom_put("sowafldp",erp)   ! freshwater flux damping 
     439      zw2d(:,:) = erp(:,:) * sn(:,:,1) * tmask(:,:,1) 
     440      CALL iom_put("sosafldp", zw2d)   ! salt flux damping 
     441#endif 
     442 
     443#if ( defined key_coupled && ! defined key_lim3 && ! defined key_lim2 )  
     444      CALL iom_put("sohefldp",qrp)   ! heat flux damping 
     445      CALL iom_put("sowafldp",erp)   ! freshwater flux damping 
     446         zw2d(:,:) = erp(:,:) * sn(:,:,1) * tmask(:,:,1) 
     447      CALL iom_put("sosafldp",zw2d)   ! salt flux damping 
     448#endif 
     449#if defined key_diaspr 
     450      CALL iom_put("sosurfps",gps)   ! surface pressure 
     451#endif 
     452         zw2d(:,:) = FLOAT( nmln(:,:) ) * tmask(:,:,1) 
     453      CALL iom_put("sobowlin",zw2d)   ! ??? 
     454 
     455#if defined key_diahth 
     456      CALL iom_put("sothedep",hth)   ! depth of the thermocline 
     457      CALL iom_put("so20chgt",hd20)   ! depth of the 20 isotherm 
     458      CALL iom_put("so28chgt",hd28)   ! depth of the 28 isotherm 
     459      CALL iom_put("sohtc300",htc3)   ! first 300m heaat content 
     460#endif 
     461 
     462#if defined key_coupled  
     463#  if defined key_lim3 
     464      Must be adapted for LIM3 
     465#  else 
     466      CALL iom_put("soicetem",tn_ice)   ! surf. ice temperature 
     467      CALL iom_put("soicealb",alb_ice)   ! ice albedo 
     468#  endif 
     469#endif 
     470         ! Write fields on U grid 
     471      CALL iom_put("vozocrtx",un)    ! i-current 
     472#if defined key_diaeiv 
     473      CALL iom_put("vozoeivu",u_eiv)    ! i-eiv current 
     474#endif 
     475      CALL iom_put("sozotaux",utau)   ! i-wind stress 
     476#if defined key_dynspg_rl 
     477      CALL lbc_lnk( spgu, 'U', -1. ) 
     478      CALL iom_put("sozospgx",spgu)   ! i-surf. press. grad. 
     479#endif 
     480 
     481         ! Write fields on V grid 
     482      CALL iom_put("vomecrty",vn)   ! j-current 
     483#if defined key_diaeiv 
     484      CALL iom_put("vomeeivv",v_eiv)   ! j-eiv current 
     485#endif 
     486      CALL iom_put("sometauy", vtau)   ! j-wind stress 
     487#if defined key_dynspg_rl 
     488      CALL lbc_lnk( spgv, 'V', -1. ) 
     489      CALL iom_put("somespgy",spgv)   ! j-surf. pressure grad. 
     490#endif 
     491 
     492         ! Write fields on W grid 
     493      CALL iom_put("vovecrtz",wn)    ! vert. current 
     494#   if defined key_diaeiv 
     495      CALL iom_put("voveeivw",w_eiv)    ! vert. eiv current 
     496#   endif 
     497      CALL iom_put("votkeavt",avt)    ! T vert. eddy diff. coef. 
     498      CALL iom_put("votkeevd",avt_evd)    ! T enhan. vert. eddy diff. coef. 
     499      CALL iom_put("votkeavm",avmu)    ! T vert. eddy visc. coef. 
     500      CALL iom_put("votkeevm",avmu_evd)    ! T enhan. vert. eddy visc. coef. 
     501      IF( lk_zdfddm ) THEN 
     502         CALL iom_put("voddmavs",fsavs(:,:,:) )    ! S vert. eddy diff. coef. 
     503      ENDIF 
     504#if defined key_traldf_c2d 
     505      CALL iom_put("soleahtw",ahtw)   ! lateral eddy diff. coef. 
     506# if defined key_traldf_eiv 
     507      CALL iom_put("soleaeiw",aeiw)   ! EIV coefficient at w-point 
     508# endif 
     509#endif 
     510!--------------------------------------------------------------------------- 
    413511 
    414512      ! Write fields on T grid 
Note: See TracChangeset for help on using the changeset viewer.