1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

Namespace

This commit is contained in:
paboyle 2018-01-14 21:59:48 +00:00
parent b331ecea78
commit 6a62a9c6a5

View File

@ -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