git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4921 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -12,16 +12,18 @@
|
|||||||
# only atoms of itype in dfile2,...,dfileN are added to dfinal
|
# only atoms of itype in dfile2,...,dfileN are added to dfinal
|
||||||
|
|
||||||
import sys,os
|
import sys,os
|
||||||
|
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||||
|
sys.path.append(path)
|
||||||
|
from dump import dump
|
||||||
from dump import dump
|
from dump import dump
|
||||||
if not globals().has_key("argv"): argv = sys.argv
|
|
||||||
|
|
||||||
if len(argv) < 5:
|
if len(sys.argv) < 5:
|
||||||
print "Syntax: neb1.py dfinal itype dfile1 dfile2 ..."
|
print "Syntax: neb1.py dfinal itype dfile1 dfile2 ..."
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
dfinal = argv[1]
|
dfinal = sys.argv[1]
|
||||||
itype = int(argv[2])
|
itype = int(sys.argv[2])
|
||||||
files = argv[3:]
|
files = sys.argv[3:]
|
||||||
|
|
||||||
tstr = "$type == %d" % itype
|
tstr = "$type == %d" % itype
|
||||||
|
|
||||||
|
|||||||
@ -9,15 +9,16 @@
|
|||||||
# for M replicas, final snapshots are renumbered in final file from 1 to M
|
# for M replicas, final snapshots are renumbered in final file from 1 to M
|
||||||
|
|
||||||
import sys,os
|
import sys,os
|
||||||
|
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||||
|
sys.path.append(path)
|
||||||
from dump import dump
|
from dump import dump
|
||||||
if not globals().has_key("argv"): argv = sys.argv
|
|
||||||
|
|
||||||
if len(argv) < 5:
|
if len(sys.argv) < 5:
|
||||||
print "Syntax: neb2.py dfinal dfile1 dfile2 ..."
|
print "Syntax: neb2.py dfinal dfile1 dfile2 ..."
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
dfinal = argv[1]
|
dfinal = sys.argv[1]
|
||||||
files = argv[2:]
|
files = sys.argv[2:]
|
||||||
|
|
||||||
if os.path.exists(dfinal): os.remove(dfinal)
|
if os.path.exists(dfinal): os.remove(dfinal)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user