mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-13 01:05:36 +00:00
Hadrons: default I/O to HDF5 if possible, XML otherwise
This commit is contained in:
parent
9f1267dfe6
commit
b39f0d1fb6
@ -160,6 +160,15 @@ std::string typeName(void)
|
|||||||
return typeName(typeIdPt<T>());
|
return typeName(typeIdPt<T>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// default writers/readers
|
||||||
|
#ifdef HAVE_HDF5
|
||||||
|
typedef Hdf5Reader CorrReader;
|
||||||
|
typedef Hdf5Writer CorrWriter;
|
||||||
|
#else
|
||||||
|
typedef XmlReader CorrReader;
|
||||||
|
typedef XmlWriter CorrWriter;
|
||||||
|
#endif
|
||||||
|
|
||||||
END_HADRONS_NAMESPACE
|
END_HADRONS_NAMESPACE
|
||||||
|
|
||||||
#endif // Hadrons_Global_hpp_
|
#endif // Hadrons_Global_hpp_
|
||||||
|
@ -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;
|
||||||
|
|
||||||
Hdf5Writer writer(filename);
|
CorrWriter writer(filename);
|
||||||
std::vector<TComplex> vecBuf;
|
std::vector<TComplex> vecBuf;
|
||||||
std::vector<Complex> result;
|
std::vector<Complex> result;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user