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/DTA/dtatem.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/DTA/dtatem.F90

    r3211 r4409  
    103103 
    104104                                   ! Allocate temperature data array  
    105                                 ALLOCATE( t_dta(jpi,jpj,jpk)           , STAT=ierr  ) 
     105                                ALLOCATE( t_dta(jpi,jpj,jpkorig)           , STAT=ierr  ) 
    106106         IF( ierr > 0              )   CALL ctl_stop( 'STOP', 'dta_tem: unable to allocate t_dta array' ) 
    107107                                   ! Allocate sf_tem structure 
    108108                                ierr2 = 0 
    109                                 ALLOCATE( sf_tem(1)                    , STAT=ierr0 ) 
    110                                 ALLOCATE( sf_tem(1)%fnow(jpi,jpj,jpk)  , STAT=ierr1 ) 
    111          IF( sn_tem%ln_tint )   ALLOCATE( sf_tem(1)%fdta(jpi,jpj,jpk,2), STAT=ierr2 ) 
     109                                ALLOCATE( sf_tem(1)                        , STAT=ierr0 ) 
     110                                ALLOCATE( sf_tem(1)%fnow(jpi,jpj,jpkorig)  , STAT=ierr1 ) 
     111         IF( sn_tem%ln_tint )   ALLOCATE( sf_tem(1)%fdta(jpi,jpj,jpkorig,2), STAT=ierr2 ) 
    112112         IF( ierr0+ierr1+ierr2 > 0 )   CALL ctl_stop( 'STOP', 'dta_tem: unable to allocate sf_tem structure' ) 
    113113         !                         ! fill sf_tem with sn_tem and control print 
Note: See TracChangeset for help on using the changeset viewer.