Skip to content

Commit

Permalink
Merge pull request #540 from ReactionMechanismGenerator/mol_issue_xtb
Browse files Browse the repository at this point in the history
solve: molecule not found in xtb_adapter.
  • Loading branch information
MichalKesl authored Aug 8, 2022
2 parents 143ec13 + 8d51e07 commit 05e5ab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arc/job/adapters/xtb_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ def write_input_file(self) -> None:

uhf_charge = f'--uhf {uhf} --chrg {self.charge}'
self.long_command = f'{self.command} mol.sdf{directives} {uhf_charge} > {output_filenames[self.job_adapter]}\n'


if self.species[0].mol is None:
self.species[0].mol_from_xyz()
if not self.is_opt_ts_job() and self.species[0].mol is not None:
species_to_sdf_file(species=self.species[0], path=self.sdf_path)
with open(os.path.join(self.local_path, input_filenames[self.job_adapter]), 'w') as f:
Expand Down

0 comments on commit 05e5ab6

Please sign in to comment.