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 4409 for branches/2011/DEV_r2739_STFC_dCSE/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2014-02-04T13:12:20+01:00 (10 years ago)
Author:
trackstand2
Message:

Changes to allow jpk to be modified to deepest level within a subdomain. jpkorig holds original value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/DEV_r2739_STFC_dCSE/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r3849 r4409  
    241241         jpk = jpkdta                                             ! third dim 
    242242         jpkm1 = jpk-1                                            ! inner domain indices 
     243         jpkorig = jpk                        ! Copy of jpk that is NOT modified 
     244         jpkf    = jpk                        ! Max depth of this sub-domain. Initially set to jpk here 
     245                                              ! but altered later in domzgr 
    243246      ENDIF 
    244247 
     
    263266#if   defined key_mpp_rkpart 
    264267      ELSE 
    265          CALL ctl_stop( 'STOP', 'nemo_init : invalid inputs in namelist - cannot specify jpn{i,j}>0 when using recursive k-section paritioning!' ) 
     268         CALL ctl_stop( 'STOP', & 
     269                        'nemo_init : invalid inputs in namelist - cannot specify jpn{i,j}>0 & 
     270                        & when using recursive k-section paritioning!' ) 
    266271#endif 
    267272      END IF 
     
    593598   SUBROUTINE nemo_recursive_partition( num_pes ) 
    594599      USE in_out_manager, ONLY: numnam 
    595       USE dom_oce,        ONLY: ln_zco, ntopo 
     600      USE dom_oce,        ONLY: ln_zco 
    596601      USE dom_oce,        ONLY: gdepw_0, gdept_0, e3w_0, e3t_0, & 
    597602                                mig, mjg, mi0, mi1, mj0, mj1,  mbathy, bathy 
     
    626631      INTEGER :: inum                          ! temporary logical unit 
    627632      INTEGER :: ii,jj,iproc                   ! Loop index 
    628       INTEGER :: jparray(2)                    ! Small array for gathering  
    629633      CHARACTER(LEN=8) :: lstr                 ! Local string for reading env. var. 
    630634      INTEGER          :: lztrim               ! Local int for      "      "    " 
     
    653657                                    STATUS=ierr) 
    654658      IF( ierr == 0)THEN 
    655          READ(lstr,FMT="(I)",IOSTAT=ierr) lztrim 
     659         READ(lstr,FMT="(I10)",IOSTAT=ierr) lztrim 
    656660         IF(ierr == 0)THEN 
    657661            IF (lztrim == 0) msgtrim_z = .FALSE. 
Note: See TracChangeset for help on using the changeset viewer.