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 15187 for NEMO/branches/UKMO/NEMO_4.0.4_generic_obs/src/OCE/OBS/obs_field.F90 – NEMO

Ignore:
Timestamp:
2021-08-13T11:34:58+02:00 (3 years ago)
Author:
dford
Message:

Update treatment of SLA and POTM additional/extra variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_generic_obs/src/OCE/OBS/obs_field.F90

    r15180 r15187  
    6363      INTEGER  :: n2dint             !: Type of horizontal interpolation method 
    6464      INTEGER  :: nmsshc             !: MSSH correction scheme 
     65      INTEGER  :: nadd_ssh           !: Index of additional variable representing SSH 
     66      INTEGER  :: next_mdt           !: Index of extra variable representing MDT 
    6567      ! 
    6668      LOGICAL  :: lenabled           !: Logical switch for group being processed and not ignored 
     
    231233         sdobsgroup%lvel3d        = .false. 
    232234         sdobsgroup%lsla          = .false. 
     235         sdobsgroup%nadd_ssh      = 0 
     236         sdobsgroup%next_mdt      = 0 
    233237 
    234238         DO jtype = 1, jpmaxntypes 
     
    265269               ELSEIF ( TRIM(sdobsgroup%cobstypes(itype)) == cobsname_sla ) THEN 
    266270                  sdobsgroup%lsla = .true. 
    267 ! THESE WILL EACH NEED TO BE 1 (ADD=SSH, EXT=MDT) 
    268                   sdobsgroup%naddvars = 0 
    269                   sdobsgroup%nextvars = 0 
     271                  ! SSH=additional, MDT=extra 
     272                  sdobsgroup%naddvars = sdobsgroup%naddvars + 1 
     273                  sdobsgroup%nextvars = sdobsgroup%nextvars + 1 
     274                  sdobsgroup%nadd_ssh = sdobsgroup%naddvars 
     275                  sdobsgroup%next_mdt = sdobsgroup%nextvars 
    270276! DO THIS FOR FBD TOO 
    271277               ENDIF 
Note: See TracChangeset for help on using the changeset viewer.