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

Function writei

SRC/recorder/MPCORecorder.cpp:934–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932 // low level functions for c interface
933
934 herr_t writei(hid_t obj, const char *attr_name, const int *attr_data, hsize_t data_size)
935 {
936 herr_t status;
937 hsize_t dim[1] = { data_size };
938 hid_t space = H5Screate_simple(1, dim, NULL);
939 hid_t attr = H5Acreate(obj, attr_name, H5T_STD_I32LE, space, H5P_DEFAULT, H5P_DEFAULT);
940 status = H5Awrite(attr, H5T_NATIVE_INT, attr_data);
941 status = H5Aclose(attr);
942 status = H5Sclose(space);
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;

Callers 1

writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected