Skip to content

Commit

Permalink
Add a generic output reader - use internal, then cclib, then OB
Browse files Browse the repository at this point in the history
Needs a bit more testing, but works okay for now

Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Sep 14, 2023
1 parent f9013e4 commit 539a955
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions avogadro/qtplugins/surfaces/surfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ namespace {
#include <avogadro/quantumio/gamessus.h>
#include <avogadro/quantumio/gaussiancube.h>
#include <avogadro/quantumio/gaussianfchk.h>
#include <avogadro/quantumio/genericoutput.h>
#include <avogadro/quantumio/molden.h>
#include <avogadro/quantumio/mopacaux.h>
#include <avogadro/quantumio/nwchemjson.h>
Expand Down Expand Up @@ -89,6 +90,7 @@ Surfaces::Surfaces(QObject* p) : ExtensionPlugin(p), d(new PIMPL())
Io::FileFormatManager::registerFormat(new QuantumIO::GAMESSUSOutput);
Io::FileFormatManager::registerFormat(new QuantumIO::GaussianFchk);
Io::FileFormatManager::registerFormat(new QuantumIO::GaussianCube);
Io::FileFormatManager::registerFormat(new QuantumIO::GenericOutput);
Io::FileFormatManager::registerFormat(new QuantumIO::MoldenFile);
Io::FileFormatManager::registerFormat(new QuantumIO::MopacAux);
Io::FileFormatManager::registerFormat(new QuantumIO::NWChemJson);
Expand Down
2 changes: 2 additions & 0 deletions avogadro/quantumio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ avogadro_headers(QuantumIO
gamessus.h
gaussianfchk.h
gaussiancube.h
genericoutput.h
molden.h
mopacaux.h
nwchemjson.h
Expand All @@ -16,6 +17,7 @@ target_sources(QuantumIO PRIVATE
gamessus.cpp
gaussianfchk.cpp
gaussiancube.cpp
genericoutput.cpp
molden.cpp
mopacaux.cpp
nwchemjson.cpp
Expand Down
2 changes: 0 additions & 2 deletions avogadro/quantumio/gamessus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ std::vector<std::string> GAMESSUSOutput::fileExtensions() const
std::vector<std::string> extensions;
extensions.emplace_back("gamout");
extensions.emplace_back("gamess");
extensions.emplace_back("log");
extensions.emplace_back("out");
return extensions;
}

Expand Down
2 changes: 0 additions & 2 deletions avogadro/quantumio/nwchemlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ NWChemLog::~NWChemLog()
std::vector<std::string> NWChemLog::fileExtensions() const
{
std::vector<std::string> extensions;
extensions.emplace_back("log");
extensions.emplace_back("out");
extensions.emplace_back("nwchem");
return extensions;
}
Expand Down
3 changes: 1 addition & 2 deletions avogadro/quantumio/orca.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ ORCAOutput::~ORCAOutput() {}
std::vector<std::string> ORCAOutput::fileExtensions() const
{
std::vector<std::string> extensions;
extensions.emplace_back("log");
extensions.emplace_back("out");
extensions.emplace_back("orca");
return extensions;
}

Expand Down

0 comments on commit 539a955

Please sign in to comment.