|
PolyFEM
|
#include <filesystem>#include <CLI/CLI.hpp>#include <polyfem/State.hpp>#include <polyfem/legacy/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>#include <polyfem/varforms/VarFormFactory.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 | forward_simulation_with_legacy_state (const std::vector< std::string > &names, const std::vector< Eigen::MatrixXi > &cells, const std::vector< Eigen::MatrixXd > &vertices, 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 289 of file main.cpp.
References forward_simulation_with_varform_state(), has_arg(), polyfem::log_and_throw_error(), polyfem::io::CheckpointReader::resources(), and polyfem::varform::uses_varform_state().
| 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 231 of file main.cpp.
References polyfem::io::CheckpointReader::config(), polyfem::io::ResourceIO::describe(), forward_simulation(), forward_simulation_with_legacy_state(), forward_simulation_with_varform_state(), has_arg(), polyfem::io::ResourceIO::host_directory(), polyfem::log_and_throw_error(), polyfem::logger(), and polyfem::varform::uses_varform_state().
Referenced by forward_simulation(), and main().
| int forward_simulation_with_legacy_state | ( | const std::vector< std::string > & | names, |
| const std::vector< Eigen::MatrixXi > & | cells, | ||
| const std::vector< Eigen::MatrixXd > & | vertices, | ||
| json & | in_args, | ||
| const bool | is_strict | ||
| ) |
Definition at line 96 of file main.cpp.
References polyfem::legacy::State::assemble_mass_mat(), polyfem::legacy::State::assemble_rhs(), polyfem::legacy::State::build_basis(), polyfem::legacy::State::compute_errors(), polyfem::io::OutStatsData::compute_mesh_stats(), polyfem::legacy::State::export_data(), polyfem::legacy::State::init(), polyfem::legacy::State::load_mesh(), polyfem::logger(), polyfem::legacy::State::mesh, polyfem::legacy::State::save_json(), polyfem::legacy::State::solve_problem(), polyfem::legacy::State::stats, polyfem::legacy::State::timings, and polyfem::io::OutRuntimeData::total_time().
Referenced by forward_simulation().
| int forward_simulation_with_varform_state | ( | const io::CheckpointReader & | checkpoint, |
| const json & | in_args, | ||
| const bool | is_strict | ||
| ) |
Definition at line 69 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 60 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 22 of file main.cpp.
Referenced by forward_simulation(), and forward_simulation().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 137 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 78 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().