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 15585 for NEMO/branches/UKMO/v15531_cpl-mslp-apr/src – NEMO

Ignore:
Timestamp:
2021-12-08T10:50:28+01:00 (3 years ago)
Author:
jcastill
Message:

Further fixes to take into account changes in code versions

Location:
NEMO/branches/UKMO/v15531_cpl-mslp-apr/src/OCE/SBC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/v15531_cpl-mslp-apr/src/OCE/SBC/sbccpl.F90

    r15583 r15585  
    13531353         IF( ln_apr_dyn ) THEN   
    13541354            IF( kt /= nit000 )   ssh_ibb(:,:) = ssh_ib(:,:)     !* Swap of ssh_ib fields 
    1355                !                                  !* update the reference atmospheric pressure (if necessary)    
    1356                IF( ln_ref_apr )  rn_pref = glob_sum( 'sbccpl', frcv(jpr_mslp)%z3(:,:,1) * e1e2t(:,:) ) / tarea 
     1355            !                                  !* update the reference atmospheric pressure (if necessary)    
     1356            IF( ln_ref_apr )  rn_pref = glob_sum( 'sbccpl', frcv(jpr_mslp)%z3(:,:,1) * e1e2t(:,:) ) / tarea 
    13571357        
    1358                ssh_ib(:,:) = - ( frcv(jpr_mslp)%z3(:,:,1) - rn_pref ) * r1_grau  ! equivalent ssh (inverse barometer)    
    1359                apr   (:,:) =     frcv(jpr_mslp)%z3(:,:,1)                        !atmospheric pressure    
    1360                !   
    1361                CALL iom_put( "ssh_ib", ssh_ib )   !* output the inverse barometer ssh   
    1362                !                                         ! ---------------------------------------- !    
    1363                IF( kt == nit000 ) THEN                   !   set the forcing field at nit000 - 1    !    
    1364                   !                                      ! ---------------------------------------- !    
    1365                   !* Restart: read in restart file    
    1366                   IF( ln_rstart .AND. iom_varid( numror, 'ssh_ibb', ldstop = .FALSE. ) > 0 ) THEN    
    1367                      IF(lwp) WRITE(numout,*) 'sbc_cpl:   ssh_ibb read in the restart file'    
    1368                      CALL iom_get( numror, jpdom_autoglo, 'ssh_ibb', ssh_ibb )   ! before inv. barometer ssh    
    1369                   ELSE                                         !* no restart: set from nit000 values    
    1370                      IF(lwp) WRITE(numout,*) 'sbc_cpl:   ssh_ibb set to nit000 values'    
    1371                      ssh_ibb(:,:) = ssh_ib(:,:)    
    1372                   ENDIF    
     1358            ssh_ib(:,:) = - ( frcv(jpr_mslp)%z3(:,:,1) - rn_pref ) * r1_grau  ! equivalent ssh (inverse barometer)    
     1359            apr   (:,:) =     frcv(jpr_mslp)%z3(:,:,1)                        !atmospheric pressure    
     1360            !   
     1361            CALL iom_put( "ssh_ib", ssh_ib )   !* output the inverse barometer ssh   
     1362            !                                         ! ---------------------------------------- !    
     1363            IF( kt == nit000 ) THEN                   !   set the forcing field at nit000 - 1    !    
     1364               !                                      ! ---------------------------------------- !    
     1365               !* Restart: read in restart file    
     1366               IF( ln_rstart .AND. iom_varid( numror, 'ssh_ibb', ldstop = .FALSE. ) > 0 ) THEN    
     1367                  IF(lwp) WRITE(numout,*) 'sbc_cpl:   ssh_ibb read in the restart file'    
     1368                  CALL iom_get( numror, jpdom_auto, 'ssh_ibb', ssh_ibb )      ! before inv. barometer ssh    
     1369               ELSE                                         !* no restart: set from nit000 values    
     1370                  IF(lwp) WRITE(numout,*) 'sbc_cpl:   ssh_ibb set to nit000 values'    
     1371                  ssh_ibb(:,:) = ssh_ib(:,:)    
    13731372               ENDIF    
    1374                !                                         ! ---------------------------------------- !    
    1375                IF( lrst_oce ) THEN                       !      Write in the ocean restart file    !    
    1376                   !                                      ! ---------------------------------------- !    
    1377                   IF(lwp) WRITE(numout,*)    
    1378                   IF(lwp) WRITE(numout,*) 'sbc_cpl : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp    
    1379                   IF(lwp) WRITE(numout,*) '~~~~'    
    1380                   CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib )    
    1381                ENDIF    
    1382             ENDIF   
     1373            ENDIF    
     1374            !                                         ! ---------------------------------------- !    
     1375            IF( lrst_oce ) THEN                       !      Write in the ocean restart file    !    
     1376               !                                      ! ---------------------------------------- !    
     1377               IF(lwp) WRITE(numout,*)    
     1378               IF(lwp) WRITE(numout,*) 'sbc_cpl : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp    
     1379               IF(lwp) WRITE(numout,*) '~~~~'    
     1380               CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib )    
     1381            ENDIF    
    13831382         
    13841383            ! Update mean ssh    
  • NEMO/branches/UKMO/v15531_cpl-mslp-apr/src/OCE/SBC/sbcmod.F90

    r15537 r15585  
    441441      IF( ln_mixcpl )          CALL sbc_cpl_rcv   ( kt, nn_fsbc, nn_ice, Kbb, Kmm )  ! forced-coupled mixed formulation after forcing 
    442442      ! 
    443       IF( ln_bdy )             CALL bdy_dta ( kt, kt_offset=+1 )                     ! update dynamic & tracer data at open boundaries 
     443      IF( ln_bdy )             CALL bdy_dta ( kt, Kmm )                              ! update dynamic & tracer data at open boundaries 
    444444      ! 
    445445      IF( ln_wave .AND. ln_tauoc )  THEN            ! Wave stress reduction 
Note: See TracChangeset for help on using the changeset viewer.