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