Skip to content

Commit

Permalink
set kpoint to [1, 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 572e0e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/aiida_quantumespresso/workflows/xps.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,11 @@ 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].
KpointsData = DataFactory('core.array.kpoints')
kpoints_mesh = KpointsData()
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 572e0e1

Please sign in to comment.