Skip to content

Commit

Permalink
Fix alatbasis in jij workchain
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippRue committed Nov 30, 2023
1 parent 90107a0 commit aa8b5c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiida_kkr/workflows/jijs.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ def _get_jijrad(self):
alat_ang = get_alat_from_bravais(np.array(struc.cell), struc.pbc[2])

# maybe use value provided in input instead
para = {k.lower(): v for k, v in self.ctx.parent_calc.inputs.parameters.get_dict().items()}
if 'use_alat_input' in para or 'use_input_alat' in para:
para = {k.lower(): v for k, v in self.ctx.parent_calc.inputs.parameters.get_dict().items() if v is not None}
if para.get('use_alat_input', False) or para.get('use_input_alat', False):
alat_ang = para.get('alatbasis') * BOHR_A

# now have Jij radius in alat units
Expand Down

0 comments on commit aa8b5c1

Please sign in to comment.