- Timestamp:
- 2012-04-30T12:50:36+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icbthm.F90
r3370 r3372 12 12 !!---------------------------------------------------------------------- 13 13 !!---------------------------------------------------------------------- 14 !! thermodynamics: initialise15 !! 14 !! icb_thm : initialise 15 !! reference for equations - M = Martin + Adcroft, OM 34, 2010 16 16 !!---------------------------------------------------------------------- 17 17 USE par_oce ! NEMO parameters … … 29 29 PRIVATE 30 30 31 PUBLIC thermodynamics! routine called in icbrun.F90 module31 PUBLIC icb_thm ! routine called in icbrun.F90 module 32 32 33 33 CONTAINS 34 34 35 SUBROUTINE thermodynamics( kt )35 SUBROUTINE icb_thm( kt ) 36 36 !!---------------------------------------------------------------------- 37 !! *** ROUTINE thermodynamics***37 !! *** ROUTINE icb_thm *** 38 38 !! 39 39 !! ** Purpose : compute the iceberg thermodynamics. … … 41 41 !! ** Method : - blah blah 42 42 !!---------------------------------------------------------------------- 43 INTEGER, INTENT(in) :: kt ! timestep number, just passed to print_berg43 INTEGER, INTENT(in) :: kt ! timestep number, just passed to icb_utl_print_berg 44 44 ! 45 45 INTEGER :: ii, ij … … 68 68 pt => this%current_point 69 69 nknberg = this%number(1) 70 CALL i nterp_flds( pt%xi, pt%e1, pt%uo, pt%ui, pt%ua, pt%ssh_x, &71 & pt%yj, pt%e2, pt%vo, pt%vi, pt%va, pt%ssh_y, &70 CALL icb_utl_interp( pt%xi, pt%e1, pt%uo, pt%ui, pt%ua, pt%ssh_x, & 71 & pt%yj, pt%e2, pt%vo, pt%vi, pt%va, pt%ssh_y, & 72 72 & pt%sst, pt%cn, pt%hi, zff ) 73 73 ! … … 159 159 zheat = zmelt * pt%heat_density ! kg/s x J/kg = J/s 160 160 berg_grid%calving_hflx (ii,ij) = berg_grid%calving_hflx (ii,ij) + zheat * z1_e1e2 ! W/m2 161 CALL melt_budget( ii, ij, zMnew, zheat, this%mass_scaling, &162 & zdM, zdMbitsE, zdMbitsM, zdMb, zdMe, &163 & zdMv, z1_dt_e1e2 )161 CALL icb_dia_melt( ii, ij, zMnew, zheat, this%mass_scaling, & 162 & zdM, zdMbitsE, zdMbitsM, zdMb, zdMe, & 163 & zdMv, z1_dt_e1e2 ) 164 164 ELSE 165 WRITE(numout,*) ' thermodynamics: berg ',this%number(:),' appears to have grounded at ',narea,ii,ij166 CALL print_berg( this, kt )165 WRITE(numout,*) 'icb_thm: berg ',this%number(:),' appears to have grounded at ',narea,ii,ij 166 CALL icb_utl_print_berg( this, kt ) 167 167 WRITE(numout,*) 'msk=',tmask(ii,ij,1), e1e2t(ii,ij) 168 CALL ctl_stop(' thermodynamics', 'berg appears to have grounded!')168 CALL ctl_stop('icb_thm', 'berg appears to have grounded!') 169 169 ENDIF 170 170 … … 189 189 190 190 IF( zMnew <= 0._wp ) THEN ! Delete the berg if completely melted 191 CALL delete_iceberg_from_list( first_berg, this )191 CALL icb_utl_delete( first_berg, this ) 192 192 ! 193 193 ELSE ! Diagnose mass distribution on grid 194 194 z1_e1e2 = 1._wp / e1e2t(ii,ij) * this%mass_scaling 195 CALL size_budget( ii, ij, zWn, zLn, zAbits, &196 & this%mass_scaling, zMnew, znMbits, z1_e1e2)195 CALL icb_dia_size( ii, ij, zWn, zLn, zAbits, & 196 & this%mass_scaling, zMnew, znMbits, z1_e1e2) 197 197 ENDIF 198 198 ! … … 209 209 ENDIF 210 210 ! 211 END SUBROUTINE thermodynamics211 END SUBROUTINE icb_thm 212 212 213 213 !!======================================================================
Note: See TracChangeset
for help on using the changeset viewer.