Unverified Commit 24c3f1f7 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix logic bug triggering failures to read files without UNITS: tag

parent d4148b1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1026,7 +1026,7 @@ FILE *Force::open_potential(const char *name, int *auto_convert)
    }

    if (auto_convert == nullptr) {
      if (units != unit_style) {
      if (!units.empty() && (units != unit_style)) {
        error->one(FLERR, fmt::format("Potential file {} requires {} units "
                                      "but {} units are in use", name, units,
                                      unit_style));