def AnalyticDispFunc(queue, int_file, spin_file): pid = os.getpid() int_file = createFileCopy(int_file, pid, 0) spin_file = createFileCopy(spin_file, pid, 1) #Since calculating Hsave is most of what the numeric process does, it might be better not to do this twice. Hsave = spinwave_calc_file.driver1(spin_file, int_file) myeigs=printing.eig_process(deepcopy(Hsave)) queue.put((pid, printing.create_latex(myeigs, "eigs")))
def AnalyticDispFunc(queue, Hsave): pid = os.getpid() myeigs=printing.eig_process(deepcopy(Hsave)) queue.put((pid, printing.create_latex(myeigs, "eigs")))
def AnalyticCrossSectionFunc(queue, int_file, spin_file): pid = os.getpid() int_file = createFileCopy(int_file, pid, 0) spin_file = createFileCopy(spin_file, pid, 1) N_atoms_uc,csection,kaprange,qlist,tau_list,eig_list,kapvect,wtlist = run_cross_section(int_file, spin_file) queue.put((pid,printing.create_latex(csection, "eigs"))) #(PID, answer)