Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Jul 26, 2023
1 parent 49d8293 commit d6d488b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
24 changes: 10 additions & 14 deletions avogadro/quantumio/gaussianfchk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,23 @@

#include <iostream>

using std::vector;
using std::string;
using std::cout;
using std::endl;
using std::string;
using std::vector;

namespace Avogadro::QuantumIO {

using Core::Atom;
using Core::BasisSet;
using Core::GaussianSet;
using Core::Rhf;
using Core::Uhf;
using Core::Rohf;
using Core::Uhf;

GaussianFchk::GaussianFchk() : m_scftype(Rhf)
{
}
GaussianFchk::GaussianFchk() : m_scftype(Rhf) {}

GaussianFchk::~GaussianFchk()
{
}
GaussianFchk::~GaussianFchk() {}

std::vector<std::string> GaussianFchk::fileExtensions() const
{
Expand Down Expand Up @@ -307,7 +303,7 @@ vector<int> GaussianFchk::readArrayI(std::istream& in, unsigned int n)
return tmp;

vector<string> list = Core::split(line, ' ');
for (auto & i : list) {
for (auto& i : list) {
if (tmp.size() >= n) {
cout << "Too many variables read in. File may be inconsistent. "
<< tmp.size() << " of " << n << endl;
Expand Down Expand Up @@ -342,7 +338,7 @@ vector<double> GaussianFchk::readArrayD(std::istream& in, unsigned int n,

if (width == 0) { // we can split by spaces
vector<string> list = Core::split(line, ' ');
for (auto & i : list) {
for (auto& i : list) {
if (tmp.size() >= n) {
cout << "Too many variables read in. File may be inconsistent. "
<< tmp.size() << " of " << n << endl;
Expand Down Expand Up @@ -399,7 +395,7 @@ bool GaussianFchk::readDensityMatrix(std::istream& in, unsigned int n,

if (width == 0) { // we can split by spaces
vector<string> list = Core::split(line, ' ');
for (auto & k : list) {
for (auto& k : list) {
if (cnt >= n) {
cout << "Too many variables read in. File may be inconsistent. "
<< cnt << " of " << n << endl;
Expand Down Expand Up @@ -475,7 +471,7 @@ bool GaussianFchk::readSpinDensityMatrix(std::istream& in, unsigned int n,

if (width == 0) { // we can split by spaces
vector<string> list = Core::split(line, ' ');
for (auto & k : list) {
for (auto& k : list) {
if (cnt >= n) {
cout << "Too many variables read in. File may be inconsistent. "
<< cnt << " of " << n << endl;
Expand Down Expand Up @@ -570,4 +566,4 @@ void GaussianFchk::outputAll()
cout << endl << endl;
}
}
}
} // namespace Avogadro::QuantumIO
12 changes: 5 additions & 7 deletions avogadro/quantumio/molden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

#include <iostream>

using std::vector;
using std::string;
using std::cout;
using std::endl;
using std::string;
using std::vector;

namespace Avogadro::QuantumIO {

Expand All @@ -26,9 +26,7 @@ MoldenFile::MoldenFile()
{
}

MoldenFile::~MoldenFile()
{
}
MoldenFile::~MoldenFile() {}

std::vector<std::string> MoldenFile::fileExtensions() const
{
Expand Down Expand Up @@ -228,7 +226,7 @@ void MoldenFile::load(GaussianSet* basis)
if (m_MOcoeffs.size())
basis->setMolecularOrbitals(m_MOcoeffs);
if (m_orbitalEnergy.size())
basis->setOrbitalEnergy(m_orbitalEnergy);
basis->setMolecularOrbitalEnergy(m_orbitalEnergy);
}

void MoldenFile::outputAll()
Expand All @@ -243,4 +241,4 @@ void MoldenFile::outputAll()
cout << m_MOcoeff << "\t";
cout << endl;
}
}
} // namespace Avogadro::QuantumIO

0 comments on commit d6d488b

Please sign in to comment.