mirror of
https://github.com/ParticulateFlow/LIGGGHTS-PFM.git
synced 2025-12-08 06:47:43 +00:00
release version 3.0.0 on 2014-01-23_20-29-19
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/python -i
|
||||
#!/usr/bin/env python -i
|
||||
# preceeding line should have path for Python on your machine
|
||||
|
||||
# simple.py
|
||||
@ -18,6 +18,7 @@ if len(argv) != 2:
|
||||
infile = sys.argv[1]
|
||||
|
||||
me = 0
|
||||
|
||||
# uncomment if running in parallel via Pypar
|
||||
#import pypar
|
||||
#me = pypar.rank()
|
||||
@ -38,12 +39,11 @@ for line in lines: lmp.command(line)
|
||||
# run a single step with changed coords
|
||||
|
||||
lmp.command("run 10")
|
||||
x = lmp.get_coords()
|
||||
x = lmp.gather_atoms("x",1,3)
|
||||
epsilon = 0.1
|
||||
x[0] += epsilon
|
||||
lmp.put_coords(x)
|
||||
lmp.scatter_atoms("x",1,3,x)
|
||||
lmp.command("run 1");
|
||||
lmp.command("run 1")
|
||||
|
||||
# uncomment if running in parallel via Pypar
|
||||
#print "Proc %d out of %d procs has" % (me,nprocs), lmp
|
||||
|
||||
Reference in New Issue
Block a user