Commit 034c447 1 parent 9744e28 commit 034c447 Copy full SHA for 034c447
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,8 @@ def handle_parameters(self):
97
97
self .main_command += f"--chrg { self .calc .charge } "
98
98
99
99
if self .calc .multiplicity != 1 :
100
- self .main_command += f"--uhf { self .calc .multiplicity } "
100
+ # uhf is the number of unpaired electrons
101
+ self .main_command += f"--uhf { self .calc .multiplicity - 1 } "
101
102
102
103
def handle_constraints_scan (self ):
103
104
if len (self .calc .constraints ) == 0 :
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def test_sp_multiplicity(self):
43
43
44
44
xtb = self .generate_calculation (** params )
45
45
46
- REF = "xtb Cl.xyz --uhf 2 "
46
+ REF = "xtb Cl.xyz --uhf 1 "
47
47
48
48
self .assertTrue (self .is_equivalent (REF , xtb .command ))
49
49
self .assertTrue (self .is_equivalent ("" , xtb .input_file ))
@@ -59,7 +59,7 @@ def test_sp_charge_multiplicity(self):
59
59
60
60
xtb = self .generate_calculation (** params )
61
61
62
- REF = "xtb Cl.xyz --chrg -1 --uhf 3 "
62
+ REF = "xtb Cl.xyz --chrg -1 --uhf 2 "
63
63
64
64
self .assertTrue (self .is_equivalent (REF , xtb .command ))
65
65
self .assertTrue (self .is_equivalent ("" , xtb .input_file ))
You can’t perform that action at this time.
0 commit comments