git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10199 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include "universe.h"
|
||||
#include "version.h"
|
||||
#include "error.h"
|
||||
#include "force.h"
|
||||
#include "memory.h"
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
@ -77,7 +78,7 @@ void Universe::reorder(char *style, char *arg)
|
||||
if (uworld != uorig) MPI_Comm_free(&uworld);
|
||||
|
||||
if (strcmp(style,"nth") == 0) {
|
||||
int n = atoi(arg);
|
||||
int n = force->inumeric(FLERR,arg);
|
||||
if (n <= 0)
|
||||
error->universe_all(FLERR,"Invalid -reorder N value");
|
||||
if (nprocs % n)
|
||||
|
||||
Reference in New Issue
Block a user