1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-14 05:07:05 +01:00

In the middle of adding a general binary writer

This commit is contained in:
Guido Cossu
2016-10-04 11:24:08 +01:00
parent cfbc1a26b8
commit d9b5fbd374
4 changed files with 163 additions and 55 deletions

View File

@ -539,6 +539,12 @@ class BinaryIO {
int ieee64big = (format == std::string("IEEE64BIG"));
int ieee64 = (format == std::string("IEEE64"));
if(!(ieee32big || ieee32 || ieee64big || ieee64)){
std::cout << GridLogError << "Unrecognized file format " << format << std::endl;
std::cout << GridLogError << "Allowed: IEEE32BIG | IEEE32 | IEEE64BIG | IEEE64" << std::endl;
exit(0);
}
int nd = grid->_ndimension;
for(int d=0;d<nd;d++){
assert(grid->CheckerBoarded(d) == 0);