subroutine SoilThermDiffCoefInit( FlagSnow )
! モジュール引用 ; 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
! バケツモデル
! Bucket model
!
use Bucket_Model, only : BucketGetSoilMoistCritAmnt, BucketModelInit
logical, intent(in) :: FlagSnow
! 作業変数
! 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 /soil_thermdiffcoef_nml/ SoilThermDiffCoefMin, SoilThermDiffCoefMax
! 実行文 ; Executable statement
!
if ( soil_thermdiffcoef_inited ) return
! デフォルト値の設定
! Default values settings
!
SoilThermDiffCoefMin = 0.2_DP
SoilThermDiffCoefMax = 2.0_DP
! thermal conductivity (W m-1 K-1)
! 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 = soil_thermdiffcoef_nml, iostat = iostat_nml )
close( unit_nml )
call NmlutilMsg( iostat_nml, module_name ) ! (in)
if ( iostat_nml == 0 ) write( STDOUT, nml = soil_thermdiffcoef_nml )
end if
! バケツモデル
! Bucket model
!
call BucketModelInit( FlagSnow )
SoilMoistCritAmnt = BucketGetSoilMoistCritAmnt()
! 印字 ; Print
!
call MessageNotify( 'M', module_name, '----- Initialization Messages -----' )
call MessageNotify( 'M', module_name, 'SoilThermDiffCoefMin = %f', d = (/SoilThermDiffCoefMin/) )
call MessageNotify( 'M', module_name, 'SoilThermDiffCoefMax = %f', d = (/SoilThermDiffCoefMax/) )
call MessageNotify( 'M', module_name, 'SoilMoistCritAmnt = %f', d = (/SoilMoistCritAmnt/) )
call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )
soil_thermdiffcoef_inited = .true.
end subroutine SoilThermDiffCoefInit