Coverage for gpaw/test/sjm/test_keys.py: 62%
8 statements
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-14 00:18 +0000
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-14 00:18 +0000
1import pytest
4@pytest.mark.old_gpaw_only
5@pytest.mark.ci
6@pytest.mark.serial
7def test_keys(atoms):
8 atoms.calc.set(
9 sj={'excess_electrons': 1.,
10 'jelliumregion': {'top': -2.,
11 'bottom': -4.,
12 'thickness': None,
13 'fix_bottom': False},
14 'target_potential': 3,
15 'pot_ref': 'wf',
16 'tol': 0.01,
17 'always_adjust': True,
18 'grand_output': False,
19 'max_iters': 100,
20 'max_step': 3.,
21 'slope': 5,
22 'mixer': 1,
23 'fdt': False,
24 'slope_regression_depth': 4,
25 'dirichlet': False,
26 'cip': {'autoinner': {'nlayers': None,
27 'threshold': 0.0001},
28 'inner_region': None,
29 'mu_pzc': None,
30 'phi_pzc': None,
31 'filter': 10}})
33 atoms.calc.initialize(atoms)
34 atoms.calc.initialize_positions(atoms)