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 2240 for branches/DEV_r2106_LOCEAN2010/NEMO/OFF_SRC – NEMO

Ignore:
Timestamp:
2010-10-13T10:48:48+02:00 (14 years ago)
Author:
cetlod
Message:

Suppression of key_zco everywhere in the code

Location:
branches/DEV_r2106_LOCEAN2010/NEMO/OFF_SRC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2106_LOCEAN2010/NEMO/OFF_SRC/domain.F90

    r2053 r2240  
    239239      !!              - vertical coordinate (gdep., e3.) depending on the  
    240240      !!                coordinate chosen : 
    241       !!                   ln_zco=T   z-coordinate   (forced if lk_zco) 
     241      !!                   ln_zco=T   z-coordinate   
    242242      !!                   ln_zps=T   z-coordinate with partial steps 
    243243      !!                   ln_zco=T   s-coordinate  
     
    268268      IF( ln_sco ) ioptio = ioptio + 1 
    269269      IF ( ioptio /= 1 )   CALL ctl_stop( ' none or several vertical coordinate options used' ) 
    270       IF( lk_zco ) THEN 
    271           IF(lwp) WRITE(numout,*) '          z-coordinate with reduced incore memory requirement' 
    272           IF( ln_zps .OR. ln_sco )   CALL ctl_stop( ' reduced memory with zps or sco option is impossible' ) 
    273       ENDIF 
    274270 
    275271      IF( nprint == 1 .AND. lwp )   THEN 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OFF_SRC/domrea.F90

    r2053 r2240  
    8888      REAL(wp), DIMENSION(jpi,jpj) :: & 
    8989         zprt 
    90 #if ! defined key_zco 
    9190      INTEGER :: ik 
    92 #endif 
    9391      !!---------------------------------------------------------------------- 
    9492 
     
    185183            ENDDO 
    186184         ENDDO 
    187  
    188 #if ! defined key_zco 
    189185 
    190186         IF( ln_sco ) THEN                                         ! s-coordinate 
     
    255251 
    256252         ENDIF 
    257 # endif 
     253 
    258254         IF( ln_zco ) THEN 
    259255           ! Vertical coordinates and scales factors 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OFF_SRC/domrea_dimg.h90

    r2053 r2240  
    262262          mbathy=zprt*tmask(:,:,1)+1 
    263263 
    264 #if ! defined key_zco 
    265264          IF( ln_sco ) THEN                                         ! s-coordinate 
    266265             ! 
     
    394393             READ(inum4,REC=irec) e3w_0(:) 
    395394          ENDIF 
    396 #else 
    397           ! 
    398           ! gdep 
    399           irec =  irecv(inum4) + (narea - 1 ) 
    400           READ(inum4,REC=irec) gdept_0(:) 
    401           irecv(inum4) = irecv(inum4) + jpnij  
    402            
    403           irec =  irecv(inum4) + (narea - 1 ) 
    404           READ(inum4,REC=irec) gdepw_0(:) 
    405           irecv(inum4) = irecv(inum4) + jpnij  
    406           ! 
    407           ! e3 
    408           irec =  irecv(inum4) + (narea - 1 ) 
    409           READ(inum4,REC=irec) e3t_0(:) 
    410           irecv(inum4) = irecv(inum4) + jpnij  
    411            
    412           irec =  irecv(inum4) + (narea - 1 ) 
    413           READ(inum4,REC=irec) e3w_0(:) 
    414           irecv(inum4) = irecv(inum4) + jpnij  
    415          ! 
    416 #endif 
    417395         !                                     ! ============================ 
    418396         !                                     !        close the files 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OFF_SRC/dtadyn.F90

    r2082 r2240  
    568568         DO jj = 2, jpjm1 
    569569            DO ji = fs_2, fs_jpim1   ! vector opt. 
    570 #if defined key_zco 
    571                zu  = pu(ji  ,jj  ,jk) * umask(ji  ,jj  ,jk) * e2u(ji  ,jj  ) 
    572                zu1 = pu(ji-1,jj  ,jk) * umask(ji-1,jj  ,jk) * e2u(ji-1,jj  ) 
    573                zv  = pv(ji  ,jj  ,jk) * vmask(ji  ,jj  ,jk) * e1v(ji  ,jj  ) 
    574                zv1 = pv(ji  ,jj-1,jk) * vmask(ji  ,jj-1,jk) * e1v(ji  ,jj-1) 
    575                zet = 1. / ( e1t(ji,jj) * e2t(ji,jj) ) 
    576 #else 
    577570               zu  = pu(ji  ,jj  ,jk) * umask(ji  ,jj  ,jk) * e2u(ji  ,jj  ) * fse3u(ji  ,jj  ,jk) 
    578571               zu1 = pu(ji-1,jj  ,jk) * umask(ji-1,jj  ,jk) * e2u(ji-1,jj  ) * fse3u(ji-1,jj  ,jk) 
     
    580573               zv1 = pv(ji  ,jj-1,jk) * vmask(ji  ,jj-1,jk) * e1v(ji  ,jj-1) * fse3v(ji  ,jj-1,jk) 
    581574               zet = 1. / ( e1t(ji,jj) * e2t(ji,jj) * fse3t(ji,jj,jk) ) 
    582 #endif 
    583575               phdiv(ji,jj,jk) = ( zu - zu1 + zv - zv1 ) * zet  
    584576            END DO 
Note: See TracChangeset for help on using the changeset viewer.