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 6772 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl_crs.F90 – NEMO

Ignore:
Timestamp:
2016-07-01T18:02:45+02:00 (8 years ago)
Author:
cbricaud
Message:

clean in coarsening branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl_crs.F90

    r6101 r6772  
    2424   USE trc_oce, ONLY : lk_offline ! offline flag 
    2525   USE crs 
     26   USE ieee_arithmetic 
    2627 
    2728   IMPLICIT NONE 
     
    6465      REAL(wp) ::   zN2_c        ! local scalar 
    6566      INTEGER, POINTER, DIMENSION(:,:) ::   imld   ! 2D workspace 
    66       REAL(wp), POINTER, DIMENSION(:,:) ::  z2d   ! 2D workspace 
    6767      !!---------------------------------------------------------------------- 
    6868      ! 
     
    7070      ! 
    7171      CALL wrk_alloc( jpi_crs,jpj_crs, imld ) 
    72       CALL wrk_alloc( jpi_crs,jpj_crs, z2d ) 
    7372 
    7473      IF( kt == nit000 ) THEN 
     
    9594            iiki = imld(ji,jj) 
    9695            iikn = nmln_crs(ji,jj) 
    97             IF( iiki .NE. 0 ) hmld_crs (ji,jj) = ( gdepw_crs(ji,jj,iiki  ) - gdepw_crs(ji,jj,1 )            )   * tmask_crs(ji,jj,1)  ! Turbocline depth  
    98             IF( iiki .NE. 0 ) hmlpt_crs(ji,jj) = ( gdept_crs(ji,jj,iikn-1) - gdepw_crs(ji,jj,1 )            )   * tmask_crs(ji,jj,1)  ! depth of the last T-point inside the mixed layer 
     96            hmld_crs (ji,jj) = ( fsdepw_crs(ji,jj,iiki  ) - fsdepw_crs(ji,jj,1    )  ) * tmask_crs(ji,jj,1)    ! Turbocline depth  
     97            hmlp_crs (ji,jj) = ( fsdepw_crs(ji,jj,iikn  ) - fsdepw_crs(ji,jj,nla10)  ) * tmask_crs(ji,jj,1)    ! Mixed layer depth 
     98            hmlpt_crs(ji,jj) = ( fsdept_crs(ji,jj,iikn-1) - fsdepw_crs(ji,jj,1    )  ) * tmask_crs(ji,jj,1)    ! depth of the last T-point inside the mixed layer 
    9999         END DO 
    100100      END DO 
    101101      ! 
    102       z2d=REAL(nmln_crs,wp) 
    103       CALL iom_put("nmln_crs",z2d) 
    104       CALL iom_put("hmlpt_crs",hmlpt_crs) 
    105       ! 
    106102      CALL wrk_dealloc( jpi_crs,jpj_crs, imld ) 
    107       CALL wrk_dealloc( jpi_crs,jpj_crs, z2d ) 
    108103      ! 
    109104      IF( nn_timing == 1 )  CALL timing_stop('zdf_mxl_crs') 
Note: See TracChangeset for help on using the changeset viewer.