Skip to content

Commit

Permalink
Updated IterHA example
Browse files Browse the repository at this point in the history
  • Loading branch information
atztogo committed Jun 21, 2020
1 parent 19ef417 commit 5405fce
Show file tree
Hide file tree
Showing 2 changed files with 240 additions and 179 deletions.
5 changes: 5 additions & 0 deletions aiida_phonopy/workflows/iter_ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ def run_phonon(self):
self.report("run_phonon_%d" % self.ctx.iteration)

n_ave = self.inputs.number_of_steps_for_fitting.value

# Initial nodes are not specified, 0K phonon is in
# self.ctx.initial_node. This is only once used to generate random
# displacements. In the following steps, phonons calculated at
# specified temperature are used to generate random displacements.
if len(self.ctx.prev_nodes) == 0:
nodes = [self.ctx.initial_node, ]
elif len(self.ctx.prev_nodes) < n_ave:
Expand Down

0 comments on commit 5405fce

Please sign in to comment.