19 lines
580 B
Diff
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)) {
|