Making calc_refine_potential single precision