Skip to content

Commit b48055c

Browse files
Merge pull request #195 from SSCHAcode/cluster_computed_fix
Fixed the issue #193.
2 parents 23c3797 + 9f96046 commit b48055c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/Cluster.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,8 @@ def compute_single_jobarray(jobs_id, calc):
16071607
ensemble.all_properties[num].update(res_only_extra)
16081608
ensemble.energies[num] = res["energy"] / units["Ry"]
16091609
ensemble.forces[num, :, :] = res["forces"] / units["Ry"]
1610+
ensemble.force_computed[num] = True
1611+
16101612
if get_stress:
16111613
stress = np.zeros((3,3), dtype = np.float64)
16121614
stress[0,0] = res["stress"][0]
@@ -1620,6 +1622,7 @@ def compute_single_jobarray(jobs_id, calc):
16201622
stress[1,0] = res["stress"][5]
16211623
# Remember, ase has a very strange definition of the stress
16221624
ensemble.stresses[num, :, :] = -stress * units["Bohr"]**3 / units["Ry"]
1625+
ensemble.stress_computed[num] = True
16231626
success[num] = is_success
16241627

16251628
self.lock.release()

0 commit comments

Comments
 (0)