import numpy
from mpi4py import MPI
from isingMapping import mass2c
import genFit

comm = MPI.COMM_WORLD
size = comm.size
rank = comm.rank

ng = 2
n = 101
center = (n/2,n/2)
mass2lst = genFit.genMass2lst(mass2c,50,28)
mass2rank = [mass2lst[i] for i in range(len(mass2lst)) if i%size == rank]

# mpirun -n 4 python genData.py
for mass2 in mass2rank: 
   info = ['tmp2',ng,n,center,mass2]
   genFit.genData(info)
