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

Changeset 15781


Ignore:
Timestamp:
2022-04-14T18:06:43+02:00 (2 years ago)
Author:
dford
Message:

Revert bug fixes ported from v3.6 which change results.

Location:
NEMO/branches/UKMO/NEMO_4.0.4_FOAM_package_generic_obs/src/OCE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_FOAM_package_generic_obs/src/OCE/DYN/dynspg_ts.F90

    r15752 r15781  
    5151   USE agrif_oce 
    5252#endif 
     53#if defined key_asminc    
     54   USE asminc          ! Assimilation increment 
     55#endif 
    5356   ! 
    5457   USE in_out_manager  ! I/O manager 
     
    338341      ENDIF 
    339342      ! 
     343#if defined key_asminc 
     344      !                                   !=  Add the IAU weighted SSH increment  =! 
     345      !                                   !  ------------------------------------  ! 
     346      IF( lk_asminc .AND. ln_sshinc .AND. ln_asmiau ) THEN 
     347         zssh_frc(:,:) = zssh_frc(:,:) - ssh_iau(:,:) 
     348      ENDIF 
     349#endif 
    340350      !                                   != Fill boundary data arrays for AGRIF 
    341351      !                                   ! ------------------------------------ 
  • NEMO/branches/UKMO/NEMO_4.0.4_FOAM_package_generic_obs/src/OCE/OBS/obs_prep.F90

    r15752 r15781  
    12931293               &  .OR. ( pobsphi(jobs) >   90.    )       & 
    12941294               &  .OR. ( pobsdep(jobsp) < 0.0     )       & 
    1295                &  .OR. ( pobsdep(jobsp) > maxdepw ) ) THEN 
     1295               &  .OR. ( pobsdep(jobsp) > gdepw_1d(kpk) ) ) THEN 
    12961296               kobsqc(jobsp) = IBSET(kobsqc(jobsp),11) 
    12971297               kosdobs = kosdobs + 1 
     
    13391339 
    13401340            ! Set observation depth equal to that of the first model depth 
    1341             IF ( pobsdep(jobsp) < MINVAL(zgdept(1:2,1:2,1,jobs) ) ) THEN 
    1342                pobsdep(jobsp) = MINVAL(zgdept(1:2,1:2,1,jobs)) 
    1343             ENDIF 
     1341            IF ( pobsdep(jobsp) <= pdep(1) ) THEN 
     1342               pobsdep(jobsp) = pdep(1)  
     1343            ENDIF 
     1344            !IF ( pobsdep(jobsp) < MINVAL(zgdept(1:2,1:2,1,jobs) ) ) THEN 
     1345            !   pobsdep(jobsp) = MINVAL(zgdept(1:2,1:2,1,jobs)) 
     1346            !ENDIF 
    13441347 
    13451348            ! Set observation depth equal to that of the last wet T-point 
    1346             IF ( ( pobsdep(jobsp) > maxdept ) .AND. & 
    1347                & ( pobsdep(jobsp) < maxdepw ) ) THEN 
    1348                pobsdep(jobsp) = maxdept 
    1349             END IF 
     1349            !IF ( ( pobsdep(jobsp) > maxdept ) .AND. & 
     1350            !   & ( pobsdep(jobsp) < maxdepw ) ) THEN 
     1351            !   pobsdep(jobsp) = maxdept 
     1352            !END IF 
    13501353             
    13511354            IF (ln_bdy) THEN 
Note: See TracChangeset for help on using the changeset viewer.