Skip to content

Commit

Permalink
Updates to interface with CMA_benchmarker
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchLahm committed Feb 8, 2023
1 parent 29946e6 commit 9db1a94
Show file tree
Hide file tree
Showing 69 changed files with 192 additions and 47 deletions.
Binary file added __pycache__/__init__.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/algorithm.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/algorithm.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/algorithm.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/cma.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/cma.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/cma.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/directory_tree.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/directory_tree.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/directory_tree.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/f_convert.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/f_convert.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/f_convert.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/f_read.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/f_read.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/f_read.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/force_constant.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/force_constant.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/force_constant.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/g_matrix.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/g_matrix.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/g_matrix.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/gf_method.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/gf_method.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/gf_method.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/int2cart.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/int2cart.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/int2cart.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/masses.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/masses.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/masses.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/options.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/options.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/options.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/reap.cpython-35.pyc
Binary file not shown.
Binary file added __pycache__/reap.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/reap.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/rmsd.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/rmsd.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/s_vectors.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/s_vectors.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/sapelo_template.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/sapelo_template.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/submit.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/submit.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/ted.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/ted.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/transf_disp.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/transf_disp.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/vulcan_template.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/vulcan_template.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/zmat.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/zmat.cpython-39.pyc
Binary file not shown.
6 changes: 4 additions & 2 deletions options.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Options(object):
def __init__(self, **kwargs):
self.benchmark_full = kwargs.pop("benchmark_full", False)
self.bond_tol = kwargs.pop("inter_tol", 3.778)
self.bond_threshold = kwargs.pop("bond_threshold", 1.2)
self.calc = kwargs.pop("calc", True)
self.cart_coords = kwargs.pop("cart_coords", "Bohr")
self.calc_init = kwargs.pop("calc_init", True)
Expand All @@ -10,6 +10,7 @@ def __init__(self, **kwargs):
self.clean_house = kwargs.pop("clean_house", True)
self.cluster = kwargs.pop("cluster", "vulcan")
self.coords = kwargs.pop("coords", "ZMAT")
self.covalent_radii = kwargs.pop("covalent_radii", False)
self.deriv_level = kwargs.pop("deriv_level", 0)
self.deriv_level_init = kwargs.pop("deriv_level_init", 0)
self.dir_reap = kwargs.pop("dir_reap", True)
Expand All @@ -22,7 +23,6 @@ def __init__(self, **kwargs):
self.gen_disps_init = kwargs.pop("gen_disps_init",True)
self.geom_check = kwargs.pop("geom_check", False)
self.gradient_regex = kwargs.pop("gradient_regex", "")
self.interatomic_distance = kwargs.pop("interatomic_distance", False)
self.man_proj = kwargs.pop("man_proj", False)
self.mode_coupling_check = kwargs.pop("mode_coupling_check", False)
self.molly_regex_init = kwargs.pop("molly_regex_init", "")
Expand All @@ -43,4 +43,6 @@ def __init__(self, **kwargs):
self.success_regex_init = kwargs.pop("success_regex_init", "")
self.tight_disp = kwargs.pop("tight_disp", False)
self.tol = kwargs.pop("tol", 1.0e-14)
self.topo_analysis = kwargs.pop("topo_analysis", False)
self.topo_max_it = kwargs.pop("topo_max_it", 20)
self.units = kwargs.pop("units", "HartreeBohr")
8 changes: 4 additions & 4 deletions reap.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def run(self):
direc, success_regex, energy_regex
)
# print(energy)
rel = ref_en - energy
print("Relative plus " + "{:4d}".format(i) + " " + "{:4d}".format(j) + ": " + "{:10.9f}".format(rel))
rel = energy - ref_en
print("Relative plus " + "{:4d}".format(direc) + "{:4d}".format(i) + " " + "{:4d}".format(j) + ": " + "{: 10.9f}".format(rel))
rel_en_p[i, j] = rel
relative_energies.append([(i, j), "plus", rel, direc])
absolute_energies.append([(i, j), "plus", energy, direc])
Expand All @@ -115,9 +115,9 @@ def run(self):
direc + 1, success_regex, energy_regex
)
# print(energy)
rel = ref_en - energy
rel = energy - ref_en
# print("Relative minus " + str(i) + " " + str(j) + ": " + "{:10.6f}".format(rel))
print("Relative minus " + "{:4d}".format(i) + " " + "{:4d}".format(j) + ": " + "{:10.9f}".format(rel))
print("Relative minus " + "{:4d}".format(direc + 1) + "{:4d}".format(i) + " " + "{:4d}".format(j) + ": " + "{: 10.9f}".format(rel))
rel_en_m[i, j] = rel
relative_energies.append([(i, j), "minus", rel, direc + 1])
absolute_energies.append([(i, j), "minus", energy, direc + 1])
Expand Down
2 changes: 1 addition & 1 deletion s_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def run(self, carts, B_proj, proj=None, second_order=False):
axis=0,
)
# raise RuntimeError
tol = 1e-8
tol = 1e-4
# Now we acquire a linearly independant set of internal coordinates from the diagonalized
# BB^T Matrix
if not self.options.man_proj:
Expand Down
Binary file added tests/__pycache__/suite_execute.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 9db1a94

Please sign in to comment.