forked from GromPy/GromPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestHybrid.py
executable file
·30 lines (28 loc) · 900 Bytes
/
testHybrid.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /usr/bin/env python
#from ctypes import c_char_p
import sys
TprDir = sys.argv[1]
Mu = float(sys.argv[2])
NStart = int(sys.argv[3])
#NMax = 426
#NMin = 0
MolName = sys.argv[4]
NMin = int(sys.argv[5])
NMax = int(sys.argv[6])
if(len(sys.argv)>7 and sys.argv[7]=='NrgGrps'):
print "This implementation does not work!!"
print "It needs some extra coding: for each GCMC move an energy"
print "evaluation has to be performed IF the previous GCMC move"
print "was rejected."
print "Such a scheme will result in the same amount of energy"
print "evaluations as the other implementation."
print "EXITING..."
sys.exit(1)
bUseNrgGrps = True
from grompy.HybridNrgGrps import *
hybrid_nrggrps(Mu,NStart,NMax,NMin,TprDir)
else:
bUseNrgGrps = False
from grompy.Hybrid import *
print "joh"
hybrid(Mu,NStart,NMax,NMin,TprDir,MolName)