コード例 #1
0
ファイル: vis_diderot.py プロジェクト: cchiw/fem
def basic_d2s_lerp(name, f, resU, resV, physicalx0, physicalxn, physicaly0, physicalyn, type):

    p_cf = f._ctypes
    init_file = path.join(path.dirname(__file__), '../diderot/store/basic_d2s_lerp_init.o')
    diderot_file = path.join(path.dirname(__file__), '../diderot/store/basic_d2s_lerp.o')
    call = make_c_evaluate(f, "callDiderot", ldargs=[init_file, diderot_file, "-lteem"])

    return call(ctypes.c_char_p(name), type, p_cf, resU, resV, physicalx0, physicalxn, physicaly0, physicalyn)
コード例 #2
0
ファイル: vis_diderot.py プロジェクト: cchiw/fem
def tmp(f):
    p_cf = f._ctypes
    init_file = path.join(path.dirname(__file__), '/Users/chariseechiw/fire/firedrake/diderot/store/tmp_init.o')
    diderot_file = path.join(path.dirname(__file__), '/Users/chariseechiw/fire/firedrake/diderot/store/tmp.o')
    call = make_c_evaluate(f, "cat", ldargs=[init_file, diderot_file, "-lteem"])
    return 1