Skip to content

Commit

Permalink
Fixed formatting issue with C auxiliary basis sets and solvation in ORCA
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRobidas committed Sep 18, 2022
1 parent 99b4ca3 commit e774b95
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ccinput/packages/orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def handle_command(self):
self.command_line += f"{method} "

for aux_t, aux_bs in self.aux_basis_sets.items():
self.command_line += f"{aux_bs}/{aux_t}"
self.command_line += f"{aux_bs}/{aux_t} "

def handle_custom_basis_sets(self):
if len(self.calc.parameters.custom_basis_sets) == 0:
Expand Down
55 changes: 55 additions & 0 deletions ccinput/tests/test_orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,61 @@ def test_sp_DLPNO_CCSDT_default_aux(self):

self.assertTrue(self.is_equivalent(REF, inp.input_file))

def test_sp_DLPNO_CCSDT_default_aux_specifications(self):
params = {
"nproc": 8,
"type": "Single-Point Energy",
"file": "Cl.xyz",
"software": "ORCA",
"method": "DLPNO-CCSD(T)",
"basis_set": "cc-pVTZ",
"charge": "-1",
"specifications": "tightscf",
}

inp = self.generate_calculation(**params)

REF = """
!SP DLPNO-CCSD(T) cc-pVTZ cc-pVTZ/C tightscf
*xyz -1 1
Cl 0.0 0.0 0.0
*
%MaxCore 125
%pal
nprocs 8
end
"""

self.assertTrue(self.is_equivalent(REF, inp.input_file))

def test_sp_DLPNO_CCSDT_default_aux_solvation(self):
params = {
"nproc": 8,
"type": "Single-Point Energy",
"file": "Cl.xyz",
"software": "ORCA",
"method": "DLPNO-CCSD(T)",
"basis_set": "cc-pVTZ",
"charge": "-1",
"solvent": "ch2cl2",
"solvation_model": "CPCM",
}

inp = self.generate_calculation(**params)

REF = """
!SP DLPNO-CCSD(T) cc-pVTZ cc-pVTZ/C CPCM(ch2cl2)
*xyz -1 1
Cl 0.0 0.0 0.0
*
%MaxCore 125
%pal
nprocs 8
end
"""

self.assertTrue(self.is_equivalent(REF, inp.input_file))

def test_sp_CCSDT(self):
params = {
"nproc": 8,
Expand Down

0 comments on commit e774b95

Please sign in to comment.