MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / createResultGroup

Function createResultGroup

SRC/recorder/MPCORecorder.cpp:1019–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017 // higher level c++ utils
1018
1019 hid_t createResultGroup(hid_t obj, hid_t gplist, const std::string &result_name,
1020 const std::string &disp_name, const std::string &components, int num_components,
1021 const std::string &dimension, const std::string &description,
1022 int result_type, int data_type)
1023 {
1024 herr_t status;
1025 hid_t h_gp_result = h5::group::create(obj, result_name.c_str(), H5P_DEFAULT, gplist, H5P_DEFAULT);
1026 status = h5::attribute::write(h_gp_result, "DISPLAY_NAME", disp_name);
1027 status = h5::attribute::write(h_gp_result, "COMPONENTS", components);
1028 status = h5::attribute::write(h_gp_result, "DIMENSION", dimension);
1029 status = h5::attribute::write(h_gp_result, "DESCRIPTION", description);
1030 status = h5::attribute::write(h_gp_result, "TYPE", result_type);
1031 status = h5::attribute::write(h_gp_result, "DATA_TYPE", data_type);
1032 return h_gp_result;
1033 }
1034
1035 }
1036

Callers 3

recordMethod · 0.85
recordMethod · 0.85

Calls 2

createFunction · 0.70
writeFunction · 0.70

Tested by

no test coverage detected