Skip to content

Commit

Permalink
Merge pull request #283 from cniethammer/unused-code-cleanup
Browse files Browse the repository at this point in the history
Unused interface cleanup for component and molecule class
  • Loading branch information
cniethammer authored Feb 12, 2024
2 parents 98d77b7 + e5212ef commit 610f51d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 20 deletions.
2 changes: 0 additions & 2 deletions src/molecules/AutoPasSimpleMolecule.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ class AutoPasSimpleMolecule final : public MoleculeInterface, public autopas::Pa

unsigned int numSites() const override { return 1; };

unsigned int numOrientedSites() const override { return 0; }

unsigned int numLJcenters() const override { return 1; }

unsigned int numCharges() const override { return 0; }
Expand Down
9 changes: 0 additions & 9 deletions src/molecules/Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,6 @@ void Component::write(std::ostream& ostrm) const {
ostrm << _Ipa[0] << " " << _Ipa[1] << " " << _Ipa[2] << std::endl;
}

void Component::writeVIM(std::ostream& ostrm) {
for (auto pos = _ljcenters.cbegin(); pos != _ljcenters.end(); ++pos) {
ostrm << "~ " << this->_id + 1 << " LJ " << std::setw(7) << pos->rx() << ' '
<< std::setw(7) << pos->ry() << ' ' << std::setw(7) << pos->rz() << ' '
<< std::setw(6) << pos->sigma() << ' ' << std::setw(2) << (1 + (this->_id % 9)) << "\n";
}
ostrm << std::flush;
}

std::ostream& operator<<(std::ostream& stream, const Component& component) {
component.write(stream);
return stream;
Expand Down
5 changes: 1 addition & 4 deletions src/molecules/Component.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class Component {
+ this->numDipoles()
+ this->numQuadrupoles();
}
/** get number of oriented interaction sites (dipoles and quadrupoles) */
unsigned int numOrientedSites() const { return numDipoles() + numQuadrupoles(); }

/** get number of Lennard Jones interaction sites */
unsigned int numLJcenters() const { return _ljcenters.size(); }
/** get number of charge interaction sites */
Expand Down Expand Up @@ -111,8 +110,6 @@ class Component {
/** write information to stream */
void write(std::ostream& ostrm) const;

void writeVIM(std::ostream& ostrm);

void setE_trans(double E) { _E_trans = E; }
void setE_rot(double E) { _E_rot = E; }
void setT(double T) { _T = T; }
Expand Down
1 change: 0 additions & 1 deletion src/molecules/FullMolecule.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ class FullMolecule : public MoleculeInterface {
*/
/** get number of sites */
unsigned int numSites() const override { return _component->numSites(); }
unsigned int numOrientedSites() const override { return _component->numOrientedSites(); }
unsigned int numLJcenters() const override { return _component->numLJcenters(); }
unsigned int numCharges() const override { return _component->numCharges(); }
unsigned int numDipoles() const override { return _component->numDipoles(); }
Expand Down
1 change: 0 additions & 1 deletion src/molecules/MoleculeInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ class MoleculeInterface {
virtual void setStartIndexSoA_Q(unsigned i) = 0;

virtual unsigned int numSites() const = 0;
virtual unsigned int numOrientedSites() const = 0;
virtual unsigned int numLJcenters() const = 0;
virtual unsigned int numCharges() const = 0;
virtual unsigned int numDipoles() const = 0;
Expand Down
3 changes: 0 additions & 3 deletions src/molecules/MoleculeRMM.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ class MoleculeRMM : public MoleculeInterface {
unsigned int numSites() const override {
return 1;
}
unsigned int numOrientedSites() const override {
return 0;
}
unsigned int numLJcenters() const override {
return 1;
}
Expand Down

0 comments on commit 610f51d

Please sign in to comment.