mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-10 22:20:45 +01:00
ClangFormat
This commit is contained in:
parent
3beb8f4091
commit
8522352aa3
@ -3,11 +3,14 @@
|
|||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
using namespace Grid;
|
using namespace Grid;
|
||||||
|
|
||||||
typedef Representations< SpFundamentalRepresentation, SpTwoIndexAntiSymmetricRepresentation > TheRepresentations;
|
typedef Representations<SpFundamentalRepresentation,
|
||||||
|
SpTwoIndexAntiSymmetricRepresentation>
|
||||||
|
TheRepresentations;
|
||||||
|
|
||||||
Grid_init(&argc, &argv);
|
Grid_init(&argc, &argv);
|
||||||
|
|
||||||
typedef GenericSp2nHMCRunnerHirep<TheRepresentations, MinimumNorm2> HMCWrapper;
|
typedef GenericSp2nHMCRunnerHirep<TheRepresentations, MinimumNorm2>
|
||||||
|
HMCWrapper;
|
||||||
typedef SpWilsonTwoIndexAntiSymmetricImplR FermionImplPolicy;
|
typedef SpWilsonTwoIndexAntiSymmetricImplR FermionImplPolicy;
|
||||||
typedef SpWilsonTwoIndexAntiSymmetricFermionR FermionAction;
|
typedef SpWilsonTwoIndexAntiSymmetricFermionR FermionAction;
|
||||||
typedef typename FermionAction::FermionField FermionField;
|
typedef typename FermionAction::FermionField FermionField;
|
||||||
@ -36,7 +39,7 @@ int main(int argc, char **argv) {
|
|||||||
typedef PlaquetteMod<HMCWrapper::ImplPolicy> PlaqObs;
|
typedef PlaquetteMod<HMCWrapper::ImplPolicy> PlaqObs;
|
||||||
TheHMC.Resources.AddObservable<PlaqObs>();
|
TheHMC.Resources.AddObservable<PlaqObs>();
|
||||||
|
|
||||||
RealD beta = 6.7 ;
|
RealD beta = 6.7;
|
||||||
|
|
||||||
SpWilsonGaugeActionR Waction(beta);
|
SpWilsonGaugeActionR Waction(beta);
|
||||||
|
|
||||||
@ -44,16 +47,14 @@ int main(int argc, char **argv) {
|
|||||||
auto GridRBPtr = TheHMC.Resources.GetRBCartesian();
|
auto GridRBPtr = TheHMC.Resources.GetRBCartesian();
|
||||||
|
|
||||||
SpTwoIndexAntiSymmetricRepresentation::LatticeField U(GridPtr);
|
SpTwoIndexAntiSymmetricRepresentation::LatticeField U(GridPtr);
|
||||||
//LatticeGaugeField U(GridPtr);
|
// LatticeGaugeField U(GridPtr);
|
||||||
|
|
||||||
RealD mass = -0.115;
|
RealD mass = -0.115;
|
||||||
|
|
||||||
|
std::vector<Complex> boundary = {-1, -1, -1, -1};
|
||||||
std::vector<Complex> boundary = {-1,-1,-1,-1};
|
|
||||||
FermionAction::ImplParams bc(boundary);
|
FermionAction::ImplParams bc(boundary);
|
||||||
FermionAction FermOp(U, *GridPtr, *GridRBPtr, mass, bc);
|
FermionAction FermOp(U, *GridPtr, *GridRBPtr, mass, bc);
|
||||||
|
|
||||||
|
|
||||||
ConjugateGradient<FermionField> CG(1.0e-8, 2000, false);
|
ConjugateGradient<FermionField> CG(1.0e-8, 2000, false);
|
||||||
|
|
||||||
TwoFlavourPseudoFermionAction<FermionImplPolicy> Nf2(FermOp, CG, CG);
|
TwoFlavourPseudoFermionAction<FermionImplPolicy> Nf2(FermOp, CG, CG);
|
||||||
@ -61,10 +62,10 @@ int main(int argc, char **argv) {
|
|||||||
Nf2.is_smeared = false;
|
Nf2.is_smeared = false;
|
||||||
std::cout << GridLogMessage << "mass " << mass << std::endl;
|
std::cout << GridLogMessage << "mass " << mass << std::endl;
|
||||||
|
|
||||||
ActionLevel<HMCWrapper::Field, TheRepresentations > Level1(1);
|
ActionLevel<HMCWrapper::Field, TheRepresentations> Level1(1);
|
||||||
Level1.push_back(&Nf2);
|
Level1.push_back(&Nf2);
|
||||||
|
|
||||||
ActionLevel<HMCWrapper::Field, TheRepresentations > Level2(4);
|
ActionLevel<HMCWrapper::Field, TheRepresentations> Level2(4);
|
||||||
Level2.push_back(&Waction);
|
Level2.push_back(&Waction);
|
||||||
|
|
||||||
TheHMC.TheAction.push_back(Level1);
|
TheHMC.TheAction.push_back(Level1);
|
||||||
@ -76,7 +77,6 @@ int main(int argc, char **argv) {
|
|||||||
TheHMC.ReadCommandLine(argc, argv);
|
TheHMC.ReadCommandLine(argc, argv);
|
||||||
TheHMC.Run();
|
TheHMC.Run();
|
||||||
|
|
||||||
|
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user