Skip to content

Commit

Permalink
set kpoint to [0, 1, 1] for molecule
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Mar 19, 2024
1 parent de18547 commit 9c5be5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aiida_quantumespresso/workflows/xps.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ def get_builder_from_protocol(
if structure_preparation_settings.get('is_molecule_input').value:
builder.ch_scf.pw.parameters.base.attributes.all['SYSTEM']['assume_isolated']='mt'
builder.ch_scf.pw.settings=orm.Dict(dict={'gamma_only':True})
# To ensure compatibility with the gamma_only setting, the k-points must be configured to [1, 1, 1].
kpoints_mesh = DataFactory('core.array.kpoints')()
kpoints_mesh.set_kpoints_mesh([1, 1, 1])
builder.ch_scf.kpoints = kpoints_mesh
builder.relax.base.pw.settings=orm.Dict(dict={'gamma_only':True})
# pylint: enable=no-member
return builder
Expand Down

0 comments on commit 9c5be5e

Please sign in to comment.