grid adaption

changed all occurrences of the magnetic and elecric field as well as the current and the periodic fft to fit the used grid.