Coverage for gpaw/test/xc/test_lxc_laplacian.py: 100%
10 statements
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-08 00:17 +0000
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-08 00:17 +0000
1"""check if an error is raised if the laplacian is needed (mgga)."""
2import pytest
3from gpaw.xc import LibXC
4from gpaw.xc.libxc import FunctionalNeedsLaplacianError
7@pytest.mark.mgga
8@pytest.mark.libxc
9def test_mgga_lxc_laplacian():
10 """Check for raised error."""
11 with pytest.raises(FunctionalNeedsLaplacianError):
12 LibXC('MGGA_X_BR89+MGGA_C_TPSS', disable_fhc=False)
15def test_mgga_lxc_suppressed_laplacian():
16 """Check for suppressed error."""
17 LibXC('MGGA_X_BR89+MGGA_C_TPSS', provides_laplacian=True)