Skip to content

Commit 05e5ab6

Browse files
authored
Merge pull request #540 from ReactionMechanismGenerator/mol_issue_xtb
solve: molecule not found in xtb_adapter.
2 parents 143ec13 + 8d51e07 commit 05e5ab6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arc/job/adapters/xtb_adapter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ def write_input_file(self) -> None:
268268

269269
uhf_charge = f'--uhf {uhf} --chrg {self.charge}'
270270
self.long_command = f'{self.command} mol.sdf{directives} {uhf_charge} > {output_filenames[self.job_adapter]}\n'
271-
271+
272+
if self.species[0].mol is None:
273+
self.species[0].mol_from_xyz()
272274
if not self.is_opt_ts_job() and self.species[0].mol is not None:
273275
species_to_sdf_file(species=self.species[0], path=self.sdf_path)
274276
with open(os.path.join(self.local_path, input_filenames[self.job_adapter]), 'w') as f:

0 commit comments

Comments
 (0)