Skip to content

Commit

Permalink
Add forgotten setting of rimpshift to input port
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippRue committed Nov 28, 2023
1 parent 72e6460 commit 7ce6bec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aiida_kkr/workflows/kkr_imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
__copyright__ = (u'Copyright (c), 2017, Forschungszentrum Jülich GmbH, '
'IAS-1/PGI-1, Germany. All rights reserved.')
__license__ = 'MIT license, see LICENSE.txt file'
__version__ = '0.9.2'
__version__ = '0.9.3'
__contributors__ = (u'Fabian Bertoldo', u'Philipp Rüßmann')
#TODO: generalize workflow to multiple impurities
#TODO: add additional checks for the input
Expand Down Expand Up @@ -102,7 +102,8 @@ def define(cls, spec):
'options',
# 'wf_parameters',
'params_overwrite',
'initial_noco_angles'
'initial_noco_angles',
'rimpshift'
)
)

Expand Down Expand Up @@ -789,6 +790,8 @@ def run_kkrimp_scf(self):
builder.options = self.inputs.scf.options
if 'initial_noco_angles' in self.inputs.scf:
builder.initial_noco_angles = self.inputs.scf.initial_noco_angles
if 'rimpshift' in self.inputs.scf:
builder.rimpshift = self.inputs.scf.rimpshift
builder.wf_parameters = kkrimp_params
future = self.submit(builder)

Expand Down
2 changes: 2 additions & 0 deletions aiida_kkr/workflows/kkr_imp_dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ def run_imp_dos(self):
builder.params_overwrite = self.inputs.BdG.params_overwrite
if 'initial_noco_angles' in self.inputs:
builder.initial_noco_angles = self.inputs.initial_noco_angles
if 'rimpshift' in self.inputs:
builder.rimpshift = self.inputs.rimpshift

future = self.submit(builder)

Expand Down
2 changes: 2 additions & 0 deletions aiida_kkr/workflows/kkr_imp_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ def run_kkrimp(self):
# set nonco angles if given
if 'initial_noco_angles' in self.inputs:
inputs['initial_noco_angles'] = self.inputs.initial_noco_angles
if 'rimpshift' in self.inputs:
inputs['rimpshift'] = self.inputs.rimpshift

# run the KKR calculation
message = 'INFO: doing calculation'
Expand Down

0 comments on commit 7ce6bec

Please sign in to comment.