Removed virtual keyword, defined internal variable
This commit is contained in:
@ -83,6 +83,7 @@ void AtomVecOxdna::data_atom_post(int ilocal)
|
||||
void AtomVecOxdna::data_bonds_post(int m, int num_bond, tagint atom1,
|
||||
tagint atom2, tagint id_offset)
|
||||
{
|
||||
int n;
|
||||
tagint *id5p = atom->id5p;
|
||||
|
||||
if (id_offset) {
|
||||
@ -90,7 +91,7 @@ void AtomVecOxdna::data_bonds_post(int m, int num_bond, tagint atom1,
|
||||
atom2 += id_offset;
|
||||
}
|
||||
|
||||
if ((m = atom->map(atom1)) >= 0) {
|
||||
id5p[m] = atom2;
|
||||
if ((n = atom->map(atom1)) >= 0) {
|
||||
id5p[n] = atom2;
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,8 +30,8 @@ class AtomVecOxdna : public AtomVec {
|
||||
~AtomVecOxdna();
|
||||
|
||||
void grow_pointers();
|
||||
virtual void data_bonds_post(int, int, tagint, tagint, tagint);
|
||||
void data_atom_post(int);
|
||||
void data_bonds_post(int, int, tagint, tagint, tagint);
|
||||
|
||||
private:
|
||||
tagint *id5p;
|
||||
|
||||
@ -56,7 +56,7 @@ class AtomVecHybrid : public AtomVec {
|
||||
void create_atom_post(int);
|
||||
void data_atom_post(int);
|
||||
|
||||
virtual void data_bonds_post(int, int, tagint, tagint, tagint);
|
||||
void data_bonds_post(int, int, tagint, tagint, tagint);
|
||||
|
||||
void pack_data_pre(int);
|
||||
void pack_data_post(int);
|
||||
|
||||
Reference in New Issue
Block a user