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

Function writed

SRC/recorder/MPCORecorder.cpp:945–955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943 return status;
944 }
945 herr_t writed(hid_t obj, const char *attr_name, const double *attr_data, hsize_t data_size)
946 {
947 herr_t status;
948 hsize_t dim[1] = { data_size };
949 hid_t space = H5Screate_simple(1, dim, NULL);
950 hid_t attr = H5Acreate(obj, attr_name, H5T_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT);
951 status = H5Awrite(attr, H5T_NATIVE_DOUBLE, attr_data);
952 status = H5Aclose(attr);
953 status = H5Sclose(space);
954 return status;
955 }
956 herr_t writes(hid_t obj, const char *attr_name, const char *attr_data, hsize_t data_size)
957 {
958 herr_t status;

Callers 1

writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected