fix(build): started bringing SERiF back up to speed with 4D-STAR C++
Some checks failed
Build and Test / build-and-test-ubuntu (ubuntu-24.04) (push) Has been cancelled

This commit is contained in:
2025-12-15 13:12:47 -05:00
parent d829a50032
commit 3117360d49
33 changed files with 150 additions and 126 deletions

View File

@@ -24,8 +24,8 @@
#include "quill/LogMacros.h"
#include "mfem.hpp"
#include "polySolver.h"
#include "logging.h"
#include "config.h"
#include "fourdst/logging/logging.h"
#include "fourdst/config/config.h"
std::string CONFIG_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests/testsConfig.yaml";
@@ -35,20 +35,16 @@ class polyTest : public ::testing::Test {};
TEST_F(polyTest, Solve) {
using namespace serif::polytrope;
fourdst::config::Config& config = fourdst::config::Config::getInstance();
config.loadConfig(CONFIG_FILENAME);
fourdst::logging::LogManager& logManager = fourdst::logging::LogManager::getInstance();
quill::Logger* logger = logManager.getLogger("log");
LOG_INFO(logger, "Starting polytrope solve test 1...");
config.loadConfig(CONFIG_FILENAME);
double polytropicIndex = config.get<double>("Tests:Poly:Index", 1);
LOG_INFO(logger, "Solving polytrope with n = {:0.2f}", polytropicIndex);
// LOG_INFO(logger, "Solving polytrope with n = {:0.2f}", 1);
PolySolver polytrope(polytropicIndex, 1);
PolySolver polytrope(1, 1);
LOG_INFO(logger, "Solving polytrope...");
EXPECT_NO_THROW(polytrope.solve());
LOG_INFO(logger, "Polytrope solved.");