refactor(stroid): changed default mesh format from VTU to MFEM
This commit is contained in:
@@ -52,23 +52,23 @@ struct OUTPUT_CONFIG {
|
|||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
fourdst::config::Config<stroid::config::MeshConfig> cfg;
|
fourdst::config::Config<stroid::config::MeshConfig> cfg;
|
||||||
OUTPUT_CONFIG out_cfg;
|
OUTPUT_CONFIG out_cfg;
|
||||||
MESH_FORMATS selected_format = MESH_FORMATS::VTU; // Default fallback
|
auto selected_format = MESH_FORMATS::MFEM;
|
||||||
|
|
||||||
CLI::App app{"stroid - A tool for generating multi-block meshes for stellar modeling"};
|
CLI::App app{"stroid - A tool for generating multi-block meshes for stellar modeling"};
|
||||||
|
|
||||||
app.footer(
|
app.footer(
|
||||||
"\nEXAMPLES:\n"
|
"\nEXAMPLES:\n"
|
||||||
" -> stroid generate -c config.toml -o star_mesh.vtu vtu\n"
|
"| stroid generate -c config.toml -o star_mesh.vtu vtu\n"
|
||||||
" -> stroid generate --config config.toml --view --no-save\n"
|
"| stroid generate --config config.toml --view --no-save\n"
|
||||||
" -> stroid info --version\n"
|
"| stroid info --version\n"
|
||||||
" -> stroid info --default\n"
|
"| stroid info --default\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
auto* generate = app.add_subcommand("generate", "Generate a multi-block mesh");
|
auto* generate = app.add_subcommand("generate", "Generate a multi-block mesh");
|
||||||
auto* info = app.add_subcommand("info", "Access information about stroid");
|
auto* info = app.add_subcommand("info", "Access information about stroid");
|
||||||
|
|
||||||
std::optional<std::string> config_filename;
|
std::optional<std::string> config_filename;
|
||||||
std::string output_filename = "stroid";
|
std::string output_filename = "stroid.mesh";
|
||||||
bool view_mesh = false;
|
bool view_mesh = false;
|
||||||
bool no_save = false;
|
bool no_save = false;
|
||||||
std::string glvis_host = "localhost";
|
std::string glvis_host = "localhost";
|
||||||
|
|||||||
Reference in New Issue
Block a user