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 2957 for branches/2011/dev_r2787_PISCES_improvment/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zsed.F90 – NEMO

Ignore:
Timestamp:
2011-10-19T10:47:02+02:00 (13 years ago)
Author:
cetlod
Message:

dev_r2787_PISCES_improvment:keep the possiblity to switch between old and new parameterisation of production

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2787_PISCES_improvment/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zsed.F90

    r2852 r2957  
    250250      ! ------------------------------------------------------------- 
    251251 
    252       zdenitot = glob_sum(  ( denitr(:,:,:) * rdenit + denitnh4(:,:,:) * rdenita ) * cvol(:,:,:) * xnegtr(:,:,:) ) 
     252      zdenitot = glob_sum(  ( denitr(:,:,:) * rdenit + denitnh4(:,:,:) * rdenita ) *  & 
     253         &                   e1e2t(:,:) * fse3t(:,:,:) * tmask(:,:,:) * xnegtr(:,:,:) ) 
    253254 
    254255      ! Potential nitrogen fixation dependant on temperature and iron 
     
    275276      END DO 
    276277 
    277       znitrpottot = glob_sum( znitrpot(:,:,:) * cvol(:,:,:) ) 
     278      znitrpottot = glob_sum( znitrpot(:,:,:) * e1e2t(:,:) * fse3t(:,:,:) * tmask(:,:,:) ) 
    278279 
    279280      ! Nitrogen change due to nitrogen fixation 
     
    355356            DO jj = 1, jpj 
    356357               DO ji = 1, jpi 
    357                   zcoef = ryyss * cvol(ji,jj,1)  
     358                  zcoef = ryyss * e1e2t(ji,jj) * fse3t(ji,jj,1) * tmask(ji,jj,1)  
    358359                  cotdep(ji,jj) =   sf_riverdic(1)%fnow(ji,jj,1)                                  * 1E9 / ( 12. * zcoef + rtrn ) 
    359360                  rivinp(ji,jj) = ( sf_riverdic(1)%fnow(ji,jj,1) + sf_riverdoc(1)%fnow(ji,jj,1) ) * 1E9 / ( 31.6* zcoef + rtrn ) 
Note: See TracChangeset for help on using the changeset viewer.