global varible issue halfly fixed
global variable issue seems fixed in libscf_solver