fix bug and optimize code for dhf.rkb_coul_direct_scf