faster, simpler, 'more completely random' way to do this

This commit is contained in:
jrgissing
2018-03-11 17:10:42 -06:00
parent a1483989d8
commit d413eb9eee
2 changed files with 93 additions and 88 deletions

View File

@ -43,7 +43,7 @@ class CreateAtoms : protected Pointers {
class Molecule *onemol;
class RanMars *ranmol;
class RanMars *ranbox;
int triclinic;
double sublo[3],subhi[3]; // epsilon-extended proc sub-box for adding atoms
@ -54,7 +54,7 @@ class CreateAtoms : protected Pointers {
void add_molecule(double *, double * = NULL);
int nlattpts; // number of eligible lattice points
int *Nmask; // used to insert N number of particles on lattice
int created_Nmask,nbox,nboxflag;
int ninsert,insertflag;
int vartest(double *); // evaluate a variable with new atom position
};