Skip to content

Commit 66565de

Browse files
Added documentation
1 parent b5e4536 commit 66565de

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

mala/common/parameters.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -604,14 +604,31 @@ class ParametersTargets(ParametersBase):
604604
Number of points in the energy grid that is used to calculate the
605605
(L)DOS.
606606
607-
ldos_gridsize : int
608-
Gridsize of the LDOS.
609-
610-
ldos_gridspacing_ev: float
607+
ldos_gridsize : int or list
608+
Gridsize of the LDOS. Can either be an int or a list of ints,
609+
in which case splitting of the (L)DOS along the energy axis is assumed.
610+
Note that this splitting feature is currently experimental and the
611+
interface may change in the future. Further, if this type of splitting
612+
is used, please make sure that ldos_gridsize, ldos_gridspacing_ev
613+
and ldos_gridoffset_ev are lists of the same length.
614+
615+
ldos_gridspacing_ev: float or list
611616
Gridspacing of the energy grid the (L)DOS is evaluated on [eV].
612-
613-
ldos_gridoffset_ev: float
617+
Can either be a float or a list of floats, in which case splitting of
618+
the (L)DOS along the energy axis is assumed.
619+
Note that this splitting feature is currently experimental and the
620+
interface may change in the future. Further, if this type of splitting
621+
is used, please make sure that ldos_gridsize, ldos_gridspacing_ev
622+
and ldos_gridoffset_ev are lists of the same length.
623+
624+
ldos_gridoffset_ev: float or list
614625
Lowest energy value on the (L)DOS energy grid [eV].
626+
Can either be a float or a list of floats, in which case splitting of
627+
the (L)DOS along the energy axis is assumed.
628+
Note that this splitting feature is currently experimental and the
629+
interface may change in the future. Further, if this type of splitting
630+
is used, please make sure that ldos_gridsize, ldos_gridspacing_ev
631+
and ldos_gridoffset_ev are lists of the same length.
615632
616633
pseudopotential_path : string
617634
Path at which pseudopotentials are located (for TEM).

mala/targets/target.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,12 @@ def _check_energy_grid_parameter_consistency(self):
19331933
"a list."
19341934
)
19351935
if split:
1936+
parallel_warn(
1937+
"Splitting along energy axis for LDOS, this "
1938+
"feature is currently experimental. Correctness "
1939+
"of results has been verified for most systems, "
1940+
"but the interface may change in the future."
1941+
)
19361942
if not (
19371943
len(self.parameters.ldos_gridsize)
19381944
== len(self.parameters.ldos_gridoffset_ev)

0 commit comments

Comments
 (0)