Skip to content
Snippets Groups Projects
Commit 961030c9 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Merge branch 'ast-1422-check-string' into 'master'

AST-1422 Check string type

See merge request !130
parents 1725bcfc 2b07b4f8
No related branches found
No related tags found
1 merge request!130AST-1422 Check string type
Pipeline #61534 passed
......@@ -53,6 +53,10 @@ SolTab::SolTab(H5::Group& group) : H5::Group(group) {
throw std::runtime_error("H5 attribute TITLE not found in " + GetName());
}
H5::Attribute typeattr = openAttribute("TITLE");
if (typeattr.getDataType().isVariableStr()) {
throw std::runtime_error(
"H5Parm attribute TITLE is a variable string, which is not supported");
}
hsize_t typenamelen = typeattr.getDataType().getSize();
std::vector<char> type_chars(typenamelen + 1, '\0');
typeattr.read(typeattr.getDataType(), type_chars.data());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment