quick fix for reading a vector field from a file
This commit is contained in:
@@ -44,8 +44,10 @@ blitz::Array<double, 3> readFromFile(json_t* object) {
|
|||||||
blitz::Array<double, 3> readComponentFromFile(json_t* object, int component) {
|
blitz::Array<double, 3> readComponentFromFile(json_t* object, int component) {
|
||||||
std::string absolute_filename =
|
std::string absolute_filename =
|
||||||
readAbsoluteFilename(json_object_by_path(object, {"PathToH5"}));
|
readAbsoluteFilename(json_object_by_path(object, {"PathToH5"}));
|
||||||
|
DEBUG_LEVEL_3("path to h5: " + absolute_filename);
|
||||||
std::string key = json_string(
|
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));
|
||||||
|
DEBUG_LEVEL_3("key: " + key);
|
||||||
|
|
||||||
Hdf5Reader reader(absolute_filename);
|
Hdf5Reader reader(absolute_filename);
|
||||||
return reader.readD3Double(key);
|
return reader.readD3Double(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user