30#include "quill/Logger.h"
45 void wait(
int seconds);
54 void glVisView(mfem::GridFunction& u, mfem::Mesh& mesh,
55 const std::string& windowTitle =
"grid function",
const std::string& keyset=
"");
64 void glVisView(mfem::Vector &vec, mfem::FiniteElementSpace &fes,
65 const std::string &windowTitle =
"vector",
const std::string& keyset=
"");
69 std::pair<std::vector<double>, std::vector<double>>
getRaySolution(mfem::GridFunction& u, mfem::Mesh& mesh,
70 const std::vector<double>& rayDirection,
int numSamples, std::string filename=
"");
72 std::pair<std::vector<double>, std::vector<double>>
getRaySolution(mfem::Vector &vec, mfem::FiniteElementSpace &fes,
73 const std::vector<double>& rayDirection,
int numSamples, std::string filename=
"");
113 quill::Logger*
getLogger(
const std::string& loggerName);
134 const std::string& loggerName);
LogManager()
Private constructor for singleton pattern.
quill::Logger * getLogger(const std::string &loggerName)
Get a logger by name.
LogManager & operator=(const LogManager &)=delete
std::vector< quill::Logger * > getLoggers()
Get all loggers.
quill::Logger * newFileLogger(const std::string &filename, const std::string &loggerName)
Create a new file logger.
static LogManager & getInstance()
Get the singleton instance of LogManager.
std::map< std::string, quill::Logger * > loggerMap
std::vector< std::string > getLoggerNames()
Get the names of all loggers.
LogManager(const LogManager &)=delete
The Probe namespace contains utility functions for debugging and logging.
double getMeshRadius(mfem::Mesh &mesh)
void wait(int seconds)
Wait for a specified number of seconds.
void glVisView(mfem::GridFunction &u, mfem::Mesh &mesh, const std::string &windowTitle, const std::string &keyset)
Visualize a solution using GLVis.
std::pair< std::vector< double >, std::vector< double > > getRaySolution(mfem::GridFunction &u, mfem::Mesh &mesh, const std::vector< double > &rayDirection, int numSamples, std::string filename)
void pause()
Pause the execution and wait for user input.