- Timestamp:
- 2017-12-13T18:08:50+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ASM/asminc.F90
r9019 r9023 20 20 !! dyn_asm_inc : Apply the dynamic (u and v) increments 21 21 !! ssh_asm_inc : Apply the SSH increment 22 !! ssh_asm_div : Apply divergence associated with SSH increment 22 23 !! seaice_asm_inc : Apply the seaice increment 23 24 !!---------------------------------------------------------------------- … … 48 49 PUBLIC dyn_asm_inc !: Apply the dynamic (u and v) increments 49 50 PUBLIC ssh_asm_inc !: Apply the SSH increment 51 PUBLIC ssh_asm_div !: Apply the SSH divergence 50 52 PUBLIC seaice_asm_inc !: Apply the seaice increment 51 53 … … 785 787 END SUBROUTINE ssh_asm_inc 786 788 789 SUBROUTINE ssh_asm_div( kt, phdivn ) 790 !!---------------------------------------------------------------------- 791 !! *** ROUTINE ssh_asm_div *** 792 !! 793 !! ** Purpose : ssh increment with z* is incorporated via a correction of the local divergence 794 !! across all the water column 795 !! 796 !! ** Method : 797 !! CAUTION : sshiau is positive (inflow) decreasing the 798 !! divergence and expressed in m/s 799 !! 800 !! ** Action : phdivn decreased by the ssh increment 801 !!---------------------------------------------------------------------- 802 INTEGER, INTENT(IN) :: kt ! ocean time-step index 803 REAL(wp), DIMENSION(:,:,:), INTENT(inout) :: phdivn ! horizontal divergence 804 !! 805 INTEGER :: jk ! dummy loop index 806 REAL(wp), DIMENSION(:,:) , POINTER :: ztim ! local array 807 !!---------------------------------------------------------------------- 808 ! 809 #if defined key_asminc 810 CALL ssh_asm_inc( kt ) !== (calculate increments) 811 ! 812 IF( ln_linssh ) THEN 813 phdivn(:,:,1) = phdivn(:,:,1) - ssh_iau(:,:) / e3t_n(:,:,1) * tmask(:,:,1) 814 ELSE 815 CALL wrk_alloc( jpi,jpj, ztim) 816 ztim(:,:) = ssh_iau(:,:) / ( ht_n(:,:) + 1.0 - ssmask(:,:) ) 817 DO jk = 1, jpkm1 818 phdivn(:,:,jk) = phdivn(:,:,jk) - ztim(:,:) * tmask(:,:,jk) 819 END DO 820 ! 821 CALL wrk_dealloc( jpi,jpj, ztim) 822 ENDIF 823 #endif 824 ! 825 END SUBROUTINE ssh_asm_div 787 826 788 827 SUBROUTINE seaice_asm_inc( kt, kindic )
Note: See TracChangeset
for help on using the changeset viewer.