- Timestamp:
- 2010-05-03T13:59:46+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_2/limdmp_2.F90
r1855 r1857 4 4 !! Ice model : restoring Ice thickness and Fraction leads 5 5 !!====================================================================== 6 !! History : 2.0 ! 2004-04 (S. Theetten) Original code6 !! History : 2.0 ! 04-04 (S. Theetten) Original code 7 7 !!---------------------------------------------------------------------- 8 8 #if defined key_lim2 && defined key_tradmp … … 11 11 !! 'key_tradmp' Damping 12 12 !!---------------------------------------------------------------------- 13 !! lim_dmp_2 : ice model damping14 13 !!---------------------------------------------------------------------- 15 USE oce ! ocean variables 16 USE dom_oce ! ocean domain 17 USE phycst ! physical constants 18 USE ice_2 ! LIM-2 variables 19 USE tradmp ! traceur damping 20 USE in_out_manager ! I/O manager 21 USE iom ! 14 !! lim_dmp_2 : ice model damping 15 !!---------------------------------------------------------------------- 16 USE in_out_manager ! I/O manager 17 USE phycst ! physical constants 18 USE ice_2 19 USE tradmp 20 USE dom_oce 21 USE oce 22 USE iom 22 23 23 24 IMPLICIT NONE … … 26 27 PUBLIC lim_dmp_2 ! called by ice_step_2 27 28 28 INTEGER :: nice1, nice2 29 INTEGER :: inumice_dmp! logical unit for ice variables (damping)30 REAL(wp), DIMENSION(jpi,jpj) :: hicif_dta 31 REAL(wp), DIMENSION(jpi,jpj) :: frld_dta! fraction lead at a given time32 REAL(wp), DIMENSION(jpi,jpj,2) :: hicif_data 33 REAL(wp), DIMENSION(jpi,jpj,2) :: frld_data! fraction lead data at two consecutive times29 INTEGER :: nice1, nice2, & ! first and second record used 30 & inumice_dmp ! logical unit for ice variables (damping) 31 REAL(wp), DIMENSION(jpi,jpj) :: hicif_dta , & ! ice thickness at a given time 32 & frld_dta ! fraction lead at a given time 33 REAL(wp), DIMENSION(jpi,jpj,2) :: hicif_data , & ! ice thickness data at two consecutive times 34 & frld_data ! fraction lead data at two consecutive times 34 35 35 36 !! * Substitution 36 37 # include "vectopt_loop_substitute.h90" 37 38 !!---------------------------------------------------------------------- 38 !! NEMO/LIM 3.3, UCL-LOCEAN-IPSL (2010)39 !! LIM 2.0 , UCL-LOCEAN-IPSL (2006) 39 40 !! $Id$ 40 41 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) … … 43 44 CONTAINS 44 45 45 SUBROUTINE lim_dmp_2( kt)46 SUBROUTINE lim_dmp_2(kt) 46 47 !!------------------------------------------------------------------- 47 48 !! *** ROUTINE lim_dmp_2 *** … … 52 53 !! ** method : the key_tradmp must be used to compute resto(:,:) coef. 53 54 !!--------------------------------------------------------------------- 54 INTEGER, INTENT(in) :: kt ! ocean time-step55 ! !56 INTEGER :: ji, jj! dummy loop indices55 INTEGER, INTENT(in) :: kt ! ocean time-step 56 ! 57 INTEGER :: ji, jj ! dummy loop indices 57 58 !!--------------------------------------------------------------------- 58 59 ! 59 60 CALL dta_lim_2( kt ) 60 ! 61 61 62 DO jj = 2, jpjm1 62 63 DO ji = fs_2, fs_jpim1 ! vector opt. 63 64 hicif(ji,jj) = hicif(ji,jj) - rdt_ice * resto(ji,jj,1) * ( hicif(ji,jj) - hicif_dta(ji,jj) ) 64 frld(ji,jj) = frld (ji,jj) - rdt_ice * resto(ji,jj,1) * ( frld (ji,jj)- frld_dta (ji,jj) )65 frld(ji,jj) = frld (ji,jj) - rdt_ice * resto(ji,jj,1) * ( frld(ji,jj) - frld_dta (ji,jj) ) 65 66 END DO 66 67 END DO
Note: See TracChangeset
for help on using the changeset viewer.