Problem when passing neigh to -pk omp

Dear all,

I was getting an “Illegal package omp command”

when trying to pass the “neigh no” keyword over the command line to the USER-OMP package.

I found these lines in fix_omp.cpp:
if (strcmp(arg[iarg]+1,“yes”) == 0) _neighbor = true;
else if (strcmp(arg[iarg]+1,“no”) == 0) _neighbor = false;

but I believe it should be “arg[iarg+1]”.

The neigh keyword was parsed without problems after I applied this fix.

Thank you for your time.

Dear all,

I was getting an "Illegal package omp command"
when trying to pass the "neigh no" keyword over the command line to the
USER-OMP package.

I found these lines in fix_omp.cpp:
if (strcmp(arg[iarg]+1,"yes") == 0) _neighbor = true;
  else if (strcmp(arg[iarg]+1,"no") == 0) _neighbor = false;
but I believe it should be "arg[iarg+1]".

The neigh keyword was parsed without problems after I applied this fix.

​thanks for the bug report and the fix.
i've applied the change to my development branch and will forward it to
steve at the next opportunity​.

axel.