mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Namespace
This commit is contained in:
		@@ -25,13 +25,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 | 
				
			|||||||
See the full license in the file "LICENSE" in the top level distribution
 | 
					See the full license in the file "LICENSE" in the top level distribution
 | 
				
			||||||
directory
 | 
					directory
 | 
				
			||||||
*************************************************************************************/
 | 
					*************************************************************************************/
 | 
				
			||||||
/*  END LEGAL */
 | 
								   /*  END LEGAL */
 | 
				
			||||||
//--------------------------------------------------------------------
 | 
								   //--------------------------------------------------------------------
 | 
				
			||||||
#ifndef METRIC_H
 | 
					#ifndef METRIC_H
 | 
				
			||||||
#define METRIC_H
 | 
					#define METRIC_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Grid{
 | 
					NAMESPACE_BEGIN(Grid);
 | 
				
			||||||
namespace QCD{
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
template <typename Field> 
 | 
					template <typename Field> 
 | 
				
			||||||
class Metric{
 | 
					class Metric{
 | 
				
			||||||
@@ -168,20 +167,20 @@ public:
 | 
				
			|||||||
  void AuxiliaryFieldsDerivative(MomentaField& der){
 | 
					  void AuxiliaryFieldsDerivative(MomentaField& der){
 | 
				
			||||||
    der = zero;
 | 
					    der = zero;
 | 
				
			||||||
    if (1){
 | 
					    if (1){
 | 
				
			||||||
    // Auxiliary fields
 | 
					      // Auxiliary fields
 | 
				
			||||||
    MomentaField der_temp(der._grid);
 | 
					      MomentaField der_temp(der._grid);
 | 
				
			||||||
    MomentaField X(der._grid);
 | 
					      MomentaField X(der._grid);
 | 
				
			||||||
    X=zero;
 | 
					      X=zero;
 | 
				
			||||||
    //M.M(AuxMom, X); // X = M Aux
 | 
					      //M.M(AuxMom, X); // X = M Aux
 | 
				
			||||||
    // Two derivative terms
 | 
					      // Two derivative terms
 | 
				
			||||||
    // the Mderiv need separation of left and right terms
 | 
					      // the Mderiv need separation of left and right terms
 | 
				
			||||||
    M.MDeriv(AuxMom, der); 
 | 
					      M.MDeriv(AuxMom, der); 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // this one should not be necessary (identical to the previous one)
 | 
					      // this one should not be necessary (identical to the previous one)
 | 
				
			||||||
    //M.MDeriv(X, AuxMom, der_temp); der += der_temp;
 | 
					      //M.MDeriv(X, AuxMom, der_temp); der += der_temp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    der = -1.0*Implementation::projectForce(der);
 | 
					      der = -1.0*Implementation::projectForce(der);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -212,15 +211,6 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					NAMESPACE_END(Grid);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif //METRIC_H
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif //METRIC_H
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user