gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
gtvarequivalent.f90 File Reference

GT_VARIABLE 型変数の同値判定 More...

Go to the source code of this file.

Functions/Subroutines

logical function gtvarequivalent (var1, var2)

Detailed Description

GT_VARIABLE 型変数の同値判定

Author
Eizi TOYODA, Yasuhiro MORIKAWA

この関数は gtdata_generic から gtdata_generic#operator(.equivalent.) として提供されます。

Definition in file gtvarequivalent.f90.

Function/Subroutine Documentation

◆ gtvarequivalent()

logical function gtvarequivalent ( type(gt_variable), intent(in) var1,
type(gt_variable), intent(in) var2 )

2つの GT_VARIABLE 型変数の同値判定

変数 var1, var2 を比較し、同値である場合は .true. を、 そうで無い場合は .false. を返します。

Parameters
[in]var11番目の変数ハンドル
[in]var22番目の変数ハンドル
Returns
同値の場合 .true.、それ以外は .false.

Definition at line 43 of file gtvarequivalent.f90.

44 use gtdata_types, only: gt_variable
46 type(GT_VARIABLE), intent(in):: var1, var2
47 integer:: class1, class2, cid1, cid2
48continue
49 call var_class(var1, class1, cid1)
50 call var_class(var2, class2, cid2)
51 result = (class1 == class2) .and. (cid1 == cid2)
subroutine, public var_class(var, class, cid)

References gtdata_internal_map::var_class().

Here is the call graph for this function: