git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3624 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2010-01-04 20:25:40 +00:00
parent cf4ca9efb7
commit 654e03d382
4 changed files with 17 additions and 17 deletions

View File

@ -49,6 +49,12 @@ FixAveHisto::FixAveHisto(LAMMPS *lmp, int narg, char **arg) :
{ {
if (narg < 10) error->all("Illegal fix ave/histo command"); if (narg < 10) error->all("Illegal fix ave/histo command");
MPI_Comm_rank(world,&me);
nevery = atoi(arg[3]);
nrepeat = atoi(arg[4]);
nfreq = atoi(arg[5]);
global_freq = nfreq; global_freq = nfreq;
vector_flag = 1; vector_flag = 1;
size_vector = 4; size_vector = 4;
@ -58,12 +64,6 @@ FixAveHisto::FixAveHisto(LAMMPS *lmp, int narg, char **arg) :
extarray = 0; extarray = 0;
time_depend = 1; time_depend = 1;
MPI_Comm_rank(world,&me);
nevery = atoi(arg[3]);
nrepeat = atoi(arg[4]);
nfreq = atoi(arg[5]);
lo = atof(arg[6]); lo = atof(arg[6]);
hi = atof(arg[7]); hi = atof(arg[7]);
nbins = atoi(arg[8]); nbins = atoi(arg[8]);

View File

@ -50,13 +50,14 @@ FixAveSpatial::FixAveSpatial(LAMMPS *lmp, int narg, char **arg) :
MPI_Comm_rank(world,&me); MPI_Comm_rank(world,&me);
no_change_box = 1;
time_depend = 1;
nevery = atoi(arg[3]); nevery = atoi(arg[3]);
nrepeat = atoi(arg[4]); nrepeat = atoi(arg[4]);
nfreq = atoi(arg[5]); nfreq = atoi(arg[5]);
global_freq = nfreq;
no_change_box = 1;
time_depend = 1;
if (strcmp(arg[6],"x") == 0) dim = 0; if (strcmp(arg[6],"x") == 0) dim = 0;
else if (strcmp(arg[6],"y") == 0) dim = 1; else if (strcmp(arg[6],"y") == 0) dim = 1;
else if (strcmp(arg[6],"z") == 0) dim = 2; else if (strcmp(arg[6],"z") == 0) dim = 2;
@ -293,7 +294,6 @@ FixAveSpatial::FixAveSpatial(LAMMPS *lmp, int narg, char **arg) :
array_flag = 1; array_flag = 1;
size_local_rows = BIG; size_local_rows = BIG;
size_local_cols = nvalues+2; size_local_cols = nvalues+2;
global_freq = nfreq;
extarray = 0; extarray = 0;
// setup scaling // setup scaling

View File

@ -44,14 +44,15 @@ FixAveTime::FixAveTime(LAMMPS *lmp, int narg, char **arg) :
{ {
if (narg < 7) error->all("Illegal fix ave/time command"); if (narg < 7) error->all("Illegal fix ave/time command");
time_depend = 1;
MPI_Comm_rank(world,&me); MPI_Comm_rank(world,&me);
nevery = atoi(arg[3]); nevery = atoi(arg[3]);
nrepeat = atoi(arg[4]); nrepeat = atoi(arg[4]);
nfreq = atoi(arg[5]); nfreq = atoi(arg[5]);
global_freq = nfreq;
time_depend = 1;
// scan values to count them // scan values to count them
// then read options so know mode = SCALAR/VECTOR before re-reading values // then read options so know mode = SCALAR/VECTOR before re-reading values
@ -251,7 +252,6 @@ FixAveTime::FixAveTime(LAMMPS *lmp, int narg, char **arg) :
// VECTOR mode produces either a vector or array // VECTOR mode produces either a vector or array
// intensive/extensive flags set by compute,fix,variable that produces value // intensive/extensive flags set by compute,fix,variable that produces value
global_freq = nfreq;
extlist = NULL; extlist = NULL;
if (mode == SCALAR) { if (mode == SCALAR) {

View File

@ -37,15 +37,15 @@ FixThermalConductivity::FixThermalConductivity(LAMMPS *lmp,
{ {
if (narg < 6) error->all("Illegal fix thermal/conductivity command"); if (narg < 6) error->all("Illegal fix thermal/conductivity command");
scalar_flag = 1;
global_freq = nevery;
extscalar = 0;
MPI_Comm_rank(world,&me); MPI_Comm_rank(world,&me);
nevery = atoi(arg[3]); nevery = atoi(arg[3]);
if (nevery <= 0) error->all("Illegal fix thermal/conductivity command"); if (nevery <= 0) error->all("Illegal fix thermal/conductivity command");
scalar_flag = 1;
global_freq = nevery;
extscalar = 0;
if (strcmp(arg[4],"x") == 0) edim = 0; if (strcmp(arg[4],"x") == 0) edim = 0;
else if (strcmp(arg[4],"y") == 0) edim = 1; else if (strcmp(arg[4],"y") == 0) edim = 1;
else if (strcmp(arg[4],"z") == 0) edim = 2; else if (strcmp(arg[4],"z") == 0) edim = 2;