refactor(serif): refactored entire codebase into serif and sub namespaces
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
#include "warning_control.h"
|
#include "warning_control.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Probe {
|
namespace serif::probe {
|
||||||
|
|
||||||
void pause() {
|
void pause() {
|
||||||
std::cout << "Execution paused. Please press enter to continue..."
|
std::cout << "Execution paused. Please press enter to continue..."
|
||||||
@@ -56,7 +56,7 @@ void wait(int seconds) {
|
|||||||
|
|
||||||
void glVisView(mfem::GridFunction& u, mfem::Mesh& mesh,
|
void glVisView(mfem::GridFunction& u, mfem::Mesh& mesh,
|
||||||
const std::string& windowTitle, const std::string& keyset) {
|
const std::string& windowTitle, const std::string& keyset) {
|
||||||
Config& config = Config::getInstance();
|
serif::config::Config& config = serif::config::Config::getInstance();
|
||||||
quill::Logger* logger = LogManager::getInstance().getLogger("log");
|
quill::Logger* logger = LogManager::getInstance().getLogger("log");
|
||||||
if (config.get<bool>("Probe:GLVis:Visualization", true)) {
|
if (config.get<bool>("Probe:GLVis:Visualization", true)) {
|
||||||
std::string usedKeyset;
|
std::string usedKeyset;
|
||||||
@@ -108,8 +108,8 @@ double getMeshRadius(mfem::Mesh& mesh) {
|
|||||||
std::pair<std::vector<double>, std::vector<double>> getRaySolution(mfem::GridFunction& u, mfem::Mesh& mesh,
|
std::pair<std::vector<double>, std::vector<double>> getRaySolution(mfem::GridFunction& u, mfem::Mesh& mesh,
|
||||||
const std::vector<double>& rayDirection,
|
const std::vector<double>& rayDirection,
|
||||||
int numSamples, std::string filename) {
|
int numSamples, std::string filename) {
|
||||||
Config& config = Config::getInstance();
|
serif::config::Config& config = serif::config::Config::getInstance();
|
||||||
Probe::LogManager& logManager = Probe::LogManager::getInstance();
|
serif::probe::LogManager& logManager = serif::probe::LogManager::getInstance();
|
||||||
quill::Logger* logger = logManager.getLogger("log");
|
quill::Logger* logger = logManager.getLogger("log");
|
||||||
LOG_INFO(logger, "Getting ray solution...");
|
LOG_INFO(logger, "Getting ray solution...");
|
||||||
// Check if the directory to write to exists
|
// Check if the directory to write to exists
|
||||||
@@ -204,7 +204,7 @@ std::pair<std::vector<double>, std::vector<double>> getRaySolution(mfem::Vector
|
|||||||
}
|
}
|
||||||
|
|
||||||
LogManager::LogManager() {
|
LogManager::LogManager() {
|
||||||
Config& config = Config::getInstance();
|
serif::config::Config& config = serif::config::Config::getInstance();
|
||||||
quill::Backend::start();
|
quill::Backend::start();
|
||||||
auto CLILogger = quill::Frontend::create_or_get_logger(
|
auto CLILogger = quill::Frontend::create_or_get_logger(
|
||||||
"root",
|
"root",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
/**
|
/**
|
||||||
* @brief The Probe namespace contains utility functions for debugging and logging.
|
* @brief The Probe namespace contains utility functions for debugging and logging.
|
||||||
*/
|
*/
|
||||||
namespace Probe {
|
namespace serif::probe {
|
||||||
/**
|
/**
|
||||||
* @brief Pause the execution and wait for user input.
|
* @brief Pause the execution and wait for user input.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user