mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	Single precision compile fix. Soon deprecate single precision
This commit is contained in:
		@@ -30,7 +30,9 @@ directory
 | 
			
		||||
/*  END LEGAL */
 | 
			
		||||
#include <Grid/Grid.h>
 | 
			
		||||
 | 
			
		||||
#ifdef GRID_DEFAULT_PRECISION_DOUBLE
 | 
			
		||||
#define MIXED_PRECISION
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
namespace Grid{ 
 | 
			
		||||
  namespace QCD{
 | 
			
		||||
@@ -348,8 +350,9 @@ int main(int argc, char **argv) {
 | 
			
		||||
#else
 | 
			
		||||
  ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> 
 | 
			
		||||
    EOFA(Strange_Op_L, Strange_Op_R, 
 | 
			
		||||
	 ActionCG, 
 | 
			
		||||
	 ActionCG, ActionCG,
 | 
			
		||||
	 DerivativeCG, DerivativeCG,
 | 
			
		||||
	 DerivativeCG, DerivativeCG, 
 | 
			
		||||
	 OFRp, true);
 | 
			
		||||
#endif
 | 
			
		||||
  Level1.push_back(&EOFA);
 | 
			
		||||
 
 | 
			
		||||
@@ -109,8 +109,6 @@ template <typename FImpl1, typename FImpl2>
 | 
			
		||||
std::vector<std::string> TAmputate<FImpl1, FImpl2>::getOutput(void)
 | 
			
		||||
{
 | 
			
		||||
    std::vector<std::string> output = {getName()};
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    return output;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -123,7 +121,8 @@ SpinColourMatrix TAmputate<Fimpl1, Fimpl2>::invertspincolmat(SpinColourMatrix &s
 | 
			
		||||
    for(int jc=0; jc<Nc; jc++){
 | 
			
		||||
        for(int is=0; is<Ns; is++){
 | 
			
		||||
        for(int js=0; js<Ns; js++){
 | 
			
		||||
            scmat_2d(Ns*ic+is,Ns*jc+js) = scmat()(is,js)(ic,jc);
 | 
			
		||||
	  auto z =scmat()(is,js)(ic,jc);;
 | 
			
		||||
	  scmat_2d(Ns*ic+is,Ns*jc+js) = std::complex<double>(real(z),imag(z));
 | 
			
		||||
        }}
 | 
			
		||||
    }}      
 | 
			
		||||
    Eigen::MatrixXcd scmat_2d_inv = scmat_2d.inverse();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user