From d3d4bfb38370838fdd52fe905da499cbd875b35b Mon Sep 17 00:00:00 2001 From: Xiao-Yong Jin Date: Mon, 12 Aug 2024 16:17:45 -0500 Subject: [PATCH] examples: add simple multi_nc example --- src/examples/multi_nc.nim | 72 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 src/examples/multi_nc.nim diff --git a/src/examples/multi_nc.nim b/src/examples/multi_nc.nim new file mode 100644 index 0000000..ad7e33e --- /dev/null +++ b/src/examples/multi_nc.nim @@ -0,0 +1,72 @@ +import qex, gauge/stoutsmear + +qexInit() + +let + seed = 4321u + lat = @[8,8,8,16] + nd = lat.len + lo = lat.newLayout + vol = lo.physVol + gc = GaugeActionCoeffs(plaq: 6.0) + +var r = lo.newRNGField(RngMilc6, seed) + +var gaugeu1 = newseq[Field[VLEN,Color[MatrixArray[1,1,DComplexV]]]](nd) +var gaugesu2 = newseq[Field[VLEN,Color[MatrixArray[2,2,DComplexV]]]](nd) +var gaugesu3= newseq[Field[VLEN,Color[MatrixArray[3,3,DComplexV]]]](nd) +for i in 0..