Bug in library interface / lammps_scatter_atoms

The C++ compiler is interpreting the following code in an unintended
fashion (library.cpp, lines 501-511):

     if (count == 1)
       for (i = 0; i < natoms; i++)
         if ((m = lmp->atom->map(i+1)) >= 0)
           vector[m] = dptr[i];
     else
       for (i = 0; i < natoms; i++)
         if ((m = lmp->atom->map(i+1)) >= 0) {
           offset = count*i;
           for (j = 0; j < count; j++)
             array[m][j] = dptr[offset++];
         }

This can be fixed by adding braces around the outer if/else statements,
as is done for the type != 0 case below it.

Karl D. Hammond
University of Tennessee, Knoxville

"You can never know everything, and part of what you know is always
   wrong. A portion of wisdom lies in knowing that. A portion of courage
   lies in going on anyway."
"Nothing ever goes as you expect. Expect nothing, and you will not be
   surprised."

good catch - made the change

thanks,
Steve

There is still a missing brace on line 512, I think.

yes, it has been fixed - thanks

Steve