diff options
author | Thomas White <taw@physics.org> | 2021-07-23 12:54:15 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-23 12:54:15 +0200 |
commit | 14c95f24e1dbfde1e5046a59fcb2ebd884b615e8 (patch) | |
tree | 18d751a7ebe1e5ddf3694fe06b55dc61472ad85e /src | |
parent | b1715b3e09be1a37316fe1f04afc233bdf8e8cc1 (diff) |
pattern_sim: Add missing error check
Diffstat (limited to 'src')
-rw-r--r-- | src/pattern_sim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index b6414aa1..7db74df5 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -404,6 +404,9 @@ static void add_metadata(const char *filename, data[2] = q.y; data[3] = q.z; r = H5Dwrite(dh, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, H5P_DEFAULT, data); + if ( r < 0 ) { + ERROR("Failed to write quaternion to file\n"); + } H5Dclose(dh); size[0] = 3; |