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

Changeset 15801


Ignore:
Timestamp:
2022-04-25T18:52:24+02:00 (2 years ago)
Author:
dford
Message:

Reinstate bug fixes removed from previous branch in r15781.

Location:
NEMO/branches/UKMO/NEMO_4.0.4_FOAM_package_v3.6_bugfixes/src/OCE
Files:
2 edited

Legend:

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

    r14075 r15801  
    5151   USE agrif_oce 
    5252#endif 
    53 #if defined key_asminc    
    54    USE asminc          ! Assimilation increment 
    55 #endif 
    5653   ! 
    5754   USE in_out_manager  ! I/O manager 
     
    341338      ENDIF 
    342339      ! 
    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 
    350340      !                                   != Fill boundary data arrays for AGRIF 
    351341      !                                   ! ------------------------------------ 
  • NEMO/branches/UKMO/NEMO_4.0.4_FOAM_package_v3.6_bugfixes/src/OCE/OBS/obs_prep.F90

    r15799 r15801  
    12931293               &  .OR. ( pobsphi(jobs) >   90.    )       & 
    12941294               &  .OR. ( pobsdep(jobsp) < 0.0     )       & 
    1295                &  .OR. ( pobsdep(jobsp) > gdepw_1d(kpk) ) ) THEN 
     1295               &  .OR. ( pobsdep(jobsp) > maxdepw ) ) 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) <= 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 
     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 
    13471344 
    13481345            ! Set observation depth equal to that of the last wet T-point 
    1349             !IF ( ( pobsdep(jobsp) > maxdept ) .AND. & 
    1350             !   & ( pobsdep(jobsp) < maxdepw ) ) THEN 
    1351             !   pobsdep(jobsp) = maxdept 
    1352             !END IF 
     1346            IF ( ( pobsdep(jobsp) > maxdept ) .AND. & 
     1347               & ( pobsdep(jobsp) < maxdepw ) ) THEN 
     1348               pobsdep(jobsp) = maxdept 
     1349            END IF 
    13531350             
    13541351            IF (ln_bdy) THEN 
Note: See TracChangeset for help on using the changeset viewer.