subroutine FilesetInit
!
! fileset �¢ã�¸ã�¥ã�¼ã������������è¡����¾ã��.
! NAMELIST#fileset_nml ����¿è¾¼�¿ã��������ç¶����§è�����¾ã��.
!
! "fileset" module is initialized.
! NAMELIST#fileset_nml is loaded in this procedure.
!
! �¢ã�¸ã�¥ã�¼ã����� ; USE statements
!
! NAMELIST ���¡ã�¤ã���¥å�����¢ã�������¼ã���£ã������
! Utilities for NAMELIST file input
!
use namelist_util, only: namelist_filename, NmlutilMsg
! ���¡ã�¤ã���¥å�ºå��è£���
! File I/O support
!
use dc_iounit, only: FileOpen
! ç¨��¥å�������¡ã��
! Kind type parameter
!
use dc_types, only: STDOUT ! æ¨�æº��ºå�����ç½����. Unit number of standard output
! �¡ã���»ã�¼ã�¸å�ºå��
! Message output
!
use dc_message, only: MessageNotify
! 宣�� ; Declaration statements
!
implicit none
integer:: unit_nml ! NAMELIST ���¡ã�¤ã�����¼ã���³ç���ç½����.
! Unit number for NAMELIST file open
integer:: iostat_nml ! NAMELIST èªã�¿è¾¼�¿æ���� IOSTAT.
! IOSTAT of NAMELIST read
! NAMELIST å¤��°ç¾¤
! NAMELIST group name
!
namelist /fileset_nml/ FileTitle, FileSource, FileInstitution
!
! �����������¤ã���¤ã��������������ç¶� "fileset#FilesetInit"
! ���½ã�¼ã�¹ã�³ã�¼ã�������§ã������.
!
! Refer to source codes in the initialization procedure
! "fileset#FilesetInit" for the default values.
!
! ���� ; Executable statement
!
if ( fileset_inited ) return
call InitCheck
! �����������¤ã��¨å®�
! Default values settings
!
FileTitle = 'dcpam5 test run'
FileSource = 'dcpam5 $Name: $ (http://www.gfd-dennou.org/library/dcpam)'
FileInstitution = 'GFD Dennou Club (http://www.gfd-dennou.org)'
! 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 = fileset_nml, iostat = iostat_nml ) ! (out)
close( unit_nml )
call NmlutilMsg( iostat_nml, module_name ) ! (in)
if ( iostat_nml == 0 ) write( STDOUT, nml = fileset_nml )
end if
! �°å� ; Print
!
call MessageNotify( 'M', module_name, '----- Initialization Messages -----' )
call MessageNotify( 'M', module_name, ' FileTitle = %c', c1 = trim(FileTitle) )
call MessageNotify( 'M', module_name, ' FileSource = %c', c1 = trim(FileSource) )
call MessageNotify( 'M', module_name, ' FileInstitution = %c', c1 = trim(FileInstitution) )
call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )
fileset_inited = .true.
end subroutine FilesetInit