Skip to content

Commit 3810ffa

Browse files
committed
tblitetheory fixes
1 parent d05f3bd commit 3810ffa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ash/interfaces/interface_xtb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,8 @@ class tbliteTheory(Theory):
10541054
def __init__(self, method=None, printlevel=2, numcores=1, spinpol=False, solvation_method=None, solvent_name=None, solvent_eps=None,
10551055
maxiter=500, electronic_temp=9.5e-4, accuracy=1.0, grab_BOs=False, grab_charges=False, grab_DM=False):
10561056
super().__init__()
1057+
print_line_with_mainheader("tblite INTERFACE")
1058+
print("method:", method)
10571059
self.theorytype="QM"
10581060
self.analytic_hessian=False
10591061
self.theorynamelabel = "tblite"
@@ -1155,7 +1157,7 @@ def run(self, current_coords=None, current_MM_coords=None, MMcharges=None, qm_el
11551157
self.BOs = results.get("bond-orders")
11561158
#DM
11571159
if self.grab_DM:
1158-
self.charges = results.get("density_matrix")
1160+
self.DM = results.get("density-matrix")
11591161

11601162
#Gradient
11611163
if Grad:

0 commit comments

Comments
 (0)