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
Some checks failed
Build and Test / build-and-test-ubuntu (ubuntu-24.04) (push) Has been cancelled
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user