More operator spacing for #2951
Calculate gradient normal direction wrt PBCs.