fixed the solar rotation function rot_hpc