dbcsr_get_data_memory_type Function

public function dbcsr_get_data_memory_type(matrix) result(memory_type)

Returns the type of memory used for data in the matrix

Note

It returns the declared data type, not the actually used type

Arguments

Type IntentOptional Attributes Name
type(dbcsr_type), intent(in) :: matrix

query this matrix

Return Value type(dbcsr_memtype_type)

memory type used for data


Source Code

   FUNCTION dbcsr_get_data_memory_type(matrix) &
      RESULT(memory_type)
      !! Returns the type of memory used for data in the matrix
      !! @note It returns the declared data type, not the actually used type

      TYPE(dbcsr_type), INTENT(IN)                       :: matrix
         !! query this matrix
      TYPE(dbcsr_memtype_type)                           :: memory_type
         !! memory type used for data

      memory_type = matrix%data_memory_type
   END FUNCTION dbcsr_get_data_memory_type