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 4819 – NEMO

Changeset 4819


Ignore:
Timestamp:
2014-10-16T18:37:22+02:00 (10 years ago)
Author:
djlea
Message:

Fix a bug to the allocation of arrays in OBS and add a test for the allocation of the ice background and warning if not allocated (as is currently the case on the zeroth timestep).

Location:
branches/2014/dev_r4650_UKMO14.11_SETTE_OBSASM/NEMOGCM/NEMO/OPA_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO14.11_SETTE_OBSASM/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90

    r3764 r4819  
    156156#if defined key_lim2 || defined key_lim3 
    157157            IF(( nn_ice == 2 ) .OR. ( nn_ice == 3 )) THEN 
    158                CALL iom_rstput( kt, nitdin_r, inum, 'iceconc', 1.0 - frld(:,:)   ) 
     158          IF(ALLOCATED(frld)) THEN 
     159                  CALL iom_rstput( kt, nitdin_r, inum, 'iceconc', 1.0 - frld(:,:)   ) 
     160               ELSE 
     161        CALL ctl_warn('Ice concentration not written to background as ice variable frld not allocated on this timestep') 
     162          ENDIF 
    159163            ENDIF 
    160164#endif 
  • branches/2014/dev_r4650_UKMO14.11_SETTE_OBSASM/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_sla.F90

    r4818 r4819  
    393393         &               iindx   ) 
    394394       
    395       CALL obs_surf_alloc( sladata, iobs, kvars, kextr, & 
    396          &                 jpi, jpj, kstp ) 
     395      CALL obs_surf_alloc( sladata, iobs, kvars, kextr, kstp, jpi, jpj ) 
    397396       
    398397      ! * Read obs/positions, QC, all variable and assign to sladata 
Note: See TracChangeset for help on using the changeset viewer.