Changeset 15585 for NEMO/branches/UKMO/v15531_cpl-mslp-apr/src
- Timestamp:
- 2021-12-08T10:50:28+01:00 (3 years ago)
- 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 1353 1353 IF( ln_apr_dyn ) THEN 1354 1354 IF( kt /= nit000 ) ssh_ibb(:,:) = ssh_ib(:,:) !* Swap of ssh_ib fields 1355 1356 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 1357 1357 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(:,:) 1373 1372 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= ', ndastp1379 IF(lwp) WRITE(numout,*) '~~~~'1380 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib )1381 ENDIF1382 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 1383 1382 1384 1383 ! Update mean ssh -
NEMO/branches/UKMO/v15531_cpl-mslp-apr/src/OCE/SBC/sbcmod.F90
r15537 r15585 441 441 IF( ln_mixcpl ) CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice, Kbb, Kmm ) ! forced-coupled mixed formulation after forcing 442 442 ! 443 IF( ln_bdy ) CALL bdy_dta ( kt, kt_offset=+1 )! update dynamic & tracer data at open boundaries443 IF( ln_bdy ) CALL bdy_dta ( kt, Kmm ) ! update dynamic & tracer data at open boundaries 444 444 ! 445 445 IF( ln_wave .AND. ln_tauoc ) THEN ! Wave stress reduction
Note: See TracChangeset
for help on using the changeset viewer.