"""Dirac-alpha current density from integrated Green functions, SPR-KKR 9.7."""
from ...common.grammar_types import Integer, SetOf
from ...common.warnings import DataValidityError, DataValidityWarning
from ..input_parameters_definitions import InputParametersDefinition as InputParameters
from ..task_definition import TaskDefinition
from ._sections import CONTROL, ENERGY, MODE, SITES, STRCONST, TASK, TAU
[docs]
def _validate_jalf(parameters, _values, why):
if why == "set":
return None
issues = []
if parameters.ENERGY.GRID()[0] != "5":
issues.append(DataValidityWarning("JALF expects an occupied-state integration contour; the E-INTEGRAL default is GRID=5."))
if parameters.ENERGY.SPLITSS() or len(parameters.ENERGY.GRID()) > 1 or len(parameters.ENERGY.NE()) > 1:
issues.append(DataValidityError("JALF forces NEPATH=1 and CURDNS uses the first energy path; no split contour is supported."))
if parameters.MODE.MODE() is not None:
issues.append(DataValidityError("JALF uses relativistic wave functions and angular couplings; use FREL."))
nl = parameters.SITES.NL()
if nl is not None and max(nl) < 3:
issues.append(DataValidityError("JALF diagnostics access three channels of JDNST; NL must provide NLMAX>=3."))
return issues or None