19static_assert(NDIM == 3,
"NDIM must be 3");
28int main(
int argc,
char *argv[]) {
33 lattice.
setup({32, 32, 32});
42 onsites(
ALL) f[X].gaussian_random();
46 g[
ALL] +=
abs(f[X + d] - 2 * f[X] + f[X - d]);
55 average = average / lattice.volume();
56 hila::out0 <<
"Average of g is " << average <<
'\n';
The field class implements the standard methods for accessing Fields. Hilapp replaces the parity acce...
void setup(const CoordinateVector &siz)
General lattice setup.
T abs(const Complex< T > &a)
Return absolute value of Complex number.
#define foralldir(d)
Macro to loop over (all) Direction(s)
constexpr Parity ALL
bit pattern: 011
int main(int argc, char *argv[])
Main function for application which implements the method.
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...