inclusion gradB field and quickfix reading from array

This commit is contained in:
2024-06-25 10:08:12 +02:00
committed by csendlinger
parent f82cbf4c47
commit a1444bceaa
4 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ blitz::Array<double, 3> readComponentFromFile(json_t* object, int component) {
std::string absolute_filename =
readAbsoluteFilename(json_object_by_path(object, {"PathToH5"}));
std::string key = json_string(
json_array_get(json_object_by_path(object, {"PathToH5"}), component));
json_array_get(json_object_by_path(object, {"Keys"}), component));
Hdf5Reader reader(absolute_filename);
return reader.readD3Double(key);