Skip to content

Commit

Permalink
Now removing the sbatch settings of the original parent job so that t…
Browse files Browse the repository at this point in the history
…hey can be repopulated
  • Loading branch information
YHordijk committed Feb 7, 2024
1 parent 54a3c78 commit 61d33eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/tcutility/job/adf.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,11 @@ def run(self):
log.flow()

# also do the calculation with SCF cycles set to 1
self.settings.input.adf.SCF.Iterations = 0
self.settings.input.adf.print = 'FMatSFO' # by default print the fock matrix for each SCF cycle
self.settings.input.adf.AllPoints = 'Yes'
self.settings.input.adf.FullFock = 'Yes'
self.SCF(iterations=0)
# we must repopulate the sbatch settings for the new run
[self._sbatch.pop(key, None) for key in ['D', 'chdir', 'J', 'job_name', 'o', 'output']]
self.name = 'complex_SCF0'
log.flow(log.Emojis.good + ' Submitting extra job with 1 SCF cycle', ['split'])
log.flow(log.Emojis.good + ' Submitting extra job with 0 SCF iterations', ['split'])

super().run()
log.flow(f'SlurmID: {self.slurm_job_id}', ['straight', 'end'])
Expand Down

0 comments on commit 61d33eb

Please sign in to comment.