fix(engine_defined): fixed gcc build warnings
This commit is contained in:
@@ -359,7 +359,6 @@ namespace gridfire::engine {
|
|||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using LogManager = LogManager;
|
|
||||||
Config<config::GridFireConfig> m_config;
|
Config<config::GridFireConfig> m_config;
|
||||||
|
|
||||||
quill::Logger* m_logger = LogManager::getInstance().getLogger("log");
|
quill::Logger* m_logger = LogManager::getInstance().getLogger("log");
|
||||||
@@ -367,4 +366,4 @@ namespace gridfire::engine {
|
|||||||
///< Parser for the network file.
|
///< Parser for the network file.
|
||||||
const io::NetworkFileParser& m_parser;
|
const io::NetworkFileParser& m_parser;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[wrap-git]
|
[wrap-git]
|
||||||
url = https://github.com/4D-STAR/fourdst
|
url = https://github.com/4D-STAR/fourdst
|
||||||
revision = v0.9.18
|
revision = v0.9.19
|
||||||
depth = 1
|
depth = 1
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ int main() {
|
|||||||
std::array<NetIn, nZones> netIns;
|
std::array<NetIn, nZones> netIns;
|
||||||
for (size_t zone = 0; zone < nZones; ++zone) {
|
for (size_t zone = 0; zone < nZones; ++zone) {
|
||||||
netIns[zone] = netIn;
|
netIns[zone] = netIn;
|
||||||
netIns[zone].temperature = 1.0e7;
|
netIns[zone].temperature = 1.5e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
const solver::PointSolver localSolver(engine);
|
const solver::PointSolver localSolver(engine);
|
||||||
@@ -256,4 +256,4 @@ int main() {
|
|||||||
const solver::GridSolver gridSolver(engine, localSolver);
|
const solver::GridSolver gridSolver(engine, localSolver);
|
||||||
|
|
||||||
std::vector<NetOut> netOuts = gridSolver.evaluate(solverCtx, netIns | std::ranges::to<std::vector>());
|
std::vector<NetOut> netOuts = gridSolver.evaluate(solverCtx, netIns | std::ranges::to<std::vector>());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -346,25 +346,15 @@ int main(int argc, char** argv) {
|
|||||||
double temp = 1.5e7;
|
double temp = 1.5e7;
|
||||||
double rho = 1.5e2;
|
double rho = 1.5e2;
|
||||||
double tMax = 3.1536e+16;
|
double tMax = 3.1536e+16;
|
||||||
double X = 0.7;
|
|
||||||
double Z = 0.02;
|
|
||||||
|
|
||||||
|
|
||||||
CLI::App app("GridFire Quick CLI Test");
|
CLI::App app("GridFire Quick CLI Test");
|
||||||
// Add temp, rho, and tMax as options if desired
|
|
||||||
app.add_option("--temp", temp, "Initial Temperature")->default_val(std::format("{:5.2E}", temp));
|
app.add_option("--temp", temp, "Initial Temperature")->default_val(std::format("{:5.2E}", temp));
|
||||||
app.add_option("--rho", rho, "Initial Density")->default_val(std::format("{:5.2E}", rho));
|
app.add_option("--rho", rho, "Initial Density")->default_val(std::format("{:5.2E}", rho));
|
||||||
app.add_option("--tmax", tMax, "Maximum Time")->default_val(std::format("{:5.2E}", tMax));
|
app.add_option("--tmax", tMax, "Maximum Time")->default_val(std::format("{:5.2E}", tMax));
|
||||||
// app.add_option("--X", X, "Target Hydrogen Mass Fraction")->default_val(std::format("{:5.2f}", X));
|
|
||||||
// app.add_option("--Z", Z, "Target Metal Mass Fraction")->default_val(std::format("{:5.2f}", Z));
|
|
||||||
|
|
||||||
CLI11_PARSE(app, argc, argv);
|
CLI11_PARSE(app, argc, argv);
|
||||||
NetIn netIn = init(temp, rho, tMax);
|
NetIn netIn = init(temp, rho, tMax);
|
||||||
for (const auto& [sp, y] : netIn.composition) {
|
|
||||||
std::println("Species: {}, Abundance: {}", sp.name(), y);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
// netIn.composition = rescale(netIn.composition, X, Z);
|
|
||||||
|
|
||||||
policy::MainSequencePolicy stellarPolicy(netIn.composition);
|
policy::MainSequencePolicy stellarPolicy(netIn.composition);
|
||||||
auto [engine, ctx_template] = stellarPolicy.construct();
|
auto [engine, ctx_template] = stellarPolicy.construct();
|
||||||
@@ -374,4 +364,4 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
NetOut result = solver.evaluate(solver_context, netIn);
|
NetOut result = solver.evaluate(solver_context, netIn);
|
||||||
log_results(result, netIn);
|
log_results(result, netIn);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user