Ejemplo n.º 1
0
def set_translational_invariance_fc4(fc4):
    try:
        import anharmonic._phono4py as phono4c
        for i in range(4):
            phono4c.translational_invariance_fc4(fc4, i)
    except ImportError:
        for i in range(4):
            set_translational_invariance_fc4_per_index(fc4, index=i)
Ejemplo n.º 2
0
def set_translational_invariance_fc4(fc4):
    try:
        import anharmonic._phono4py as phono4c
        for i in range(4):
            phono4c.translational_invariance_fc4(fc4, i)
    except ImportError:
        for i in range(4):
            set_translational_invariance_fc4_per_index(fc4, index=i)
Ejemplo n.º 3
0
def set_translational_invariance_fc4_per_index(fc4, index=0):
    try:
        import anharmonic._phono4py as phono4c
        phono4c.translational_invariance_fc4(fc4, index)
    except ImportError:
        set_translational_invariance_fc4_per_index_py(fc4, index)
Ejemplo n.º 4
0
def set_translational_invariance_fc4_per_index(fc4, index=0):
    try:
        import anharmonic._phono4py as phono4c
        phono4c.translational_invariance_fc4(fc4, index)
    except ImportError:
        set_translational_invariance_fc4_per_index_py(fc4, index)