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 3e73aab commit 5fd2aeaCopy full SHA for 5fd2aea
atomate/vasp/firetasks/defects.py
@@ -379,6 +379,8 @@ def get_charges_from_inter( inter_elt):
379
chgdef_trans = ["DefectTransformation"]
380
chgdef_trans_params = [{"scaling_matrix": supercell_size,
381
"defect": defect_for_trans_param}]
382
+ if structure != defect_for_trans_param.bulk_structure:
383
+ raise ValueError("Defect bulk_structure is not the same as input structure.")
384
385
def_tag = "{}:{}_{}_{}atoms".format(structure.composition.reduced_formula,
386
defect.name, charge, num_atoms)
0 commit comments