skip redundant KOKKOS host/device styles info/help lists

This commit is contained in:
Axel Kohlmeyer
2021-12-22 20:13:30 -05:00
parent 461398bc0e
commit 3dcfc0dfc6
2 changed files with 7 additions and 4 deletions

View File

@ -1305,12 +1305,14 @@ void _noopt LAMMPS::help()
/* ----------------------------------------------------------------------
print style names in columns
skip any style that starts with upper-case letter, since internal
skip any internal style that starts with an upper-case letter
also skip "redundant" KOKKOS styles ending in kk/host or kk/device
------------------------------------------------------------------------- */
void print_style(FILE *fp, const char *str, int &pos)
{
if (isupper(str[0])) return;
if (isupper(str[0]) || utils::strmatch(str,"/kk/host$")
|| utils::strmatch(str,"/kk/device$")) return;
int len = strlen(str);
if (pos+len > 80) {