|
PolyFEM
|
#include <filesystem>#include <CLI/CLI.hpp>#include <polyfem/State.hpp>#include <polyfem/utils/JSONUtils.hpp>#include <polyfem/utils/Logger.hpp>#include <polyfem/varforms/VarForm.hpp>#include <polyfem/io/ResourceIO.hpp>#include <polyfem/io/InputLoader.hpp>#include <polyfem/io/Checkpoint.hpp>Go to the source code of this file.
Functions | |
| bool | has_arg (const CLI::App &command_line, const std::string &value) |
| int | forward_simulation (const CLI::App &command_line, const io::ResourceIO &resources, const std::string &output_dir, const unsigned max_threads, const bool is_strict, const bool fallback_solver, const spdlog::level::level_enum &log_level, json &in_args) |
| int | forward_simulation (const CLI::App &command_line, const io::CheckpointReader &checkpoint, const std::string &output_dir, unsigned max_threads, bool is_strict, bool fallback_solver, const spdlog::level::level_enum &log_level, json &in_args) |
| int | run_forward_simulation (State &state) |
| int | forward_simulation_with_varform_state (const io::ResourceIO &resources, json &in_args, const bool is_strict) |
| int | forward_simulation_with_varform_state (const io::CheckpointReader &checkpoint, const json &in_args, const bool is_strict) |
| int | main (int argc, char **argv) |
| int forward_simulation | ( | const CLI::App & | command_line, |
| const io::CheckpointReader & | checkpoint, | ||
| const std::string & | output_dir, | ||
| unsigned | max_threads, | ||
| bool | is_strict, | ||
| bool | fallback_solver, | ||
| const spdlog::level::level_enum & | log_level, | ||
| json & | in_args | ||
| ) |
Definition at line 239 of file main.cpp.
References forward_simulation_with_varform_state(), and has_arg().
| int forward_simulation | ( | const CLI::App & | command_line, |
| const io::ResourceIO & | resources, | ||
| const std::string & | output_dir, | ||
| const unsigned | max_threads, | ||
| const bool | is_strict, | ||
| const bool | fallback_solver, | ||
| const spdlog::level::level_enum & | log_level, | ||
| json & | in_args | ||
| ) |
Definition at line 188 of file main.cpp.
References polyfem::io::CheckpointReader::config(), forward_simulation(), forward_simulation_with_varform_state(), has_arg(), polyfem::io::ResourceIO::host_directory(), and polyfem::logger().
Referenced by forward_simulation(), and main().
| int forward_simulation_with_varform_state | ( | const io::CheckpointReader & | checkpoint, |
| const json & | in_args, | ||
| const bool | is_strict | ||
| ) |
Definition at line 67 of file main.cpp.
References polyfem::State::init(), and run_forward_simulation().
| int forward_simulation_with_varform_state | ( | const io::ResourceIO & | resources, |
| json & | in_args, | ||
| const bool | is_strict | ||
| ) |
Definition at line 58 of file main.cpp.
References polyfem::State::init(), and run_forward_simulation().
Referenced by forward_simulation(), and forward_simulation().
| bool has_arg | ( | const CLI::App & | command_line, |
| const std::string & | value | ||
| ) |
Definition at line 20 of file main.cpp.
Referenced by forward_simulation(), and forward_simulation().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 94 of file main.cpp.
References polyfem::io::CheckpointReader::config(), polyfem::io::LoadedInput::config, forward_simulation(), polyfem::io::load_hdf5_input(), polyfem::io::load_json_input(), polyfem::io::load_yaml_input(), polyfem::log_and_throw_error(), and polyfem::io::LoadedInput::resources.
| int run_forward_simulation | ( | State & | state | ) |
Definition at line 76 of file main.cpp.
References polyfem::State::load_mesh(), polyfem::logger(), polyfem::State::solve(), polyfem::io::OutRuntimeData::total_time(), and polyfem::State::variational_formulation.
Referenced by forward_simulation_with_varform_state(), and forward_simulation_with_varform_state().