skip redundant KOKKOS host/device styles info/help lists
This commit is contained in:
@ -1059,8 +1059,9 @@ static void print_columns(FILE *fp, std::map<std::string, ValueType> *styles)
|
||||
for (typename std::map<std::string, ValueType>::iterator it = styles->begin(); it != styles->end(); ++it) {
|
||||
const std::string &style_name = it->first;
|
||||
|
||||
// skip "secret" styles
|
||||
if (isupper(style_name[0])) continue;
|
||||
// skip "internal" styles
|
||||
if (isupper(style_name[0]) || utils::strmatch(style_name,"/kk/host$")
|
||||
|| utils::strmatch(style_name,"/kk/device$")) continue;
|
||||
|
||||
int len = style_name.length();
|
||||
if (pos + len > 80) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user