Add f as input to several functions.
Add f as input to several functions.

Becasue the functions did not have an f input they were referengin the
function f. This caused an error when squaring f. And is wrong.

jensv/fluxtubestability,jensv/fluxtubestability