style issues
This commit is contained in:
@ -32,7 +32,7 @@ AtomVecMesoNT::AtomVecMesoNT(LAMMPS *lmp) : AtomVec(lmp)
|
|||||||
mass_type = 1;
|
mass_type = 1;
|
||||||
atom->mesont_flag = 1;
|
atom->mesont_flag = 1;
|
||||||
molecular = 0;
|
molecular = 0;
|
||||||
|
|
||||||
comm_x_only = comm_f_only = 1;
|
comm_x_only = comm_f_only = 1;
|
||||||
size_forward = 3;
|
size_forward = 3;
|
||||||
size_reverse = 3;
|
size_reverse = 3;
|
||||||
|
|||||||
@ -36,11 +36,11 @@ class ComputeMesoNT : public Compute {
|
|||||||
int pack_reverse_comm(int, int, double *);
|
int pack_reverse_comm(int, int, double *);
|
||||||
void unpack_reverse_comm(int, int *, double *);
|
void unpack_reverse_comm(int, int *, double *);
|
||||||
double memory_usage();
|
double memory_usage();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int nmax;
|
int nmax;
|
||||||
double *energy;
|
double *energy;
|
||||||
|
|
||||||
enum ComputeType {ES, EB, ET, ESTOT, EBTOT, ETTOT};
|
enum ComputeType {ES, EB, ET, ESTOT, EBTOT, ETTOT};
|
||||||
ComputeType compute_type;
|
ComputeType compute_type;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -109,7 +109,7 @@ Atom::Atom(LAMMPS *lmp) : Pointers(lmp)
|
|||||||
edpd_temp = edpd_flux = edpd_cv = NULL;
|
edpd_temp = edpd_flux = edpd_cv = NULL;
|
||||||
|
|
||||||
// USER-MESONT package
|
// USER-MESONT package
|
||||||
|
|
||||||
mesont_flag = 0;
|
mesont_flag = 0;
|
||||||
length = NULL;
|
length = NULL;
|
||||||
buckling = NULL;
|
buckling = NULL;
|
||||||
@ -378,7 +378,7 @@ Atom::~Atom()
|
|||||||
memory->sfree(molecules);
|
memory->sfree(molecules);
|
||||||
|
|
||||||
// USER-MESONT package
|
// USER-MESONT package
|
||||||
|
|
||||||
memory->destroy(length);
|
memory->destroy(length);
|
||||||
memory->destroy(buckling);
|
memory->destroy(buckling);
|
||||||
memory->destroy(bond_nt);
|
memory->destroy(bond_nt);
|
||||||
|
|||||||
Reference in New Issue
Block a user