fix(eos-bindings): minor bug fixes to bring eos bindings up to main
specifically, renamed EosIO -> EOSio, and updated read_helm_table signature
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include <string>
|
||||
|
||||
namespace serif::eos {
|
||||
EOSio::EOSio(const std::string filename) : m_filename(filename) {
|
||||
EOSio::EOSio(const std::string &filename) : m_filename(filename) {
|
||||
load();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace serif::eos {
|
||||
>;
|
||||
|
||||
/**
|
||||
* @class EosIO
|
||||
* @class EOSio
|
||||
* @brief Handles the input/output operations for EOS tables.
|
||||
*
|
||||
* The EosIO class is responsible for loading and managing EOS tables from files.
|
||||
@@ -67,7 +67,7 @@ namespace serif::eos {
|
||||
* @brief Constructs an EosIO object with the given filename.
|
||||
* @param filename The filename of the EOS table.
|
||||
*/
|
||||
explicit EOSio(const std::string filename);
|
||||
explicit EOSio(const std::string &filename);
|
||||
|
||||
/**
|
||||
* @brief Default destructor.
|
||||
@@ -78,15 +78,15 @@ namespace serif::eos {
|
||||
* @brief Gets the format of the EOS table.
|
||||
* @return The format of the EOS table as a string.
|
||||
*/
|
||||
std::string getFormat() const;
|
||||
[[nodiscard]] std::string getFormat() const;
|
||||
|
||||
/**
|
||||
* @brief Gets the EOS table.
|
||||
* @return A reference to the EOS table.
|
||||
*/
|
||||
EOSTable& getTable();
|
||||
[[nodiscard]] EOSTable& getTable();
|
||||
|
||||
std::string getFilename() const { return m_filename; }
|
||||
[[nodiscard]] std::string getFilename() const { return m_filename; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -342,8 +342,8 @@ namespace serif::eos::helmholtz {
|
||||
* @param w1md Weight 1 for density (minus).
|
||||
* @return Result of the polynomial.
|
||||
*/
|
||||
double h3(double fi[36], double w0t, double w1t, double w0mt, double w1mt,
|
||||
double w0d, double w1d, double w0md, double w1md);
|
||||
double h3(const std::array<double, 36> &fi, const double w0t, const double w1t, const double w0mt, const double w1mt,
|
||||
const double w0d, const double w1d, const double w0md, const double w1md);
|
||||
|
||||
/**
|
||||
* @brief Interpolating polynomial function h5.
|
||||
@@ -362,16 +362,16 @@ namespace serif::eos::helmholtz {
|
||||
* @param w2md Weight 2 for density (minus).
|
||||
* @return Result of the polynomial.
|
||||
*/
|
||||
double h5(double fi[36], double w0t, double w1t, double w2t, double w0mt,
|
||||
double w1mt, double w2mt, double w0d, double w1d, double w2d,
|
||||
double w0md, double w1md, double w2md);
|
||||
double h5(const std::array<double, 36> &fi, const double w0t, const double w1t, const double w2t, const double w0mt,
|
||||
const double w1mt, const double w2mt, const double w0d, const double w1d, const double w2d,
|
||||
const double w0md, const double w1md, const double w2md);
|
||||
|
||||
/**
|
||||
* @brief Read the Helmholtz EOS table from a file.
|
||||
* @param filename Path to the file containing the table.
|
||||
* @return HELMTable structure containing the table data.
|
||||
*/
|
||||
std::unique_ptr<HELMTable> read_helm_table(const std::string filename);
|
||||
std::unique_ptr<HELMTable> read_helm_table(const std::string& filename);
|
||||
|
||||
/**
|
||||
* @brief Calculate the Helmholtz EOS components.
|
||||
|
||||
Reference in New Issue
Block a user