#include #include using namespace std; using namespace Grid; using namespace Grid::QCD; int main (int argc, char ** argv) { Grid_init(&argc,&argv); std::vector latt_size = GridDefaultLatt(); std::vector simd_layout = GridDefaultSimd(4,vComplexF::Nsimd()); std::vector mpi_layout = GridDefaultMpi(); GridCartesian Grid(latt_size,simd_layout,mpi_layout); std::vector seeds({1,2,3,4}); GridSerialRNG fsRNG; fsRNG.SeedFixedIntegers(seeds); GridParallelRNG fpRNG(&Grid); fpRNG.SeedFixedIntegers(seeds); vComplexF tmp; random(fsRNG,tmp); std::cout<<"Random vComplexF (fixed seed)\n"<< tmp<