bugfix: use nEtaPartitions() to get max partition number
Merge branch 'master' of https://github.com/gem-sw/GEMCode