python: update examples and docs
This commit is contained in:
committed by
Richard Berger
parent
9da58b3ffc
commit
24a4ff78b6
10
python/examples/ipython/mpi4py/melt.py
Normal file
10
python/examples/ipython/mpi4py/melt.py
Normal file
@ -0,0 +1,10 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user