mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Added trajectory number to output file
This commit is contained in:
parent
2568f5b925
commit
d15bf4b8e1
@ -36,6 +36,7 @@
|
||||
|
||||
/******************************************************************************
|
||||
This potentially belongs in CartesianCommunicator
|
||||
Turns out I don't actually need this when running inside hadrons
|
||||
******************************************************************************/
|
||||
|
||||
BEGIN_MODULE_NAMESPACE(Grid)
|
||||
|
@ -315,6 +315,8 @@ void TLapEvec<FImpl>::execute(void)
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
std::string sEigenPackName(getName());
|
||||
sEigenPackName.append("_");
|
||||
sEigenPackName.append(std::to_string(vm().getTrajectory()));
|
||||
bool bReturnValue = true;
|
||||
auto & eig4d = envGet(DistilEP, getName() );
|
||||
envGetTmp(std::vector<DistilEP>, eig); // Eigenpack for each timeslice
|
||||
@ -369,12 +371,14 @@ void TLapEvec<FImpl>::execute(void)
|
||||
// Now rotate the eigenvectors into our phase convention
|
||||
RotateEigen( eig[t].evec );
|
||||
|
||||
// Write the eigenvectors and eigenvalues to disk
|
||||
//std::cout << GridLogMessage << "Writing eigenvalues/vectors to " << pszEigenPack << std::endl;
|
||||
eig[t].record.operatorXml = DefaultOperatorXml;
|
||||
eig[t].record.solverXml = DefaultsolverXml;
|
||||
eig[t].write(sEigenPackName,false,t);
|
||||
//std::cout << GridLogMessage << "Written eigenvectors" << std::endl;
|
||||
if((1)) { // Debugging only
|
||||
// Write the eigenvectors and eigenvalues to disk
|
||||
//std::cout << GridLogMessage << "Writing eigenvalues/vectors to " << pszEigenPack << std::endl;
|
||||
eig[t].record.operatorXml = DefaultOperatorXml;
|
||||
eig[t].record.solverXml = DefaultsolverXml;
|
||||
eig[t].write(sEigenPackName,false,t);
|
||||
//std::cout << GridLogMessage << "Written eigenvectors" << std::endl;
|
||||
}
|
||||
}
|
||||
for (int i=0;i<LPar.Nvec;i++){
|
||||
std::cout << "Inserting Timeslice " << t << " into vector " << i << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user