openbabel/openbabel-2.3.0-obenergy-fflist.patch
Kevin Kofler d832d3c29a * Tue Mar 22 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.3.0-3
- fix plugin directory location (#680292, patch by lg)
- show forcefields list in obenergy output (#680292, patch by lg)
2011-03-22 22:57:13 +01:00

19 lines
580 B
Diff

--- openbabel-2.3.0_orig/tools/obenergy.cpp 2010-10-10 06:05:20.000000000 +0400
+++ openbabel-2.3.0/tools/obenergy.cpp 2011-03-19 18:58:18.000000000 +0300
@@ -40,6 +40,7 @@
int verbose = 0;
bool hydrogens = false;
string basename, filename = "", option, option2, ff = "";
+ OBConversion conv;
if (argc < 2) {
cout << "Usage: obenergy [options] <filename>" << endl;
@@ -89,7 +90,6 @@
}
// Find Input filetype
- OBConversion conv;
OBFormat *format_in = conv.FormatFromExt(filename.c_str());
if (!format_in || !conv.SetInFormat(format_in)) {