snowage.f90

来自「CCSM Research Tools: Community Atmospher」· F90 代码 · 共 76 行

F90
76
字号
#include <misc.h>#include <preproc.h>subroutine SnowAge (clm)!-----------------------------------------------------------------------!!  CLMCLMCLMCLMCLMCLMCLMCLMCLMCL  A community developed and sponsored, freely!  L                           M  available land surface process model.!  M --COMMUNITY LAND MODEL--  C!  C                           L!  LMCLMCLMCLMCLMCLMCLMCLMCLMCLM!!-----------------------------------------------------------------------! Purpose:! Updates snow age!! Method:! Based on BATS code.!! Author:! Original Code:  Robert Dickinson! 15 September 1999: Yongjiu Dai; Integration of code into CLM! 15 December 1999:  Paul Houser and Jon Radakovich; F90 Revision ! April 2002: Vertenstein/Oleson/Levis; Final form!!-----------------------------------------------------------------------! $Id: SnowAge.F90,v 1.2.10.2 2002/04/27 15:38:40 erik Exp $!-----------------------------------------------------------------------  use precision  use clmtype  use clm_varcon, only : tfrz  implicit none!----Arguments----------------------------------------------------------  type (clm1d), intent(inout) :: clm  !CLM 1-D Module!----Local Variables----------------------------------------------------  real(r8) age1 ! snow aging factor due to crystal growth [-]  real(r8) age2 ! snow aging factor due to surface growth [-]  real(r8) age3 ! snow aging factor due to accum of other particles [-]  real(r8) arg  ! temporary variable used in snow age calculation [-]  real(r8) arg2 ! temporary variable used in snow age calculation [-]  real(r8) dela ! temporary variable used in snow age calculation [-]  real(r8) dels ! temporary variable used in snow age calculation [-]  real(r8) sge  ! temporary variable used in snow age calculation [-]!----End Variable List--------------------------------------------------  if (clm%h2osno <= 0.) then     clm%snowage = 0.  else if (clm%h2osno > 800.) then   ! Over Antarctica     clm%snowage = 0.  else                               ! Away from Antarctica      age3  = 0.3     arg   = 5.e3*(1./tfrz-1./clm%t_grnd)     arg2  = min(0._r8,10.*arg)     age2  = exp(arg2)     age1  = exp(arg)     dela  = 1.e-6*clm%dtime*(age1+age2+age3)     dels  = 0.1*max(0.0_r8, clm%h2osno-clm%h2osno_old)     sge   = (clm%snowage+dela)*(1.0-dels)     clm%snowage   = max(0.0_r8,sge)  endifend subroutine SnowAge

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?