As long as you have a partner, avoid all masturbation and pornography. Instead, have all sexual activities with your partner, so that all of your sexual energy will be available. Masturbation is very different than having sex with a partner, and you are better off with giving her your attention.