5static_assert(NDIM == 3,
"NDIM must be 3 here");
10int main(
int argc,
char *argv[]) {
17 lattice.
setup({100, 100, 100});
31 double val1, val2, val3, val4, val5, val6;
33 for (
auto i = 0; i < 1; i++)
44 hila::out0 <<
"Min value of ODD sites " << val1 <<
" at location: " << loc1 <<
'\n';
45 hila::out0 <<
"Min value of EVEN sites " << val2 <<
" at location: " << loc2 <<
'\n';
46 hila::out0 <<
"Max value of ODD sites " << val3 <<
" at location: " << loc3 <<
'\n';
47 hila::out0 <<
"Max value of EVEN sites " << val4 <<
" at location: " << loc4 <<
'\n';
48 hila::out0 <<
"Min value of ALL sites " << val5 <<
" at location: " << loc5 <<
'\n';
49 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.
void setup(const CoordinateVector &siz)
General lattice setup.
constexpr Parity EVEN
bit pattern: 001
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...