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 7582 for branches/UKMO/dev_r5518_GO6_package_for_static_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2017-01-20T14:53:20+01:00 (7 years ago)
Author:
timgraham
Message:

Added code to allow output of some diagnostics which are constant in Met Office CMIP6 models
Changes described in UKESM ticket 324 (https://code.metoffice.gov.uk/trac/UKESM/ticket/324)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_for_static_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90

    r7335 r7582  
    146146      ENDIF 
    147147 
     148      !CMIP6 output of areacello and sftof (In NEMO this is currently just the T 
     149      !mask converted to a percentage) 
     150      CALL iom_put("areacello", e12t) 
     151      CALL iom_put("sftof", tmask(:,:,1)*100 ) 
     152 
     153      !CMIP6 at timestep 1 output depth of bottom W level 
     154      !This will account for any modifications made to the bathy (e.g. 
     155      !suppression of isolated grid points 
     156      IF(kt == nit000) THEN 
     157         z2d(:,:)=0._wp 
     158         DO jj=1,jpj 
     159            DO ji=1,jpi 
     160               jk=mbathy(ji,jj) 
     161               IF(jk > 0) z2d(ji,jj) = gdepw_0(ji,jj,jk+1) 
     162            ENDDO 
     163         ENDDO 
     164         CALL iom_put( 'deptho', z2d ) 
     165      ENDIF 
     166       
     167 
    148168      ! Output of initial vertical scale factor 
    149169      CALL iom_put("e3t_0", e3t_0(:,:,:) ) 
     
    257277      IF( iom_use('logavt') )   CALL iom_put( "logavt", LOG( MAX( 1.e-20_wp, avt  (:,:,:) ) ) ) 
    258278      IF( iom_use('logavs') )   CALL iom_put( "logavs", LOG( MAX( 1.e-20_wp, fsavs(:,:,:) ) ) ) 
     279 
     280      IF(kt == nit000) THEN 
     281         !Output 3D fields of background vertical diffusion (avtb and avmb) 
     282         DO jj=1,jpj 
     283            DO ji=1,jpi 
     284               z3d(ji,jj,:) = avtb(:) 
     285            ENDDO 
     286         ENDDO 
     287         CALL iom_put('avtb', z3d) 
     288         DO jj=1,jpj 
     289            DO ji=1,jpi 
     290               z3d(ji,jj,:) = avmb(:) 
     291            ENDDO 
     292         ENDDO 
     293         CALL iom_put('avmb', z3d) 
     294      ENDIF 
    259295 
    260296      IF ( iom_use("sstgrad") .OR. iom_use("sstgrad2") ) THEN 
Note: See TracChangeset for help on using the changeset viewer.