dbcsr_scalar_get_type Function

public elemental function dbcsr_scalar_get_type(scalar) result(data_type)

Returns data type of a scalar

Arguments

Type IntentOptional Attributes Name
type(dbcsr_scalar_type), intent(in) :: scalar

scalar

Return Value integer

data type of the scalar


Contents

Source Code


Source Code

   ELEMENTAL FUNCTION dbcsr_scalar_get_type(scalar) RESULT(data_type)
      !! Returns data type of a scalar

      TYPE(dbcsr_scalar_type), INTENT(IN)                :: scalar
         !! scalar
      INTEGER                                            :: data_type
         !! data type of the scalar

      data_type = scalar%data_type
   END FUNCTION dbcsr_scalar_get_type