compiler_is_same Function

public function compiler_is_same(this, that)

Check that two compiler_t objects are equal All checks passed!

Type Bound

compiler_t

Arguments

Type IntentOptional Attributes Name
class(compiler_t), intent(in) :: this
class(serializable_t), intent(in) :: that

Return Value logical


Source Code

logical function compiler_is_same(this,that)
    class(compiler_t), intent(in) :: this
    class(serializable_t), intent(in) :: that

    compiler_is_same = .false.

    select type (other=>that)
       type is (compiler_t)

          if (.not.(this%id==other%id)) return
          if (.not.(this%fc==other%fc)) return
          if (.not.(this%cc==other%cc)) return
          if (.not.(this%cxx==other%cxx)) return
          if (.not.(this%echo.eqv.other%echo)) return
          if (.not.(this%verbose.eqv.other%verbose)) return

       class default
          ! Not the same type
          return
    end select

    !> All checks passed!
    compiler_is_same = .true.

end function compiler_is_same