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 5704 for branches/2015/dev_r5072_UKMO2_OBS_simplification/NEMOGCM/TOOLS/OBSTOOLS/src/fbgenerate_coords.F90 – NEMO

Ignore:
Timestamp:
2015-08-21T15:00:38+02:00 (9 years ago)
Author:
mattmartin
Message:

Updated simplified obs operator after testing sea-ice concentration and velocity data types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5072_UKMO2_OBS_simplification/NEMOGCM/TOOLS/OBSTOOLS/src/fbgenerate_coords.F90

    r4990 r5704  
    2626 
    2727 
    28    SUBROUTINE set_spatial_coords(lats,lons,n,FillVal) 
     28   SUBROUTINE set_spatial_coords(lats,lons,n,nlats,nlons,FillVal) 
    2929   IMPLICIT NONE   
    3030   INTEGER :: i, j, k, p, nlats, nlons, nlats_in_list, nlons_in_list 
     
    436436               array(j,:,k) = array(j,1,k) 
    437437            END DO 
    438              
     438         ! If single depth and only first profile has a value then set the rest based on that 
     439         ELSE IF ((n > 1) .AND. (m == 1) .AND. (array(1,2,k) == FillVal)) THEN 
     440                 array(1,2:,k) = array(1,1,k) 
    439441         ELSE  
    440442            array(:,:,k) = array(:,:,k) 
Note: See TracChangeset for help on using the changeset viewer.