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

Included Modules

dc_types gridset gtool_historyauto timeset read_time_series set_1d_profile 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, EndTime, TimesetClockStart, TimesetClockStop

    use read_time_series, only: SetValuesFromTimeSeriesWrapper

    ! ファイルから 1 次元プロファイルを読んで設定する. 
    ! read 1-D profile from a file and set it 
    !
    use set_1d_profile, only : Set1DProfileO3


    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
    !


    ! 計算時間計測開始
    ! Start measurement of computation time
    !
    call TimesetClockStart( module_name )

    ! 初期化
    ! Initialization
    !
    if ( .not. set_o3_inited ) call SetO3Init


    if ( FlagO3 ) then

      if ( Flag1D ) then

        call Set1DProfileO3( xyz_Press, xyz_QO3 )

      else

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

      end if

    else

      xyz_QO3 (:,:,:) = 0.0d0

    end if

    call HistoryAutoPut( TimeN, "O3", xyz_QO3 )


    ! 計算時間計測一時停止
    ! Pause measurement of computation time
    !
    call TimesetClockStop( module_name )


  end subroutine SetO3
set_o3_inited
Variable :
set_o3_inited = .false. :logical, save, public
: 初期設定フラグ. Initialization flag

Private Instance methods

Flag1D
Variable :
Flag1D :logical , save
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, Flag1D, O3File
          !
          ! デフォルト値については初期化手続 "set_o3#SetO3Init"
          ! のソースコードを参照のこと.
          !
          ! Refer to source codes in the initialization procedure
          ! "set_o3#SetO3Init" for the default values.
          !

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

    FlagO3 = .true.

    Flag1D = .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, '  Flag1D = %b', l = (/ Flag1D /) )
    call MessageNotify( 'M', module_name, '  O3File = %c', c1 = trim( O3File ) )
    call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )


    set_o3_inited = .true.

  end subroutine SetO3Init
module_name
Constant :
module_name = ‘set_o3 :character(*), parameter
: モジュールの名称. Module name
version
Constant :
version = ’$Name: dcpam5-20110407 $’ // ’$Id: set_o3.f90,v 1.3 2010-12-18 12:59:54 yot Exp $’ :character(*), parameter
: モジュールのバージョン Module version