Class set_o3
In: radiation/set_o3.f90

O3 分布の設定

Set O3 distribution

Note that Japanese and English are described in parallel.

O3 分布.

Set O3 distribution.

References

!$ ! Roewe, D., and K.-N. Liou, Influence of cirrus clouds on the infrared cooling !$ ! rate in the troposphere and lower stratosphere, J. Appl. Met., 17, 92-106, 1978.

Procedures List

!$ ! RadiationFluxDennouAGCM :放射フラックスの計算
!$ ! RadiationDTempDt :放射フラックスによる温度変化の計算
!$ ! RadiationFluxOutput :放射フラックスの出力
!$ ! RadiationFinalize :終了処理 (モジュール内部の変数の割り付け解除)
!$ ! ———— :————
!$ ! RadiationFluxDennouAGCM :Calculate radiation flux
!$ ! RadiationDTempDt :Calculate temperature tendency with radiation flux
!$ ! RadiationFluxOutput :Output radiation fluxes
!$ ! RadiationFinalize :Termination (deallocate variables in this module)

NAMELIST

!$ ! NAMELIST#radiation_DennouAGCM_nml

Methods

FlagO3   O3File   SetO3   SetO3Init   module_name   sw_fs   version  

Included Modules

dc_types gridset gtool_historyauto timeset read_time_series dc_iounit namelist_util dc_message

Public Instance methods

Subroutine :
xyz_Press(0:imax-1, 1:jmax, 1:kmax) :real(DP), intent(in )
xyz_QO3(0:imax-1, 1:jmax, 1:kmax) :real(DP), intent(out)

[Source]

  subroutine SetO3( xyz_Press, xyz_QO3 )


    ! USE statements
    !

    ! 
    ! Grid points settings
    !
    use gridset, only: imax, jmax, kmax    ! 
                               ! Number of vertical level

    ! ヒストリデータ出力
    ! History data output
    !
    use gtool_historyauto, only: HistoryAutoAddVariable, HistoryAutoPut

    ! 時刻管理
    ! Time control
    !
    use timeset, only: TimeN                   ! ステップ $ t $ の時刻.
                                ! Time of step $ t $.

    use read_time_series, only: SetValuesFromTimeSeriesWrapper

    real(DP), intent(in ):: xyz_Press(0:imax-1, 1:jmax, 1:kmax)
    real(DP), intent(out):: xyz_QO3  (0:imax-1, 1:jmax, 1:kmax)


    ! 
    ! Work variables
    !



    if ( sw_fs ) then
      call SetO3Init
    end if


    if ( FlagO3 ) then

      call SetValuesFromTimeSeriesWrapper( O3File, "O3", xyz_Press, xyz_QO3, "O3" )

    else

      xyz_QO3 (:,:,:) = 0.0d0

    end if

    call HistoryAutoPut( TimeN, "O3", xyz_QO3 )


  end subroutine SetO3

Private Instance methods

FlagO3
Variable :
FlagO3 :logical , save
O3File
Variable :
O3File :character(STRING), save
Subroutine :

This procedure input/output NAMELIST#set_O3_nml .

[Source]

  subroutine SetO3Init


    ! ファイル入出力補助
    ! File I/O support
    !
    use dc_iounit, only: FileOpen

    ! NAMELIST ファイル入力に関するユーティリティ
    ! Utilities for NAMELIST file input
    !
    use namelist_util, only: namelist_filename, NmlutilMsg, NmlutilAryValid

    ! メッセージ出力
    ! Message output
    !
    use dc_message, only: MessageNotify

    ! ヒストリデータ出力
    ! History data output
    !
    use gtool_historyauto, only: HistoryAutoAddVariable

    integer:: unit_nml        ! NAMELIST ファイルオープン用装置番号.
                              ! Unit number for NAMELIST file open
    integer:: iostat_nml      ! NAMELIST 読み込み時の IOSTAT.
                              ! IOSTAT of NAMELIST read

    ! NAMELIST 変数群
    ! NAMELIST group name
    !
    namelist /set_O3_nml/ FlagO3, O3File
          !
          ! デフォルト値については初期化手続 "radiation_DennouAGCM#RadiationInit"
          ! のソースコードを参照のこと.
          !
          ! Refer to source codes in the initialization procedure
          ! "radiation_DennouAGCM#RadiationInit" for the default values.
          !

    ! デフォルト値の設定
    ! Default values settings
    !

    FlagO3 = .false.

    O3File = ""


    ! 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 = set_O3_nml, iostat = iostat_nml )             ! (out)
      close( unit_nml )

      call NmlutilMsg( iostat_nml, module_name ) ! (in)
    end if


    call HistoryAutoAddVariable( "O3", (/ 'lon ', 'lat ', 'sig ', 'time' /), "ozone", 'kg kg-1' )                     ! (in)

    ! 印字 ; Print
    !
    call MessageNotify( 'M', module_name, '----- Initialization Messages -----' )
    call MessageNotify( 'M', module_name, '  FlagO3 = %b', l = (/ FlagO3 /) )
    call MessageNotify( 'M', module_name, '  O3File = %c', c1 = trim( O3File ) )
    call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )


    sw_fs = .false.


  end subroutine SetO3Init
module_name
Constant :
module_name = ‘set_o3 :character(*), parameter
: モジュールの名称. Module name
sw_fs
Variable :
sw_fs :logical , save
version
Constant :
version = ’$Name: dcpam5-20100224 $’ // ’$Id: set_o3.f90,v 1.1 2010-01-11 01:48:47 yot Exp $’ :character(*), parameter
: モジュールのバージョン Module version

[Validate]