| 712ca4c4 | 22-Apr-2015 |
Håkon Strandenes <hakon.strandenes@ntnu.no> |
Added SP output to ex47 test
Added SP output to ex47 test. The test does not check if the output is actually single precision, it just does a roundtrip and test if the dataset read in is the same as
Added SP output to ex47 test
Added SP output to ex47 test. The test does not check if the output is actually single precision, it just does a roundtrip and test if the dataset read in is the same as the dataset written out (to a certain numerical tolerance). This test could perhaps be made a bit more sophisticated, with more "exciting" contents of the vector, but that is not the purpose of this commit/branch.
show more ...
|
| 9a0502c6 | 13-Apr-2015 |
Håkon Strandenes <hakon.strandenes@ntnu.no> |
Add the possibility of writing HDF5 data in single precision
This commit adds the possibility for the user, at run-time, select to write single precision data into the HDF5 file. This is useful in m
Add the possibility of writing HDF5 data in single precision
This commit adds the possibility for the user, at run-time, select to write single precision data into the HDF5 file. This is useful in many cases, as one often stop the (iterative) solver when an approximate answer is found, thus not utilizing full double precision. Using single precision for IO can then save you half the disk space (or give you the possibility of writeing twice the amount of data on the same space).
The HDF5 library takes care of the type conversion, hence the required changes to the IO routines are very small.
show more ...
|