summaryrefslogtreecommitdiff
path: root/sim/src/experimental/josh_dev/test.py
blob: 9c7c5f5fed540a01847de4eaa3bd4adc9731ddb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

# Copyright 2005 Nanorex, Inc.  See LICENSE file for details. 
from bondage import *
e,p,b = readmmp('ethane.mmp')
bondsetup(b)

dt=1e-16

massacc=array([dt*dt/elmass[x] for x in e])

n=p+massacc*force(p)

x= os.times()
## print 'running...',
## for i in xrange(100000):
##     o=p
##     p=n
##     n=2*p-o+massacc*force(p)

## print os.times()[0]-x[0]