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 1312 for trunk/NEMO/TOP_SRC – NEMO

Changeset 1312 for trunk/NEMO/TOP_SRC


Ignore:
Timestamp:
2009-02-16T17:35:36+01:00 (15 years ago)
Author:
smasson
Message:

add a namelist logical to mask land points in NetCDF outputs, see ticket:322

Location:
trunk/NEMO/TOP_SRC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/SED/sedwri.F90

    r1310 r1312  
    5858      ! Define frequency of output and means 
    5959      zdt = dtsed 
     60      IF( ln_mskland )   THEN   ;   clop = "only(x)"   ! put 1.e+20 on land (very expensive!!) 
     61      ELSE                      ;   clop = "x"         ! no use of the mask value (require less cpu time) 
     62      ENDIF 
    6063#if defined key_diainstant 
    6164      zsto = nwrised * zdt 
    62 !!      clop = "inst(x)"           ! no use of the mask value (require less cpu time) 
    63       clop="inst(only(x))"   ! put 1.e+20 on land (very expensive!!) 
     65      clop = "inst("//TRIM(clop)//")" 
    6466#else 
    6567      zsto = zdt 
    66 !!      clop = "ave(x)"              ! no use of the mask value (require less cpu time) 
    67       clop="ave(only(x))"    ! put 1.e+20 on land (very expensive!!) 
     68      clop = "ave("//TRIM(clop)//")" 
    6869#endif 
    6970      zout = nwrised * zdt 
  • trunk/NEMO/TOP_SRC/TRP/trdmld_trc.F90

    r1310 r1312  
    13911391      ! II.1 Define frequency of output and means 
    13921392      ! ----------------------------------------- 
     1393      IF( ln_mskland )   THEN   ;   clop = "only(x)"   ! put 1.e+20 on land (very expensive!!) 
     1394      ELSE                      ;   clop = "x"         ! no use of the mask value (require less cpu time) 
     1395      ENDIF 
    13931396#  if defined key_diainstant 
    13941397      IF( .NOT. ln_trdmld_trc_instant ) THEN 
     
    13961399      ENDIF 
    13971400      zsto = ntrd_trc * rdt 
    1398       clop ="inst(only(x))" 
     1401      clop = "inst("//TRIM(clop)//")" 
    13991402#  else 
    14001403      IF( ln_trdmld_trc_instant ) THEN 
     
    14031406         zsto = ntrd_trc * rdt                                    ! mean  diags : we DO NOT use any IOIPSL time averaging 
    14041407      ENDIF 
    1405       clop ="ave(only(x))" 
     1408      clop = "ave("//TRIM(clop)//")" 
    14061409#  endif 
    14071410      zout = ntrd_trc * rdt 
  • trunk/NEMO/TOP_SRC/trcdia.F90

    r1310 r1312  
    123123      ! Define frequency of output and means 
    124124      zdt = rdt 
     125      IF( ln_mskland )   THEN   ;   clop = "only(x)"   ! put 1.e+20 on land (very expensive!!) 
     126      ELSE                      ;   clop = "x"         ! no use of the mask value (require less cpu time) 
     127      ENDIF 
    125128# if defined key_diainstant 
    126129      zsto = nwritetrc * rdt 
    127       clop = 'inst(only(x))' 
     130      clop = "inst("//TRIM(clop)//")" 
    128131# else 
    129132      zsto = zdt 
    130       clop = 'ave(only(x))' 
     133      clop = "ave("//TRIM(clop)//")" 
    131134# endif 
    132135      zout = nwritetrc * zdt 
Note: See TracChangeset for help on using the changeset viewer.