routine to calculate mass and regime from gmu and r values