We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29048ab commit 104e0a8Copy full SHA for 104e0a8
atomate/vasp/firetasks/parse_outputs.py
@@ -1461,10 +1461,10 @@ def run_task(self, fw_spec):
1461
d["calcs_reversed"][0]["output"]["outcar"]["total_magnetization"]
1462
)
1463
num_formula_units = sum(
1464
- d["calcs_reversed"][0]["composition_reduced"].values()
1465
- ) / sum(d["calcs_reversed"][0]["composition_unit_cell"].values())
+ d["calcs_reversed"][0]["composition_unit_cell"].values()
+ ) / sum(d["calcs_reversed"][0]["composition_reduced"].values())
1466
total_magnetization_per_formula_unit = (
1467
- total_magnetization * num_formula_units
+ total_magnetization / num_formula_units
1468
1469
total_magnetization_per_unit_volume = (
1470
total_magnetization / final_structure.volume
0 commit comments