File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
applications/HDF5Application/custom_io Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -816,7 +816,9 @@ bool File::HasDataType(const std::string& rPath) const
816
816
KRATOS_HDF5_CALL (H5Tclose, dtype_id)
817
817
KRATOS_HDF5_CALL (H5Dclose, dset_id)
818
818
819
- if constexpr (std::is_same_v<TDataType, int >) {
819
+ if constexpr (std::is_same_v<TDataType, bool >) {
820
+ return type == H5T_INTEGER;
821
+ } else if constexpr (std::is_same_v<TDataType, int >) {
820
822
return type == H5T_INTEGER;
821
823
} else if constexpr (std::is_same_v<TDataType, double >) {
822
824
return type == H5T_FLOAT;
@@ -1178,6 +1180,7 @@ KRATOS_HDF5_FILE_ATTRIBUTE_METHOD_INSTANTIATION(array_1d<double, 4>);
1178
1180
KRATOS_HDF5_FILE_ATTRIBUTE_METHOD_INSTANTIATION (array_1d<double , 6 >);
1179
1181
KRATOS_HDF5_FILE_ATTRIBUTE_METHOD_INSTANTIATION (array_1d<double , 9 >);
1180
1182
1183
+ KRATOS_HDF5_FILE_DATA_SET_METHOD_INSTANTIATION (Vector<bool >);
1181
1184
KRATOS_HDF5_FILE_DATA_SET_METHOD_INSTANTIATION (Vector<char >);
1182
1185
KRATOS_HDF5_FILE_DATA_SET_METHOD_INSTANTIATION (Vector<int >);
1183
1186
KRATOS_HDF5_FILE_DATA_SET_METHOD_INSTANTIATION (Vector<double >);
You can’t perform that action at this time.
0 commit comments