updated doc pages and code
This commit is contained in:
@ -25,11 +25,10 @@ neigh_modify delay 0 every 20 check no
|
||||
fix 1 all nve
|
||||
|
||||
variable foo python truncate
|
||||
python truncate return v_foo input 1 v_pyarg1 format fi here """
|
||||
python truncate return v_foo input 1 iv_arg format fi here """
|
||||
def truncate(x):
|
||||
return int(x)
|
||||
"""
|
||||
variable pyarg1 internal 0.0
|
||||
|
||||
variable scalar equal py_foo(4.5)
|
||||
print "TRUNCATE ${scalar}"
|
||||
@ -40,7 +39,6 @@ variable ztrunc atom py_foo(z)
|
||||
|
||||
# examine dump file to see truncated xyz coords of each atom
|
||||
|
||||
#dump 1 all custom 100 tmp.dump id x y z
|
||||
dump 1 all custom 100 tmp.dump id x y z v_xtrunc v_ytrunc v_ztrunc
|
||||
|
||||
run 100
|
||||
|
||||
Reference in New Issue
Block a user