Skip to content

Commit e2c5cbe

Browse files
authored
Merge pull request brucefan1983#754 from brucefan1983/high_lmax
High lmax
2 parents a422918 + 99d8e9f commit e2c5cbe

File tree

5 files changed

+424
-321
lines changed

5 files changed

+424
-321
lines changed

doc/nep/input_parameters/l_max.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ The latter two arguments are optional (as indicated by the curly brackets).
1616
If there is one value :math:`l_\mathrm{max}^\mathrm{4b}=l_\mathrm{max}^\mathrm{5b}=0`.
1717
If there are two values :math:`l_\mathrm{max}^\mathrm{5b}=0`.
1818

19-
:math:`l_\mathrm{max}^\mathrm{3b}` can only be 4, :math:`l_\mathrm{max}^\mathrm{4b}` can be 0 or 2, and :math:`l_\mathrm{max}^\mathrm{5b}` can be 0 or 1.
19+
:math:`l_\mathrm{max}^\mathrm{3b}` can take values from 0 to 8, :math:`l_\mathrm{max}^\mathrm{4b}` can be 0 or 2, and :math:`l_\mathrm{max}^\mathrm{5b}` can be 0 or 1. It is also required to have :math:`l_\mathrm{max}^\mathrm{3b} \geq l_\mathrm{max}^\mathrm{4b} \geq l_\mathrm{max}^\mathrm{5b}`.
2020

2121
The default values are :math:`l_\mathrm{max}^\mathrm{3b}=4`, :math:`l_\mathrm{max}^\mathrm{4b}=2`, and :math:`l_\mathrm{max}^\mathrm{5b}=0`.

src/main_nep/parameters.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,8 @@ void Parameters::parse_l_max(const char** param, int num_param)
730730
if (L_max < 0) {
731731
PRINT_INPUT_ERROR("l_max for 3-body descriptors should >= 0.");
732732
}
733-
if (L_max > 4) {
734-
PRINT_INPUT_ERROR("l_max for 3-body descriptors should <= 4.");
733+
if (L_max > 8) {
734+
PRINT_INPUT_ERROR("l_max for 3-body descriptors should <= 8.");
735735
}
736736

737737
if (num_param >= 3) {

0 commit comments

Comments
 (0)