diff --git a/src/aiida_quantumespresso/workflows/xps.py b/src/aiida_quantumespresso/workflows/xps.py index ce121de67..ed4fdc01b 100644 --- a/src/aiida_quantumespresso/workflows/xps.py +++ b/src/aiida_quantumespresso/workflows/xps.py @@ -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