forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14835 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
552da3c342
commit
e18f5a903b
|
@ -29,7 +29,7 @@ class PairTersoffZBL : public PairTersoff {
|
|||
PairTersoffZBL(class LAMMPS *);
|
||||
~PairTersoffZBL() {}
|
||||
|
||||
private:
|
||||
protected:
|
||||
double global_a_0; // Bohr radius for Coulomb repulsion
|
||||
double global_epsilon_0; // permittivity of vacuum for Coulomb repulsion
|
||||
double global_e; // proton charge (negative of electron charge)
|
||||
|
|
|
@ -368,7 +368,7 @@ FixGCMC::~FixGCMC()
|
|||
delete [] grouptypestrings[igroup];
|
||||
memory->sfree(grouptypestrings);
|
||||
}
|
||||
if (full_flag) {
|
||||
if (full_flag && group) {
|
||||
int igroupall = group->find("all");
|
||||
neighbor->exclusion_group_group_delete(exclusion_group,igroupall);
|
||||
}
|
||||
|
|
|
@ -441,7 +441,7 @@ ComputeChunkAtom::ComputeChunkAtom(LAMMPS *lmp, int narg, char **arg) :
|
|||
|
||||
nmax = 0;
|
||||
chunk = NULL;
|
||||
nmaxint = 0;
|
||||
nmaxint = -1;
|
||||
ichunk = NULL;
|
||||
exclude = NULL;
|
||||
|
||||
|
@ -1989,7 +1989,7 @@ void ComputeChunkAtom::set_arrays(int i)
|
|||
|
||||
double ComputeChunkAtom::memory_usage()
|
||||
{
|
||||
double bytes = 2*nmaxint * sizeof(int); // ichunk,exclude
|
||||
double bytes = 2*MAX(nmaxint,0) * sizeof(int); // ichunk,exclude
|
||||
bytes += nmax * sizeof(double); // chunk
|
||||
bytes += ncoord*nchunk * sizeof(double); // coord
|
||||
if (compress) bytes += nchunk * sizeof(int); // chunkID
|
||||
|
|
Loading…
Reference in New Issue