added ifdef protection for electrokinetics variable