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 7550 for branches/2015 – NEMO

Changeset 7550 for branches/2015


Ignore:
Timestamp:
2017-01-12T10:28:57+01:00 (7 years ago)
Author:
davestorkey
Message:

Add calls for total tracer trends diagnostics (one of the CMIP6 diagnostics) in tra_nxt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/nemo_v3_6_STABLE/NEMOGCM/NEMO/OPA_SRC/TRA/tranxt.F90

    r6204 r7550  
    135135            CALL trd_tra( kt, 'TRA', jp_sal, jptra_zdfp, ztrds ) 
    136136         ENDIF 
     137         ! total trend for the non-time-filtered variables.  
     138         ztrdt(:,:,:) = 0._wp 
     139         ztrds(:,:,:) = 0._wp 
     140         DO jk = 1, jpkm1 
     141            zfact = 1.0 / rdttra(jk) 
     142            ztrdt(:,:,jk) = ( tsa(:,:,jk,jp_tem) - tsn(:,:,jk,jp_tem) ) * zfact  
     143            ztrds(:,:,jk) = ( tsa(:,:,jk,jp_sal) - tsn(:,:,jk,jp_sal) ) * zfact  
     144         END DO 
     145         CALL trd_tra( kt, 'TRA', jp_tem, jptra_tot, ztrdt ) 
     146         CALL trd_tra( kt, 'TRA', jp_sal, jptra_tot, ztrds ) 
    137147      ENDIF 
    138148 
Note: See TracChangeset for help on using the changeset viewer.