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/DOM/domzgr.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/DOM/domzgr.F90

    r4405 r4409  
    807807                                    STATUS=ierr) 
    808808      IF( ierr == 0)THEN 
    809          READ(lstr,FMT="(I)",IOSTAT=ierr) lztrim 
     809         READ(lstr,FMT="(I10)",IOSTAT=ierr) lztrim 
    810810         IF(ierr == 0)THEN 
    811811            IF (lztrim == 0) domtrim_z = .FALSE. 
     
    817817      ! Compute and store the deepest bottom level of any grid-type at each grid 
    818818      ! point. For use in removing data below ocean floor from compute loops 
     819      jpkorig = jpk 
    819820      IF( domtrim_z ) THEN 
    820821         mbkmax(:,:) = MAX(mbkt(:,:)+1, mbku(:,:), mbkv(:,:)) 
     
    823824         WRITE(*,*) narea,': ARPDBG: shallowest pt and jpkf = ', & 
    824825                    MINVAL(mbkmax(:,:)), jpkf 
     826         ! Play rather fast and loose and just change the value of jpk 
     827         ! here... 
     828         jpk = jpkf 
     829         jpkm1 = jpk - 1 
    825830      ELSE 
    826831         WRITE(*,*) narea,': ARPDBG: NOT trimming domain in z' 
Note: See TracChangeset for help on using the changeset viewer.