6static_assert(NDIM == 4,
"NDIM must be 4 here");
11int main(
int argc,
char *argv[]) {
18 lattice.
setup({lsize, lsize, lsize, lsize});
29 onsites(
ALL) U[d][X]=S;
31 U[d][{(int)d,1,1,1}]=1.0;
34 ftype val1,val2,val3,val4,val5,val6;
37 onsites(
ALL) maxabsU[X]=U[d][X].max_abs();
39 val1=maxabsU.
min(
ODD, loc1);
41 val3=maxabsU.
max(
ODD, loc3);
43 val5=maxabsU.
min(
ALL, loc5);
44 val6=maxabsU.
max(
ALL, loc6);
47 hila::out0<<
"Min value of ODD sites "<<val1<<
" at location: "<<loc1<<
'\n';
48 hila::out0<<
"Min value of EVEN sites "<<val2<<
" at location: "<<loc2<<
'\n';
49 hila::out0<<
"Max value of ODD sites "<<val3<<
" at location: "<<loc3<<
'\n';
50 hila::out0<<
"Max value of EVEN sites "<<val4<<
" at location: "<<loc4<<
'\n';
51 hila::out0<<
"Min value of ALL sites "<<val5<<
" at location: "<<loc5<<
'\n';
52 hila::out0<<
"Max value of ALL sites "<<val6<<
" at location: "<<loc6<<
'\n';
The field class implements the standard methods for accessing Fields. Hilapp replaces the parity acce...
T max(Parity par=ALL) const
Find maximum value from Field.
T min(Parity par=ALL) const
Find minimum value from Field.
const SU & random(int nhits=16)
Generate random SU(N) matrix.
void setup(const CoordinateVector &siz)
General lattice setup.
constexpr Parity EVEN
bit pattern: 001
#define foralldir(d)
Macro to loop over (all) Direction(s)
constexpr Parity ODD
bit pattern: 010
constexpr Parity ALL
bit pattern: 011
std::ostream out0
This writes output only from main process (node 0)
void initialize(int argc, char **argv)
Read in command line arguments. Initialise default stream and MPI communication.
void seed_random(uint64_t seed, bool device_rng=true)
Seed random generators with 64-bit unsigned value. On MPI shuffles the seed so that different MPI ran...
void finishrun()
Normal, controlled exit - all nodes must call this. Prints timing information and information about c...