Skip to content
Snippets Groups Projects
Commit 1c81327a authored by mark's avatar mark
Browse files

TODO: compression works, but need to have a selection mechanism

- minor bug in ADIOS prevents checking the available transforms at the
  moment
parent 8e4ad9fd
No related branches found
No related tags found
No related merge requests found
Build dependencies: 2016-07-28
Build dependencies: 2016-11-15
---
Adios
- adios github version.
- adios github version or 1.11.0 .
OpenFOAM
- develop branch.
- develop branch (or 1612).
---
......@@ -63,7 +63,17 @@ int64_t Foam::adiosCoreWrite::putListVariable
if (fileID_)
{
// adios_set_transform(varid, transform);
if (floatingPoint<cmptType>())
{
// floating point data:
// adios_set_transform(varid, "zfp:accuracy=0.0001");
}
else
{
// int data: adios_set_transform(varid, "zlib");
// adios_set_transform(varid, "bzip2");
}
adios_write_byid(fileID_, varid, list.cdata());
}
else
......
......@@ -59,6 +59,16 @@ public:
};
//- Assume the data associated with type T are not floating-point values
template<class T>
inline bool floatingPoint() {return false;}
template<>
inline bool floatingPoint<float>() {return true;}
template<>
inline bool floatingPoint<double>() {return true;}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment