Class set_gcmr
In: radiation/set_gcmr.f90

����筝�絎�羞桁��罸���┃絎�

Set globally constant mixing ratio

Note that Japanese and English are described in parallel.

����筝�絎�羞桁��罸�.

Set globally constant mixing ratio.

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 :腟�篋����� (�≪�吾�ャ�若����������違���蚊��篁���茹i��)
!$ ! ———— :————
!$ ! RadiationFluxDennouAGCM :Calculate radiation flux
!$ ! RadiationDTempDt :Calculate temperature tendency with radiation flux
!$ ! RadiationFluxOutput :Output radiation fluxes
!$ ! RadiationFinalize :Termination (deallocate variables in this module)

NAMELIST

NAMELIST#set_gcmr_nml

Methods

Included Modules

dc_types dc_message gtool_historyauto timeset read_time_series dc_iounit namelist_util

Public Instance methods

Subroutine :
Spec :character(*), intent(in )
QGC :real(DP) , intent(out)

[Source]

  subroutine SetGCMR( Spec, QGC )


    ! USE statements
    !

    ! ���鴻�������若�水�阪��
    ! History data output
    !
    use gtool_historyauto, only: HistoryAutoAddVariable, HistoryAutoPut

    ! ���紫���
    ! Time control
    !
    use timeset, only: TimeN, TimesetClockStart, TimesetClockStop

    ! ��膤糸�����若�帥����粋昭��
    ! Reading time series
    !
    use read_time_series, only: SetValuesFromTimeSeriesWrapper


    character(*), intent(in ):: Spec
    real(DP)    , intent(out):: QGC


    !
    ! Work variables
    !


    ! ������腆肴�
    ! Initialization check
    !
    if ( .not. set_gcmr_inited ) then
      call MessageNotify( 'E', module_name, 'This module has not been initialized.' )
    end if


    ! 荐�膊�����荐�羝���紮�
    ! Start measurement of computation time
    !
    call TimesetClockStart( module_name )


    if ( Spec == 'CO2' ) then

      if ( CO2File == '' ) then
        QGC = MRCO2
      else
        call SetValuesFromTimeSeriesWrapper( "CO2", CO2File, CO2Name, QGC )
      end if

      call HistoryAutoPut( TimeN, "CO2", QGC )

    else if ( Spec == 'N2O' ) then

      if ( N2OFile == '' ) then
        QGC = MRN2O
      else
        call SetValuesFromTimeSeriesWrapper( "N2O", N2OFile, N2OName, QGC )
      end if

      call HistoryAutoPut( TimeN, "N2O", QGC )

    else if ( Spec == 'CH4' ) then

      if ( CH4File == '' ) then
        QGC = MRCH4
      else
        call SetValuesFromTimeSeriesWrapper( "CH4", CH4File, CH4Name, QGC )
      end if

      call HistoryAutoPut( TimeN, "CH4", QGC )

    end if


    ! 荐�膊�����荐�羝������罩�
    ! Pause measurement of computation time
    !
    call TimesetClockStop( module_name )


  end subroutine SetGCMR
Subroutine :

This procedure input/output NAMELIST#set_gcmr_nml .

[Source]

  subroutine SetGCMRInit


    ! ���<�ゃ���ュ�阪��茖���
    ! File I/O support
    !
    use dc_iounit, only: FileOpen

    ! ���鴻�������若�水�阪��
    ! History data output
    !
    use gtool_historyauto, only: HistoryAutoAddVariable

    ! NAMELIST ���<�ゃ���ュ�����≪�������若���c������
    ! Utilities for NAMELIST file input
    !
    use namelist_util, only: namelist_filename, NmlutilMsg, NmlutilAryValid


    !
    ! 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 /set_gcmr_nml/ MRCO2, CO2File, CO2Name, MRN2O, N2OFile, N2OName, MRCH4, CH4File, CH4Name
          !
          ! �����������ゃ���ゃ��������������膓� "set_gcmr#SetGCMRInit"
          ! ���純�若�鴻�潟�若�������с������.
          !
          ! Refer to source codes in the initialization procedure
          ! "set_gcmr#SetGCMRInit" for the default values.
          !

    if ( set_gcmr_inited ) return


    ! �����������ゃ��┃絎�
    ! Default values settings
    !

!!$    MRCO2   = 382.0d-6     ! old default value
    MRCO2   =  369.0d-6 ! Value at 2000 in CMIP5 recommendation, PRE2005_MIDYR_CONC.DAT
    CO2File = ''
    CO2Name = ''
    MRN2O   =  316.0d-9 ! Value at 2000 in CMIP5 recommendation, PRE2005_MIDYR_CONC.DAT
    N2OFile = ''
    N2OName = ''
    MRCH4   = 1751.0d-9 ! Value at 2000 in CMIP5 recommendation, PRE2005_MIDYR_CONC.DAT
    CH4File = ''
    CH4Name = ''


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

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


    call HistoryAutoAddVariable( "CO2", (/ 'time' /), "carbon dioxide", '1' )                  ! (in)
    call HistoryAutoAddVariable( "N2O", (/ 'time' /), "nitrous oxide", '1' )                   ! (in)
    call HistoryAutoAddVariable( "CH4", (/ 'time' /), "methane", '1' )                         ! (in)

    ! �医� ; Print
    !
    call MessageNotify( 'M', module_name, '----- Initialization Messages -----' )
    call MessageNotify( 'M', module_name, '  MRCO2   = %f', d = (/ MRCO2 /) )
    call MessageNotify( 'M', module_name, '  CO2File = %c', c1 = trim( CO2File ) )
    call MessageNotify( 'M', module_name, '  CO2Name = %c', c1 = trim( CO2Name ) )
    call MessageNotify( 'M', module_name, '  MRN2O   = %f', d = (/ MRN2O /) )
    call MessageNotify( 'M', module_name, '  N2OFile = %c', c1 = trim( N2OFile ) )
    call MessageNotify( 'M', module_name, '  N2OName = %c', c1 = trim( N2OName ) )
    call MessageNotify( 'M', module_name, '  MRCH4   = %f', d = (/ MRCH4 /) )
    call MessageNotify( 'M', module_name, '  CH4File = %c', c1 = trim( CH4File ) )
    call MessageNotify( 'M', module_name, '  CH4Name = %c', c1 = trim( CH4Name ) )
    call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )

    set_gcmr_inited = .true.

  end subroutine SetGCMRInit

Private Instance methods

CH4File
Variable :
CH4File :character(STRING), save
CH4Name
Variable :
CH4Name :character(STRING), save
CO2File
Variable :
CO2File :character(STRING), save
CO2Name
Variable :
CO2Name :character(STRING), save
MRCH4
Variable :
MRCH4 :real(DP), save
MRCO2
Variable :
MRCO2 :real(DP), save
MRN2O
Variable :
MRN2O :real(DP), save
N2OFile
Variable :
N2OFile :character(STRING), save
N2OName
Variable :
N2OName :character(STRING), save
module_name
Constant :
module_name = ‘set_gcmr :character(*), parameter
: �≪�吾�ャ�若������腱�. Module name
set_gcmr_inited
Variable :
set_gcmr_inited = .false. :logical, save
: ����荐㊤�������. Initialization flag
version
Constant :
version = ’$Name: $’ // ’$Id: set_gcmr.f90,v 1.4 2015/01/29 12:06:43 yot Exp $’ :character(*), parameter
: �≪�吾�ャ�若�������若�吾�с�� Module version