git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13890 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -259,7 +259,7 @@ void FixAveHistoWeight::end_of_step()
|
|||||||
if (atom->nlocal > maxatom) {
|
if (atom->nlocal > maxatom) {
|
||||||
memory->destroy(vector);
|
memory->destroy(vector);
|
||||||
maxatom = atom->nmax;
|
maxatom = atom->nmax;
|
||||||
memory->create(vector,maxatom,"ave/histo/weights:vector");
|
memory->create(vector,maxatom,"ave/histo/weight:vector");
|
||||||
}
|
}
|
||||||
input->variable->compute_atom(m,igroup,vector,1,0);
|
input->variable->compute_atom(m,igroup,vector,1,0);
|
||||||
weights = vector;
|
weights = vector;
|
||||||
@ -388,7 +388,7 @@ void FixAveHistoWeight::end_of_step()
|
|||||||
if (atom->nlocal > maxatom) {
|
if (atom->nlocal > maxatom) {
|
||||||
memory->destroy(vector);
|
memory->destroy(vector);
|
||||||
maxatom = atom->nmax;
|
maxatom = atom->nmax;
|
||||||
memory->create(vector,maxatom,"ave/histo/weights:vector");
|
memory->create(vector,maxatom,"ave/histo/weight:vector");
|
||||||
}
|
}
|
||||||
input->variable->compute_atom(m,igroup,vector,1,0);
|
input->variable->compute_atom(m,igroup,vector,1,0);
|
||||||
bin_atoms_weights(vector,1,weights,stride);
|
bin_atoms_weights(vector,1,weights,stride);
|
||||||
|
|||||||
@ -565,6 +565,8 @@ double PairHybrid::init_one(int i, int j)
|
|||||||
// perform mixing only if I,I sub-style = J,J sub-style
|
// perform mixing only if I,I sub-style = J,J sub-style
|
||||||
// also require I,I and J,J are both assigned to single sub-style
|
// also require I,I and J,J are both assigned to single sub-style
|
||||||
|
|
||||||
|
printf("IJ %d %d\n",i,j);
|
||||||
|
|
||||||
if (setflag[i][j] == 0) {
|
if (setflag[i][j] == 0) {
|
||||||
if (nmap[i][i] != 1 || nmap[j][j] != 1 || map[i][i][0] != map[j][j][0])
|
if (nmap[i][i] != 1 || nmap[j][j] != 1 || map[i][i][0] != map[j][j][0])
|
||||||
error->one(FLERR,"All pair coeffs are not set");
|
error->one(FLERR,"All pair coeffs are not set");
|
||||||
|
|||||||
Reference in New Issue
Block a user