Loading...
Searching...
No Matches
dcdatetimevalidcaltype.f90
Go to the documentation of this file.
1!== 暦法が dc_date_types で有効なものかどうかを調べる
2!
3! Authors:: Yasuhiro MORIKAWA
4! Version:: $Id: dcdatetimevalidcaltype.f90,v 1.1 2009-03-20 09:09:52 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
12function dcdatetimevalidcaltype(caltype) result(result)
13 !
14 ! 与えられる暦法が dc_date_types 内で有効であれば
15 ! .true. を, それ以外の場合は .false. を返します.
16 !
18 implicit none
19 integer, intent(in):: caltype
20 logical:: result
21 integer:: caltypes_size, i
22continue
23 result = .false.
24 caltypes_size = size(prepared_caltypes) - 1
25 do i = 0, caltypes_size
26 if (caltype == prepared_caltypes(i)) then
27 result = .true.
28 exit
29 end if
30 end do
31end function dcdatetimevalidcaltype
logical function dcdatetimevalidcaltype(caltype)
integer, save, public caltype
integer, dimension(0:3), parameter, public prepared_caltypes