put makeCluster and registerDoParallel inside the if(local) block
Merge branch 'master' of https://github.com/ahhurlbert/species-energy-simulation