refactor(serif): refactored entire codebase into serif and sub namespaces

This commit is contained in:
2025-06-11 14:49:11 -04:00
parent c5296dd2e6
commit 81323d60a0
4 changed files with 17 additions and 17 deletions

View File

@@ -53,7 +53,7 @@ typedef boost::numeric::ublas::matrix< double > matrix_type;
*/
typedef std::array<double,7> vec7;
namespace nnApprox8{
namespace serif::network::approx8{
using namespace boost::numeric::odeint;
@@ -294,14 +294,14 @@ namespace nnApprox8{
* @class Approx8Network
* @brief Class for the Approx8 nuclear reaction network.
*/
class Approx8Network : public nuclearNetwork::Network {
class Approx8Network : public Network {
public:
/**
* @brief Evaluates the nuclear network.
* @param netIn Input parameters for the network.
* @return Output results from the network.
*/
virtual nuclearNetwork::NetOut evaluate(const nuclearNetwork::NetIn &netIn);
virtual NetOut evaluate(const NetIn &netIn);
/**
* @brief Sets whether the solver should use a stiff method.
@@ -325,7 +325,7 @@ namespace nnApprox8{
* @param netIn Input parameters for the network.
* @return Internal state vector.
*/
vector_type convert_netIn(const nuclearNetwork::NetIn &netIn);
vector_type convert_netIn(const NetIn &netIn);
};
} // namespace nnApprox8

View File

@@ -26,7 +26,7 @@
#include "config.h"
#include "quill/Logger.h"
namespace nuclearNetwork {
namespace serif::network {
/**
* @struct NetIn
@@ -102,8 +102,8 @@ namespace nuclearNetwork {
virtual NetOut evaluate(const NetIn &netIn);
protected:
Config& m_config; ///< Configuration instance
Probe::LogManager& m_logManager; ///< Log manager instance
serif::config::Config& m_config; ///< Configuration instance
serif::probe::LogManager& m_logManager; ///< Log manager instance
quill::Logger* m_logger; ///< Logger instance
};