no more need to explicitly initialize empty fields

This commit is contained in:
Axel Kohlmeyer
2022-04-14 12:00:56 -04:00
parent b5eb5ac686
commit 095c610a3f
18 changed files with 0 additions and 46 deletions

View File

@ -35,14 +35,9 @@ AtomVecOxdna::AtomVecOxdna(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"id5p"}; fields_grow = {"id5p"};
fields_copy = {"id5p"}; fields_copy = {"id5p"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"id5p"}; fields_border = {"id5p"};
fields_border_vel = {};
fields_exchange = {"id5p"}; fields_exchange = {"id5p"};
fields_restart = {"id5p"}; fields_restart = {"id5p"};
fields_create = {};
fields_data_atom = {"id", "type", "x"}; fields_data_atom = {"id", "type", "x"};
fields_data_vel = {"id", "v"}; fields_data_vel = {"id", "v"};

View File

@ -62,8 +62,6 @@ AtomVecDielectric::AtomVecDielectric(LAMMPS *lmp) : AtomVec(lmp)
"improper_atom1", "improper_atom2", "improper_atom3", "improper_atom4", "nspecial", "special", "improper_atom1", "improper_atom2", "improper_atom3", "improper_atom4", "nspecial", "special",
"mu", "area", "ed", "em", "epsilon", "curvature", "q_unscaled"}; "mu", "area", "ed", "em", "epsilon", "curvature", "q_unscaled"};
fields_comm = {"q", "mu", "area", "ed", "em", "epsilon", "curvature", "q_unscaled"}; fields_comm = {"q", "mu", "area", "ed", "em", "epsilon", "curvature", "q_unscaled"};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"q", "molecule", "mu", "area", "ed", "em", "epsilon", "curvature", "q_unscaled"}; fields_border = {"q", "molecule", "mu", "area", "ed", "em", "epsilon", "curvature", "q_unscaled"};
fields_border_vel = {"q", "molecule", "mu", "area", "ed", "em", "epsilon", "curvature", fields_border_vel = {"q", "molecule", "mu", "area", "ed", "em", "epsilon", "curvature",
"q_unscaled"}; "q_unscaled"};

View File

@ -37,7 +37,6 @@ AtomVecDipole::AtomVecDipole(LAMMPS *lmp) : AtomVec(lmp)
fields_copy = {"q", "mu"}; fields_copy = {"q", "mu"};
fields_comm = {"mu3"}; fields_comm = {"mu3"};
fields_comm_vel = {"mu3"}; fields_comm_vel = {"mu3"};
fields_reverse = {};
fields_border = {"q", "mu"}; fields_border = {"q", "mu"};
fields_border_vel = {"q", "mu"}; fields_border_vel = {"q", "mu"};
fields_exchange = {"q", "mu"}; fields_exchange = {"q", "mu"};

View File

@ -41,7 +41,6 @@ AtomVecDPD::AtomVecDPD(LAMMPS *lmp) : AtomVec(lmp)
fields_copy = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"}; fields_copy = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"};
fields_comm = {"dpdTheta", "uCond", "uMech", "uChem"}; fields_comm = {"dpdTheta", "uCond", "uMech", "uChem"};
fields_comm_vel = {"dpdTheta", "uCond", "uMech", "uChem"}; fields_comm_vel = {"dpdTheta", "uCond", "uMech", "uChem"};
fields_reverse = {};
fields_border = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"}; fields_border = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"};
fields_border_vel = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"}; fields_border_vel = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"};
fields_exchange = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"}; fields_exchange = {"dpdTheta", "uCond", "uMech", "uChem", "uCG", "uCGnew"};

View File

@ -34,9 +34,6 @@ AtomVecMesoNT::AtomVecMesoNT(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"}; fields_grow = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"};
fields_copy = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"}; fields_copy = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"}; fields_border = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"};
fields_border_vel = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"}; fields_border_vel = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"};
fields_exchange = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"}; fields_exchange = {"rmass", "radius", "length", "buckling", "bond_nt", "molecule"};

View File

@ -37,9 +37,6 @@ AtomVecAngle::AtomVecAngle(LAMMPS *lmp) : AtomVec(lmp)
fields_copy = {"molecule", "num_bond", "bond_type", "bond_atom", fields_copy = {"molecule", "num_bond", "bond_type", "bond_atom",
"num_angle", "angle_type", "angle_atom1", "angle_atom2", "num_angle", "angle_type", "angle_atom1", "angle_atom2",
"angle_atom3", "nspecial", "special"}; "angle_atom3", "nspecial", "special"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"molecule"}; fields_border = {"molecule"};
fields_border_vel = {"molecule"}; fields_border_vel = {"molecule"};
fields_exchange = {"molecule", "num_bond", "bond_type", "bond_atom", fields_exchange = {"molecule", "num_bond", "bond_type", "bond_atom",

View File

@ -33,9 +33,6 @@ AtomVecBond::AtomVecBond(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"molecule", "num_bond", "bond_type", "bond_atom", "nspecial", "special"}; fields_grow = {"molecule", "num_bond", "bond_type", "bond_atom", "nspecial", "special"};
fields_copy = {"molecule", "num_bond", "bond_type", "bond_atom", "nspecial", "special"}; fields_copy = {"molecule", "num_bond", "bond_type", "bond_atom", "nspecial", "special"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"molecule"}; fields_border = {"molecule"};
fields_border_vel = {"molecule"}; fields_border_vel = {"molecule"};
fields_exchange = {"molecule", "num_bond", "bond_type", "bond_atom", "nspecial", "special"}; fields_exchange = {"molecule", "num_bond", "bond_type", "bond_atom", "nspecial", "special"};

View File

@ -40,9 +40,6 @@ AtomVecFull::AtomVecFull(LAMMPS *lmp) : AtomVec(lmp)
"angle_atom1", "angle_atom2", "angle_atom3", "num_dihedral", "dihedral_type", "dihedral_atom1", "angle_atom1", "angle_atom2", "angle_atom3", "num_dihedral", "dihedral_type", "dihedral_atom1",
"dihedral_atom2", "dihedral_atom3", "dihedral_atom4", "num_improper", "improper_type", "dihedral_atom2", "dihedral_atom3", "dihedral_atom4", "num_improper", "improper_type",
"improper_atom1", "improper_atom2", "improper_atom3", "improper_atom4", "nspecial", "special"}; "improper_atom1", "improper_atom2", "improper_atom3", "improper_atom4", "nspecial", "special"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"q", "molecule"}; fields_border = {"q", "molecule"};
fields_border_vel = {"q", "molecule"}; fields_border_vel = {"q", "molecule"};
fields_exchange = {"q", "molecule", "num_bond", "bond_type", "bond_atom", fields_exchange = {"q", "molecule", "num_bond", "bond_type", "bond_atom",

View File

@ -40,9 +40,6 @@ AtomVecMolecular::AtomVecMolecular(LAMMPS *lmp) : AtomVec(lmp)
"angle_atom1", "angle_atom2", "angle_atom3", "num_dihedral", "dihedral_type", "dihedral_atom1", "angle_atom1", "angle_atom2", "angle_atom3", "num_dihedral", "dihedral_type", "dihedral_atom1",
"dihedral_atom2", "dihedral_atom3", "dihedral_atom4", "num_improper", "improper_type", "dihedral_atom2", "dihedral_atom3", "dihedral_atom4", "num_improper", "improper_type",
"improper_atom1", "improper_atom2", "improper_atom3", "improper_atom4", "nspecial", "special"}; "improper_atom1", "improper_atom2", "improper_atom3", "improper_atom4", "nspecial", "special"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"molecule"}; fields_border = {"molecule"};
fields_border_vel = {"molecule"}; fields_border_vel = {"molecule"};
fields_exchange = {"molecule", "num_bond", "bond_type", "bond_atom", "num_angle", "angle_type", fields_exchange = {"molecule", "num_bond", "bond_type", "bond_atom", "num_angle", "angle_type",

View File

@ -37,9 +37,6 @@ AtomVecTemplate::AtomVecTemplate(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"molecule", "molindex", "molatom"}; fields_grow = {"molecule", "molindex", "molatom"};
fields_copy = {"molecule", "molindex", "molatom"}; fields_copy = {"molecule", "molindex", "molatom"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"molecule", "molindex", "molatom"}; fields_border = {"molecule", "molindex", "molatom"};
fields_border_vel = {"molecule", "molindex", "molatom"}; fields_border_vel = {"molecule", "molindex", "molatom"};
fields_exchange = {"molecule", "molindex", "molatom"}; fields_exchange = {"molecule", "molindex", "molatom"};

View File

@ -57,7 +57,6 @@ AtomVecPeri::AtomVecPeri(LAMMPS *lmp) : AtomVec(lmp)
fields_copy = {"rmass", "vfrac", "s0", "x0"}; fields_copy = {"rmass", "vfrac", "s0", "x0"};
fields_comm = {"s0"}; fields_comm = {"s0"};
fields_comm_vel = {"s0"}; fields_comm_vel = {"s0"};
fields_reverse = {};
fields_border = {"rmass", "vfrac", "s0", "x0"}; fields_border = {"rmass", "vfrac", "s0", "x0"};
fields_border_vel = {"rmass", "vfrac", "s0", "x0"}; fields_border_vel = {"rmass", "vfrac", "s0", "x0"};
fields_exchange = {"rmass", "vfrac", "s0", "x0"}; fields_exchange = {"rmass", "vfrac", "s0", "x0"};

View File

@ -29,16 +29,6 @@ AtomVecAtomic::AtomVecAtomic(LAMMPS *lmp) : AtomVec(lmp)
// order of fields in a string does not matter // order of fields in a string does not matter
// except: fields_data_atom & fields_data_vel must match data file // except: fields_data_atom & fields_data_vel must match data file
fields_grow = {};
fields_copy = {};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {};
fields_border_vel = {};
fields_exchange = {};
fields_restart = {};
fields_create = {};
fields_data_atom = {"id", "type", "x"}; fields_data_atom = {"id", "type", "x"};
fields_data_vel = {"id", "v"}; fields_data_vel = {"id", "v"};

View File

@ -65,7 +65,6 @@ AtomVecBody::AtomVecBody(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"radius", "rmass", "angmom", "torque", "body"}; fields_grow = {"radius", "rmass", "angmom", "torque", "body"};
fields_copy = {"radius", "rmass", "angmom"}; fields_copy = {"radius", "rmass", "angmom"};
fields_comm = {};
fields_comm_vel = {"angmom"}; fields_comm_vel = {"angmom"};
fields_reverse = {"torque"}; fields_reverse = {"torque"};
fields_border = {"radius", "rmass"}; fields_border = {"radius", "rmass"};

View File

@ -32,9 +32,6 @@ AtomVecCharge::AtomVecCharge(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"q"}; fields_grow = {"q"};
fields_copy = {"q"}; fields_copy = {"q"};
fields_comm = {};
fields_comm_vel = {};
fields_reverse = {};
fields_border = {"q"}; fields_border = {"q"};
fields_border_vel = {"q"}; fields_border_vel = {"q"};
fields_exchange = {"q"}; fields_exchange = {"q"};

View File

@ -53,7 +53,6 @@ AtomVecEllipsoid::AtomVecEllipsoid(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"rmass", "angmom", "torque", "ellipsoid"}; fields_grow = {"rmass", "angmom", "torque", "ellipsoid"};
fields_copy = {"rmass", "angmom"}; fields_copy = {"rmass", "angmom"};
fields_comm = {};
fields_comm_vel = {"angmom"}; fields_comm_vel = {"angmom"};
fields_reverse = {"torque"}; fields_reverse = {"torque"};
fields_border = {"rmass"}; fields_border = {"rmass"};

View File

@ -55,7 +55,6 @@ AtomVecLine::AtomVecLine(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"molecule", "radius", "rmass", "omega", "torque", "line"}; fields_grow = {"molecule", "radius", "rmass", "omega", "torque", "line"};
fields_copy = {"molecule", "radius", "rmass", "omega"}; fields_copy = {"molecule", "radius", "rmass", "omega"};
fields_comm = {};
fields_comm_vel = {"omega"}; fields_comm_vel = {"omega"};
fields_reverse = {"torque"}; fields_reverse = {"torque"};
fields_border = {"molecule", "radius", "rmass"}; fields_border = {"molecule", "radius", "rmass"};

View File

@ -40,7 +40,6 @@ AtomVecSphere::AtomVecSphere(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"radius", "rmass", "omega", "torque"}; fields_grow = {"radius", "rmass", "omega", "torque"};
fields_copy = {"radius", "rmass", "omega"}; fields_copy = {"radius", "rmass", "omega"};
fields_comm = {};
fields_comm_vel = {"omega"}; fields_comm_vel = {"omega"};
fields_reverse = {"torque"}; fields_reverse = {"torque"};
fields_border = {"radius", "rmass"}; fields_border = {"radius", "rmass"};

View File

@ -58,7 +58,6 @@ AtomVecTri::AtomVecTri(LAMMPS *lmp) : AtomVec(lmp)
fields_grow = {"molecule", "radius", "rmass", "omega", "angmom", "torque", "tri"}; fields_grow = {"molecule", "radius", "rmass", "omega", "angmom", "torque", "tri"};
fields_copy = {"molecule", "radius", "rmass", "omega", "angmom"}; fields_copy = {"molecule", "radius", "rmass", "omega", "angmom"};
fields_comm = {};
fields_comm_vel = {"omega", "angmom"}; fields_comm_vel = {"omega", "angmom"};
fields_reverse = {"torque"}; fields_reverse = {"torque"};
fields_border = {"molecule", "radius", "rmass"}; fields_border = {"molecule", "radius", "rmass"};