Unverified Commit 2499052a authored by Peter Doak's avatar Peter Doak Committed by GitHub
Browse files

Merge pull request #305 from PDoakORNL/fix_hdf5_chemical_potential_read

Fix hdf5 chemical potential read
parents 77c18a74 4e7ba8de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ public:
   *  file may have multiple iterations in it.
   *  Each iteration is a step in the adios file for many variables.
   */
  std::size_t getStepCount() { return file_.Steps(); }
  long getStepCount() { return file_.Steps(); }
  
  // `execute` returns true if the object is read correctly.

+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ public:

  std::string get_path() const;

  std::size_t getStepCount();
  long getStepCount();
  
  template <typename arbitrary_struct_t>
  static void from_file(arbitrary_struct_t& arbitrary_struct, std::string file_name);
+2 −1
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ public:

  void open_file(std::string file_name_ref, bool overwrite = true);
  void close_file();
  void legacy_close_file();
  
  bool open_group(std::string new_path);
  void close_group();
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ public:
  // the root group.
  bool close_group() noexcept;

  std::size_t getStepCount() { return 0; }
  long getStepCount() { return 0; }

  std::string get_path() { return {}; }
  
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public:
    std::visit([&](auto& var) { var.close_group(); }, reader_);
  }

  std::size_t getStepCount() {
  long getStepCount() {
    return std::visit([&](auto& var) ->std::size_t { return var.getStepCount(); }, reader_);
  }
  
Loading