Class surface_properties_lo
In: surface_properties/surface_properties_lo.f90

Methods

Included Modules

dc_types dc_message gridset dc_iounit namelist_util

Public Instance methods

Subroutine :
xy_SurfCond( 0:imax-1, 1:jmax ) :integer , intent(in )
xy_SurfAlbedo( 0:imax-1, 1:jmax ) :real(DP), intent(inout)

[Source]

  subroutine SetAlbedoLO( xy_SurfCond, xy_SurfAlbedo )

    ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements
    !

    ! �¼å��¹è¨­å®�
    ! Grid points settings
    !
    use gridset, only: imax, jmax, kmax    ! ���´å±¤��.
                               ! Number of vertical level


    integer , intent(in   ) :: xy_SurfCond  ( 0:imax-1, 1:jmax )
    real(DP), intent(inout) :: xy_SurfAlbedo( 0:imax-1, 1:jmax )

    ! �業��
    ! Work variables
    !
    integer:: i               ! çµ�åº��¹å�������� DO ���¼ã�����業å���
                              ! Work variables for DO loop in longitude
    integer:: j               ! ç·�º¦�¹å�������� DO ���¼ã�����業å���
                              ! Work variables for DO loop in latitude

    ! ������確è�
    ! Initialization check
    !
    if ( .not. surface_properties_lo_inited ) then
      call MessageNotify( 'E', module_name, 'This module has not been initialized.' )
    end if


    do j = 1, jmax
      do i = 0, imax-1

        if( xy_SurfCond(i,j) == 0 ) then
          xy_SurfAlbedo(i,j) = AlbedoOcean
        else
          xy_SurfAlbedo(i,j) = AlbedoLand
        end if

      end do
    end do


  end subroutine SetAlbedoLO
Subroutine :
xy_SurfCond( 0:imax-1, 1:jmax ) :integer , intent(in )
xy_RoughLen( 0:imax-1, 1:jmax ) :real(DP), intent(inout)

[Source]

  subroutine SetRoughLenLO( xy_SurfCond, xy_RoughLen )

    ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements
    !

    ! �¼å��¹è¨­å®�
    ! Grid points settings
    !
    use gridset, only: imax, jmax, kmax    ! ���´å±¤��.
                               ! Number of vertical level


    integer , intent(in   ) :: xy_SurfCond( 0:imax-1, 1:jmax )
    real(DP), intent(inout) :: xy_RoughLen( 0:imax-1, 1:jmax )

    ! �業��
    ! Work variables
    !
    integer:: i               ! çµ�åº��¹å�������� DO ���¼ã�����業å���
                              ! Work variables for DO loop in longitude
    integer:: j               ! ç·�º¦�¹å�������� DO ���¼ã�����業å���
                              ! Work variables for DO loop in latitude

    ! ������確è�
    ! Initialization check
    !
    if ( .not. surface_properties_lo_inited ) then
      call MessageNotify( 'E', module_name, 'This module has not been initialized.' )
    end if


    do j = 1, jmax
      do i = 0, imax-1

        if( xy_SurfCond(i,j) == 0 ) then
          xy_RoughLen(i,j) = RoughLenOcean
        else
          xy_RoughLen(i,j) = RoughLenLand
        end if

      end do
    end do


  end subroutine SetRoughLenLO
Subroutine :

This procedure input/output NAMELIST#surface_properties_lo_nml .

[Source]

  subroutine SurfacePropertiesLOInit

    ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements
    !

    ! ç¨��¥å�������¡ã��
    ! Kind type parameter
    !
    use dc_types, only: STDOUT ! æ¨�æº��ºå�����ç½����. Unit number of standard output

    ! ���¡ã�¤ã���¥å�ºå��è£���
    ! File I/O support
    !
    use dc_iounit, only: FileOpen

    ! NAMELIST ���¡ã�¤ã���¥å�����¢ã�������¼ã���£ã������
    ! Utilities for NAMELIST file input
    !
    use namelist_util, only: namelist_filename, NmlutilMsg

    ! �業��
    ! Work variables
    !
    integer:: unit_nml        ! NAMELIST ���¡ã�¤ã�����¼ã���³ç���ç½����.
                              ! Unit number for NAMELIST file open
    integer:: iostat_nml      ! NAMELIST 読ã�¿è¾¼�¿æ���� IOSTAT.
                              ! IOSTAT of NAMELIST read

    ! NAMELIST å¤��°ç¾¤
    ! NAMELIST group name
    !
    namelist /surface_properties_lo_nml/ AlbedoLand, AlbedoOcean, RoughLenLand, RoughLenOcean

          ! �����������¤ã���¤ã��������������ç¶� "surface_properties_lo#SurfacePropertiesLOInit"
          ! ���½ã�¼ã�¹ã�³ã�¼ã�������§ã������.
          !
          ! Refer to source codes in the initialization procedure
          ! "surface_properties_lo#SurfacePropertiesLOInit" for the default values.
          !

    if ( surface_properties_lo_inited ) return



    ! �����������¤ã��¨­å®�
    ! Default values settings
    !

    AlbedoLand    = 0.3_DP
    AlbedoOcean   = 0.1_DP
    RoughLenLand  = 1.0e-1_DP
    RoughLenOcean = 1.0e-4_DP


    ! NAMELIST ����¿è¾¼��
    ! NAMELIST is input
    !
    if ( trim(namelist_filename) /= '' ) then
      call FileOpen( unit_nml, namelist_filename, mode = 'r' ) ! (in)

      rewind( unit_nml )
      read( unit_nml, nml = surface_properties_lo_nml, iostat = iostat_nml )
      close( unit_nml )

      call NmlutilMsg( iostat_nml, module_name ) ! (in)
      if ( iostat_nml == 0 ) write( STDOUT, nml = surface_properties_lo_nml )
    end if


    ! �°å� ; Print
    !
    call MessageNotify( 'M', module_name, '----- Initialization Messages -----' )
    call MessageNotify( 'M', module_name, 'AlbedoLand    = %f', d = (/ AlbedoLand /) )
    call MessageNotify( 'M', module_name, 'AlbedoOcean   = %f', d = (/ AlbedoOcean /) )
    call MessageNotify( 'M', module_name, 'RoughLenLand  = %f', d = (/ RoughLenLand /) )
    call MessageNotify( 'M', module_name, 'RoughLenOcean = %f', d = (/ RoughLenOcean /) )
    call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )


    surface_properties_lo_inited = .true.

  end subroutine SurfacePropertiesLOInit

Private Instance methods

AlbedoLand
Variable :
AlbedoLand :real(DP), save
AlbedoOcean
Variable :
AlbedoOcean :real(DP), save
RoughLenLand
Variable :
RoughLenLand :real(DP), save
RoughLenOcean
Variable :
RoughLenOcean :real(DP), save
module_name
Constant :
module_name = ‘surface_properties_lo :character(*), parameter
: �¢ã�¸ã�¥ã�¼ã������ç§�. Module name
surface_properties_lo_inited
Variable :
surface_properties_lo_inited = .false. :logical, save
: ����設������. Initialization flag
version
Constant :
version = ’$Name: $’ // ’$Id: surface_properties_lo.f90,v 1.2 2014/05/07 09:39:23 murashin Exp $’ :character(*), parameter
: �¢ã�¸ã�¥ã�¼ã�������¼ã�¸ã�§ã�� Module version