Files
libconfig/tests/config/test_schema.h
Emily Boudreaux d4bbd9cb3a feat(loading): robust error reporting and mutation
cfg now reports which fields are missing when loading. Further, the mutate method has been added for easier mutation of the underlying configuration struct
2026-04-07 09:28:27 -04:00

32 lines
664 B
C++

#pragma once
#include <array>
#include <string>
struct PhysicsConfigOptions {
bool diffusion;
std::optional<bool> convection;
std::optional<bool> radiation;
std::array<int, 3> flags;
};
struct SimulationConfigOptions {
double time_step = 1;
double total_time = 10;
int output_frequency = 1;
};
struct OutputConfigOptions {
std::string directory = "./output";
std::string format = "hdf5";
std::optional<bool> save_plots = false;
};
struct TestConfigSchema {
std::string description;
std::string author;
PhysicsConfigOptions physics;
SimulationConfigOptions simulation;
OutputConfigOptions output;
};