Skip to content

Commit 7dde29f

Browse files
authored
Merge pull request #4 from nlk36701/Mitchell
Reap fixes
2 parents c82ef5f + dcbad16 commit 7dde29f

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

Merger.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,8 @@ def run(self, opts, Proj, energy_regex=None, success_regex=None, cma1_coord=None
204204
options,
205205
eigs_init,
206206
indices,
207-
options.gradient_regex,
208207
options.energy_regex_init,
209-
None,
208+
options.gradient_regex,
210209
options.success_regex_init,
211210
deriv_level = self.options.deriv_level
212211
)
@@ -444,6 +443,12 @@ def run(self, opts, Proj, energy_regex=None, success_regex=None, cma1_coord=None
444443
print(G)
445444
G = np.dot(np.dot(eig_inv, G), eig_inv.T)
446445
# G[np.abs(G) < options.tol] = 0
446+
# print("Nat F:")
447+
# F[np.abs(F) < 1.0e-5] = 0
448+
# print(F)
449+
# Conversion to aJ/Ang
450+
# F *= 4.3597447222071
451+
# F /= 0.529177210903
447452
F = np.dot(np.dot(TED_obj.proj.T,F),TED_obj.proj)
448453
if len(sym_sort) > 1:
449454
F = F[flat_sym_sort]

exec_cma_database.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
# High and low levels of theory
2727
# Available: "CCSD_T_TZ", "CCSD_T_DZ", "B3LYP_6-31G_2df,p_"
28-
h_theory = ["CCSD_T_aTZ"]
29-
# h_theory = ["CCSD_T_TZ"]
28+
# h_theory = ["CCSD_T_aTZ"]
29+
h_theory = ["CCSD_T_TZ"]
3030
# l_theory = ["MP2_haTZ"]
3131
# l_theory = ["MP2_haDZ"]
3232
# l_theory = ["MP2_aTZ"]
@@ -37,8 +37,8 @@
3737
# l_theory = ["CCSD_T_haDZ"]
3838
# l_theory = ["CCSD_T_aDZ"]
3939
# l_theory = ["CCSD_haTZ"]
40-
l_theory = ["CCSD_T_TZ"]
41-
# l_theory = ["CCSD_T_DZ"]
40+
# l_theory = ["CCSD_T_TZ"]
41+
l_theory = ["CCSD_T_DZ"]
4242
# l_theory = [
4343
# # "CCSD_aTZ",
4444
# # "CCSD_haTZ",
@@ -75,6 +75,7 @@
7575
# "MP2_TZ"]
7676

7777
# cma1_energy_regexes = ["CCSD\s*t?o?t?a?l? energy\s+(\-\d+\.\d+)"]
78+
cma1_gradient_regex = []
7879
# cma1_gradient_regex = ["\s*virial=\S\S+\.\d+E\S\d+\S\>\s+"]
7980
# cma1_energy_regexes = ["\(T\)\s*t?o?t?a?l? energy\s+(\-\d+\.\d+)","Grab this energy (\-\d+\.\d+)"]
8081
# cma1_energy_regexes = ["\(T\)\s*t?o?t?a?l? energy\s+(\-\d+\.\d+)",[r"Total Gradient",r"tstop"]]
@@ -111,7 +112,7 @@
111112
# paths = ['/1*','/2*']
112113
# job_list = ["4.31"]
113114
# job_list = ["1.104"]
114-
job_list = ["3.4"]
115+
job_list = ["0.1"]
115116

116117
# Various output control statements
117118
n = 0 # Number of CMA2 corrections (n = 0 -> CMA0)
@@ -128,8 +129,8 @@
128129
# compute_all = True # run calculations for all or a select few
129130
off_diag_bands = False # (CMA2/3 ONLY) If set to true, "n" off-diag bands selected, if false, "n" largest fc will be selected
130131
deriv_level = 0 # (CMA1) if 0, compute initial hessian by singlepoints. If 1, compute initial hessian with findif of gradients
131-
second_order = True # If True, read in cartesian gradient and force constant info to be converted to internal coordinates.
132-
# second_order = False # If False, generate displacements to manually compute the CMA-0A internal coord force constants.
132+
# second_order = True # If True, read in cartesian gradient and force constant info to be converted to internal coordinates.
133+
second_order = False # If False, generate displacements to manually compute the CMA-0A internal coord force constants.
133134

134135

135136
# =====================

0 commit comments

Comments
 (0)