Skip to content

Commit

Permalink
Merge pull request #159 from ReactionMechanismGenerator/scan_debug
Browse files Browse the repository at this point in the history
Remove rotor info related to re-run after conformer correction
  • Loading branch information
alongd committed Aug 2, 2019
2 parents 17feba8 + 822381b commit 9fe3f5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arc/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ def check_scan_job(self, label, job):
message += error_message + '; '
invalidate = True
invalidation_reason = 'two consecutive points are inconsistent by more than ' \
'{0:.2f} kJ/mol'.format(inconsistency_ab)
'{0:.2f} kJ/mol'.format(inconsistency_ab * max(v_list))
if not job.scan_trsh:
logger.info('Trying to troubleshoot rotor {0} of {1}...'.format(
job.pivots, label))
Expand Down Expand Up @@ -1563,6 +1563,12 @@ def check_scan_job(self, label, job):
scan=self.species_dict[label].rotors_dict[i]['scan'],
deg_increment=min_index*rotor_scan_resolution)
self.delete_all_species_jobs(label)
# Remove all completed rotor calculation information
for rotor in self.species_dict[label].rotors_dict.values():
rotor["scan_path"] = ''
rotor["invalidation_reason"] = ''
rotor["success"] = None
rotor.pop('symmetry', None)
self.run_opt_job(label) # run opt on new initial_xyz with the desired dihedral
else:
self.species_dict[label].rotors_dict[i]['success'] = True
Expand Down

0 comments on commit 9fe3f5c

Please sign in to comment.