1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

ChargedProp: Switch to HDF5 output

This commit is contained in:
James Harrison 2017-01-26 15:02:30 +00:00
parent ae99e99da2
commit f65a585236

View File

@ -151,7 +151,7 @@ void TChargedProp::execute(void)
LOG(Message) << "Saving zero-momentum projection to '" LOG(Message) << "Saving zero-momentum projection to '"
<< filename << "'..." << std::endl; << filename << "'..." << std::endl;
TextWriter writer(filename); Hdf5Writer writer(filename);
std::vector<TComplex> vecBuf; std::vector<TComplex> vecBuf;
std::vector<Complex> result; std::vector<Complex> result;
@ -161,6 +161,7 @@ void TChargedProp::execute(void)
{ {
result[t] = TensorRemove(vecBuf[t]); result[t] = TensorRemove(vecBuf[t]);
} }
write(writer, "charge", q);
write(writer, "prop", result); write(writer, "prop", result);
} }
} }