Exemplo n.º 1
0
def NumericDispFunc(queue, int_file, spin_file, direction, k_min, k_max, steps):
    pid = os.getpid()
    int_file = createFileCopy(int_file, pid, 0)
    spin_file = createFileCopy(spin_file, pid, 1)
    Hsave = spinwave_calc_file.driver1(spin_file, int_file)
    qrange, wranges = spinwave_calc_file.driver2(Hsave, direction, steps, k_min, k_max)
    queue.put((pid,(qrange, wranges)))
Exemplo n.º 2
0
def NumericDispFunc(queue, Hsave, direction, k_min, k_max, steps):
    pid = os.getpid()
    init_time = time.clock()
    qrange, wranges = spinwave_calc_file.driver2(Hsave, direction, steps, k_min, k_max)
    print "numeric cross section time; ", time.clock()-init_time, " seconds"
    queue.put((pid,(qrange, wranges)))