Class | set_o3 |
In: |
radiation/set_o3.f90
|
Note that Japanese and English are described in parallel.
O3 ���.
Set O3 distribution.
!$ ! 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.
!$ ! 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#radiation_DennouAGCM_nml
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) |
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, TimesetClockStart, TimesetClockStop ! ��ç³»å�����¼ã�¿ã����¿è¾¼�� ! Reading time series ! 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 ! ! ������確è� ! Initialization check ! if ( .not. set_o3_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 ( FlagO3 ) then if ( Flag1D ) then call Set1DProfileO3( xyz_Press, xyz_QO3 ) else call SetValuesFromTimeSeriesWrapper( "O3", O3File, "O3", xyz_Press, xyz_QO3, .true., .true., .true. ) 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
Subroutine : |
This procedure input/output NAMELIST#set_O3_nml .
subroutine SetO3Init ! ���¡ã�¤ã���¥å�ºå��è£��� ! File I/O support ! use dc_iounit, only: FileOpen ! ���¹ã�������¼ã�¿å�ºå�� ! History data output ! use gtool_historyauto, only: HistoryAutoAddVariable ! NAMELIST ���¡ã�¤ã���¥å�����¢ã�������¼ã���£ã������ ! Utilities for NAMELIST file input ! use namelist_util, only: namelist_filename, NmlutilMsg, NmlutilAryValid 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. ! if ( set_o3_inited ) return ! �����������¤ã��¨å®� ! 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
Constant : | |||
module_name = ‘set_o3‘ : | character(*), parameter
|
Variable : | |||
set_o3_inited = .false. : | logical, save
|
Constant : | |||
version = ’$Name: $’ // ’$Id: set_o3.f90,v 1.5 2013/03/01 14:14:16 yot Exp $’ : | character(*), parameter
|