Call elec from main loop.
Add elec checkpoint and fix thermal checkpoint.
Dump proper dielectric field.
Fix elec init when restoring.