Passing a SharedArray as a pmap argument

Ok I think I find the reason. It seems that when I define function pool_calc, I didn’t define any keywords arguments @everywhere function pool_calc(theta,pool::SharedArray,Np). But when I call this function in pmap, I wrongly used ret = pmap(Np->pool_calc(theta = theta,pool=pool,Np=Np),fill(10^5,10)). This leads to the error.