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

Making sure Hdf5 is an optional dependency (default to binary writer if not present)

This commit is contained in:
Michael Marshall
2019-04-28 20:23:44 +01:00
parent adc1eaee68
commit fb74de0798
5 changed files with 51 additions and 35 deletions

View File

@ -241,7 +241,7 @@ void TPerambFromSolve<FImpl>::execute(void)
if(PerambFileName.length()) {
std::string sPerambName{PerambFileName + "." + std::to_string(vm().getTrajectory())};
//perambulator.WriteBinary(sPerambName);
perambulator.template write<Hdf5Writer>((sPerambName + ".h5").c_str(), sPerambName.c_str());
perambulator.write(sPerambName.c_str());
}
}

View File

@ -289,7 +289,7 @@ void TPerambulator<FImpl>::execute(void)
if(PerambFileName.length()) {
std::string sPerambName{PerambFileName + "." + std::to_string(vm().getTrajectory())};
//perambulator.WriteBinary(sPerambName);
perambulator.template write<Hdf5Writer>((sPerambName + ".h5").c_str(), sPerambName.c_str());
perambulator.write(sPerambName.c_str());
}
}