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/OPA_SRC/DIA/diaptr.F90 – NEMO

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

File:
1 edited

Legend:

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

    r1310 r1312  
    426426      zdt = rdt 
    427427      IF( nacc == 1 ) zdt = rdtmin 
     428      IF( ln_mskland )   THEN   ;   clop = "only(x)"   ! put 1.e+20 on land (very expensive!!) 
     429      ELSE                      ;   clop = "x"         ! no use of the mask value (require less cpu time) 
     430      ENDIF 
    428431#if defined key_diainstant 
    429          zsto = nf_ptr * zdt 
    430          clop = "inst(x)"               ! no use of the mask value (require less cpu time) 
    431          !!! clop="inst(only(x))"       ! put 1.e+20 on land (very expensive!!) 
     432      zsto = nf_ptr * zdt 
     433      clop = "inst("//TRIM(clop)//")" 
    432434#else 
    433          zsto = zdt 
    434          clop = "ave(x)"                ! no use of the mask value (require less cpu time) 
    435          !!! clop="ave(only(x))"        ! put 1.e+20 on land (very expensive!!) 
     435      zsto=zdt 
     436      clop = "ave("//TRIM(clop)//")" 
    436437#endif 
    437438      zout = nf_ptr * zdt 
Note: See TracChangeset for help on using the changeset viewer.