Unverified Commit 1e6e2378 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid bogus error exit when openting potential files without units

parent e6c4036a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1033,7 +1033,7 @@ FILE *Force::open_potential(const char *name, int *auto_convert)
        return nullptr;
      }
    } else {
      if (units == unit_style) {
      if (units.empty() || units == unit_style) {
        *auto_convert = utils::NOCONVERT;
      } else {
        if ((units == "metal") && (unit_style == "real")