Comparison of forcing functions in magnetohydrodynamics