Skip to content

Commit

Permalink
write ys_cohesive_energy_per_atom
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Aug 21, 2024
1 parent d534af0 commit 8a727a8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def compute_xy(

xs = []
ys = []
ys_cohesive_energy_per_atom = []
for node_point in report.convergence_list:
if node_point.exit_status != 0:
# TODO: log to a warning file for where the node is not finished_okay
Expand All @@ -205,11 +206,13 @@ def compute_xy(

y = (output_parameters_p['cohesive_energy_per_atom'] - y_ref) / y_ref * 100
ys.append(y)
ys_cohesive_energy_per_atom.append(output_parameters_p['cohesive_energy_per_atom'])

return {
'xs': xs,
'ys': ys,
'ys_relative_diff': ys,
'ys_cohesive_energy_per_atom': ys_cohesive_energy_per_atom,
'metadata': {
'unit': '%',
}
Expand Down

0 comments on commit 8a727a8

Please sign in to comment.