Commit 2028cb6f authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Implement ClusterOutputInfo::write_hdf5() and use it in np_cluster

parent bec5971d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -507,6 +507,7 @@ void cluster(const string& config_file, const string& data_file, const string& o
	delete cid_2;
      }
      delete p_scattering_angles;
      p_output->write(output_path + "/c_OCLU.hd5", "HDF5");
      p_output->write(output_path + "/c_OCLU", "LEGACY");
      delete p_output;
    } // closes s_nsph == nsph check
+2 −2
Original line number Diff line number Diff line
@@ -45,10 +45,10 @@ protected:
  
  /*! \brief Write the output to a HDF5 file.
   *
   * \param output: `const string &` Path to the output to be written.
   * \param file_name: `const string &` Path to the output to be written.
   * \return result: `int` Exit code (0 if successful).
   */
  int write_hdf5(const std::string &output);
  int write_hdf5(const std::string &file_name);
  
  /*! \brief Write the output to a legacy text file.
   *
+603 −6

File changed.

Preview size limit exceeded, changes collapsed.