diff --git a/src/common/KokkosKernels_IOUtils.hpp b/src/common/KokkosKernels_IOUtils.hpp index 46a7a4462b..ad981872bd 100644 --- a/src/common/KokkosKernels_IOUtils.hpp +++ b/src/common/KokkosKernels_IOUtils.hpp @@ -1163,7 +1163,9 @@ int read_mtx ( mtx_field = COMPLEX; } else if (fline.find("integer") != std::string::npos){ - if(std::is_integral::value) + if(std::is_integral::value + || std::is_floating_point::value + || std::is_same::value) mtx_field = INTEGER; else throw std::runtime_error("scalar_t in read_mtx() incompatible with integer-typed MatrixMarket file.");