gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
gtvarequivalent.f90 File Reference

Equivalence check for GT_VARIABLE type variables. More...

Go to the source code of this file.

Functions/Subroutines

logical function gtvarequivalent (var1, var2)

Detailed Description

Equivalence check for GT_VARIABLE type variables.

Author
Eizi TOYODA, Yasuhiro MORIKAWA

This function is provided as gtdata_generic#operator(.equivalent.) through gtdata_generic.

Definition in file gtvarequivalent.f90.

Function/Subroutine Documentation

◆ gtvarequivalent()

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

Check equivalence of two GT_VARIABLE type variables

Compares variables var1 and var2, returns .true. if equivalent, .false. otherwise.

Parameters
[in]var1First variable handle
[in]var2Second variable handle
Returns
.true. if equivalent, .false. otherwise

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: