[2128] | 1 | MODULE bdyice |
---|
[2185] | 2 | !!====================================================================== |
---|
[2128] | 3 | !! *** MODULE bdyice *** |
---|
[2185] | 4 | !! Unstructured Open Boundary Cond. : Flow Relaxation Scheme applied sea-ice |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 3.3 ! 2010-09 (D. Storkey) Original code |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
| 8 | #if defined key_bdy && defined key_lim2 |
---|
| 9 | !!---------------------------------------------------------------------- |
---|
| 10 | !! 'key_bdy' and Unstructured Open Boundary Conditions |
---|
| 11 | !! 'key_lim2' LIM-2 sea ice model |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
[2305] | 13 | !! bdy_ice_frs : Relaxation of tracers on unstructured open boundaries |
---|
[2185] | 14 | !!---------------------------------------------------------------------- |
---|
[2128] | 15 | USE oce ! ocean dynamics and tracers variables |
---|
| 16 | USE ice_2 ! LIM_2 ice variables |
---|
| 17 | USE dom_oce ! ocean space and time domain variables |
---|
| 18 | USE bdy_oce ! ocean open boundary conditions |
---|
| 19 | USE lbclnk ! ocean lateral boundary conditions (or mpp link) |
---|
| 20 | USE in_out_manager ! write to numout file |
---|
[2185] | 21 | |
---|
[2128] | 22 | IMPLICIT NONE |
---|
| 23 | PRIVATE |
---|
| 24 | |
---|
[2305] | 25 | PUBLIC bdy_ice_frs ! routine called in sbcmod |
---|
[2128] | 26 | |
---|
[2185] | 27 | !!---------------------------------------------------------------------- |
---|
| 28 | !! NEMO/OPA 3.3 , NEMO Consortium (2010) |
---|
[2287] | 29 | !! $Id$ |
---|
| 30 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[2185] | 31 | !!---------------------------------------------------------------------- |
---|
[2128] | 32 | CONTAINS |
---|
| 33 | |
---|
[2305] | 34 | SUBROUTINE bdy_ice_frs( kt ) |
---|
[2128] | 35 | !!------------------------------------------------------------------------------ |
---|
[2305] | 36 | !! *** SUBROUTINE bdy_ice_frs *** |
---|
[2128] | 37 | !! |
---|
[2185] | 38 | !! ** Purpose : Apply the Flow Relaxation Scheme for sea-ice fields in the case |
---|
| 39 | !! of unstructured open boundaries. Currently only tested for LIM2. |
---|
[2128] | 40 | !! |
---|
[2185] | 41 | !! Reference : Engedahl H., 1995: Use of the flow relaxation scheme in a three- |
---|
| 42 | !! dimensional baroclinic ocean model with realistic topography. Tellus, 365-382. |
---|
[2128] | 43 | !!------------------------------------------------------------------------------ |
---|
[2185] | 44 | INTEGER, INTENT( in ) :: kt ! model time step index |
---|
| 45 | !! |
---|
| 46 | INTEGER :: jb, jk, jgrd ! dummy loop indices |
---|
| 47 | INTEGER :: ii, ij ! local scalar |
---|
| 48 | REAL(wp) :: zwgt, zwgt1 ! local scalar |
---|
[2128] | 49 | !!------------------------------------------------------------------------------ |
---|
[2185] | 50 | ! |
---|
| 51 | jgrd = 1 ! Everything is at T-points here |
---|
| 52 | ! |
---|
[2305] | 53 | IF( ln_ice_frs ) THEN ! update ice fields by relaxation at the boundary |
---|
[2185] | 54 | DO jb = 1, nblen(jgrd) |
---|
| 55 | DO jk = 1, jpkm1 |
---|
| 56 | ii = nbi(jb,jgrd) |
---|
| 57 | ij = nbj(jb,jgrd) |
---|
| 58 | zwgt = nbw(jb,jgrd) |
---|
| 59 | zwgt1 = 1.e0 - nbw(jb,jgrd) |
---|
| 60 | frld (ii,ij) = ( frld (ii,ij) * zwgt1 + frld_bdy (jb) * zwgt ) * tmask(ii,ij,1) ! Leads fraction |
---|
| 61 | hicif(ii,ij) = ( hicif(ii,ij) * zwgt1 + hicif_bdy(jb) * zwgt ) * tmask(ii,ij,1) ! Ice depth |
---|
| 62 | hsnif(ii,ij) = ( hsnif(ii,ij) * zwgt1 + hsnif_bdy(jb) * zwgt ) * tmask(ii,ij,1) ! Snow depth |
---|
| 63 | END DO |
---|
| 64 | END DO |
---|
| 65 | CALL lbc_lnk( frld, 'T', 1. ) ! lateral boundary conditions |
---|
| 66 | CALL lbc_lnk( hicif, 'T', 1. ) ; CALL lbc_lnk( hsnif, 'T', 1. ) |
---|
| 67 | ! |
---|
[2305] | 68 | ELSE ! we have called this routine without ln_ice_frs not set |
---|
| 69 | IF( kt == nit000 ) CALL ctl_warn( 'E R R O R (possible) called bdy_ice_frs when ln_ice_frs is false?' ) |
---|
[2185] | 70 | ENDIF |
---|
| 71 | ! |
---|
[2305] | 72 | END SUBROUTINE bdy_ice_frs |
---|
[2128] | 73 | #else |
---|
| 74 | !!--------------------------------------------------------------------------------- |
---|
| 75 | !! Default option Empty module |
---|
| 76 | !!--------------------------------------------------------------------------------- |
---|
| 77 | CONTAINS |
---|
[2305] | 78 | SUBROUTINE bdy_ice_frs( kt ) ! Empty routine |
---|
| 79 | WRITE(*,*) 'bdy_ice_frs: You should not have seen this print! error?', kt |
---|
| 80 | END SUBROUTINE bdy_ice_frs |
---|
[2128] | 81 | #endif |
---|
| 82 | |
---|
| 83 | !!================================================================================= |
---|
| 84 | END MODULE bdyice |
---|