refactor(sphere.msh): increased base resolution of spherical mesh

This commit is contained in:
2025-02-24 12:38:47 -05:00
parent de5c84f668
commit dfb65c1082
7 changed files with 16 additions and 6 deletions

View File

@@ -5,6 +5,9 @@
#include "polySolver.h"
#include "probe.h"
#include "config.h"
std::string CONFIG_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests/testsConfig.yaml";
class polyTest : public ::testing::Test {};
@@ -13,13 +16,16 @@ TEST_F(polyTest, DefaultConstructor) {
}
TEST_F(polyTest, Solve) {
Config& config = Config::getInstance();
config.loadConfig(CONFIG_FILENAME);
PolySolver polytrope(1.5, 1);
EXPECT_NO_THROW(polytrope.solve());
Probe::LogManager& logManager = Probe::LogManager::getInstance();
quill::Logger* logger = logManager.newFileLogger("polyTest.log", "polyTest");
LOG_INFO(logger, "Solving polytrope with n = 1.5, gamma = 1");
LOG_INFO(logger, "Solving polytrope with n = 1.5");
mfem::Mesh& mesh = polytrope.getMesh();
mfem::GridFunction& solution = polytrope.getSolution();
Probe::glVisView(solution, mesh, "Polytrope solution");
// Get the mesh radius
double radius = Probe::getMeshRadius(mesh);