mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-10 06:00:45 +01:00
Added automated HMC test for Nc=4
This commit is contained in:
parent
8522352aa3
commit
eee27b8b30
@ -6,3 +6,4 @@ check: tests
|
|||||||
./Test_project_on_Sp
|
./Test_project_on_Sp
|
||||||
./Test_sp2n_lie_gen
|
./Test_sp2n_lie_gen
|
||||||
./Test_Sp_start
|
./Test_Sp_start
|
||||||
|
./Test_hmc_Sp_Wilson2ASFermionGauge --grid 4.4.4.4 --Trajectories 1 --Thermalizations 0 --StartingType ColdStart --assert=true
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <Grid/Grid.h>
|
#include <Grid/Grid.h>
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char** argv) {
|
||||||
using namespace Grid;
|
using namespace Grid;
|
||||||
|
|
||||||
typedef Representations<SpFundamentalRepresentation,
|
typedef Representations<SpFundamentalRepresentation,
|
||||||
@ -77,6 +77,15 @@ int main(int argc, char **argv) {
|
|||||||
TheHMC.ReadCommandLine(argc, argv);
|
TheHMC.ReadCommandLine(argc, argv);
|
||||||
TheHMC.Run();
|
TheHMC.Run();
|
||||||
|
|
||||||
|
if (std::string(argv[argc - 1]).compare("--assert=true") == 0) {
|
||||||
|
// this is the pseudofermion action's value for
|
||||||
|
// --grid 4.4.4.4 --Trajectories 1 --Thermalizations 0 --StartingType
|
||||||
|
// ColdStart and Nc == 4 if this assertion fails, check that you have run
|
||||||
|
// with these exact parameters
|
||||||
|
assert(Nc == 4);
|
||||||
|
assert(abs(Nf2.S(U) - 6586.6498) < 1.e-4);
|
||||||
|
}
|
||||||
|
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user