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 5826 for branches – NEMO

Changeset 5826 for branches


Ignore:
Timestamp:
2015-10-23T12:43:55+02:00 (9 years ago)
Author:
jcastill
Message:

Allocate mslp variables independently in case the albedo is not coupled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_ukv_mslp/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r5817 r5826  
    183183      !!             ***  FUNCTION sbc_cpl_alloc  *** 
    184184      !!---------------------------------------------------------------------- 
    185       INTEGER :: ierr(3) 
     185      INTEGER :: ierr(4) 
    186186      !!---------------------------------------------------------------------- 
    187187      ierr(:) = 0 
    188188      ! 
    189       ALLOCATE( albedo_oce_mix(jpi,jpj), ssh_ib(jpi,jpj), ssh_ibb(jpi,jpj), & 
    190                 apr(jpi, jpj), nrcvinfo(jprcv),  STAT=ierr(1) ) 
     189      ALLOCATE( albedo_oce_mix(jpi,jpj), nrcvinfo(jprcv),  STAT=ierr(1) ) 
    191190       
    192191#if ! defined key_lim3 && ! defined key_lim2 && ! defined key_cice 
     
    195194      ALLOCATE( xcplmask(jpi,jpj,0:nn_cplmodel) , STAT=ierr(3) ) 
    196195      ! 
     196      IF( .NOT. ln_apr_dyn ) ALLOCATE( ssh_ib(jpi,jpj), ssh_ibb(jpi,jpj), apr(jpi, jpj), STAT=ierr(4) ) 
     197 
    197198      sbc_cpl_alloc = MAXVAL( ierr ) 
    198199      IF( lk_mpp            )   CALL mpp_sum ( sbc_cpl_alloc ) 
Note: See TracChangeset for help on using the changeset viewer.