Loading...
Searching...
No Matches
dcdatetimesetcaltype.f90
Go to the documentation of this file.
1!== 暦法の設定
2!
3! Authors:: Yasuhiro MORIKAWA
4! Version:: $Id: dcdatetimesetcaltype.f90,v 1.2 2009-05-25 10:01:34 morikawa Exp $
5! Tag Name:: $Name: $
6! Copyright:: Copyright (C) GFD Dennou Club, 2000-2005. All rights reserved.
7! License:: See COPYRIGHT[link:../../COPYRIGHT]
8!
9! このファイルで提供される手続き群は dc_date モジュールにて提供されます。
10!
11
12subroutine dcdatetimesetcaltype(caltype)
13 !
14 ! 暦法のデフォルトを設定します.
15 ! dc_date_types#CAL_CYCLIC, dc_date_types#CAL_NOLEAP,
16 ! dc_date_types#CAL_JULIAN, dc_date_types#CAL_GREGORIAN
17 ! のいづれかを引数 *caltype* に与えてください.
18 !
19 ! なお, この手続きを呼ばない場合, デフォルトの暦法は
20 ! dc_date_types#CAL_GREGORIAN に設定されています.
21 !
22 use dc_date_types, only: caltype_default => caltype
23 use dc_trace, only: beginsub, endsub
24 use dc_message, only: messagenotify
26 implicit none
27 integer, intent(in):: caltype
28 character(*), parameter :: subname = 'DCDateTimeSetCaltype'
29continue
30 call beginsub(subname, 'caltype=<%d>', i=(/caltype/))
31 if (validcaltype(caltype)) then
32 caltype_default = caltype
33 else
34 call messagenotify('W', subname, &
35 & 'caltype=<%d> is invalid calender type.', &
36 & i=(/caltype/))
37 end if
38 call endsub(subname, 'dc_date_types#caltype_default=<%d>', i=(/caltype_default/))
39end subroutine dcdatetimesetcaltype
subroutine dcdatetimesetcaltype(caltype)
integer, save, public caltype