Files
lammps-gran-kokkos/python/examples/ipython/mpi4py/melt.py
2024-12-12 23:27:07 -07:00

11 lines
175 B
Python

from mpi4py import MPI
from lammps import lammps
L = lammps()
L.file('in.melt')
if MPI.COMM_WORLD.rank == 0:
pe = L.get_thermo("pe")
print("Potential Energy:", pe)