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

Perambulator filename can be specified in xml. NB: Perambulator binary format now includes data size in bytes to avoid type mismatches.

This commit is contained in:
2019-02-04 11:30:30 +00:00
parent 43bd918a47
commit c7aa4e0c1f
3 changed files with 83 additions and 36 deletions

View File

@ -49,6 +49,7 @@ class PerambLightPar: Serializable
public:
GRID_SERIALIZABLE_CLASS_MEMBERS(PerambLightPar,
std::string, eigenPack,
std::string, PerambFileName,
bool, multiFile,
int, nvec,
int, Ls, // For makeFiveDimGrid
@ -351,8 +352,9 @@ void TPerambLight<FImpl>::execute(void)
perambulator.SliceShare( grid3d, grid4d );
// THIS IS WHERE WE WANT TO SAVE THE PERAMBULATORS TO DISK
perambulator.WriteTemporary(std::string("perambulators/file")); // TODO: Specify the file name in the xml
const std::string &FileName{par().PerambFileName};
if(FileName.length())
perambulator.WriteTemporary(FileName);
}
END_MODULE_NAMESPACE