8#include <spdlog/spdlog.h>
40 bool strict_validation,
41 bool is_adjoint_optimization =
false);
44 void set_max_threads(
const int max_threads = std::numeric_limits<int>::max());
65 const std::string &log_file,
66 const spdlog::level::level_enum log_level,
67 const spdlog::level::level_enum file_log_level,
73 void init_logger(std::ostream &os,
const spdlog::level::level_enum log_level);
77 void set_log_level(
const spdlog::level::level_enum log_level);
81 void init_logger(
const std::vector<spdlog::sink_ptr> &sinks,
const spdlog::level::level_enum log_level);
89 void solve(Eigen::MatrixXd &sol);
100 void load_mesh(
bool non_conforming =
false,
101 const std::vector<std::string> &names = std::vector<std::string>(),
102 const std::vector<Eigen::MatrixXi> &cells = std::vector<Eigen::MatrixXi>(),
103 const std::vector<Eigen::MatrixXd> &vertices = std::vector<Eigen::MatrixXd>());
110 void load_mesh(GEO::Mesh &meshin,
const std::function<
int(
const size_t,
const std::vector<int> &,
const RowVectorNd &,
bool)> &boundary_marker,
bool non_conforming =
false,
bool skip_boundary_sideset =
false);
116 void load_mesh(
const Eigen::MatrixXd &
V,
const Eigen::MatrixXi &
F,
bool non_conforming =
false);
VarForm-only simulation state.
std::shared_ptr< varform::VarForm > variational_formulation
active variational formulation
void load_mesh(bool non_conforming=false, const std::vector< std::string > &names=std::vector< std::string >(), const std::vector< Eigen::MatrixXi > &cells=std::vector< Eigen::MatrixXi >(), const std::vector< Eigen::MatrixXd > &vertices=std::vector< Eigen::MatrixXd >())
loads the mesh from the json arguments
void init(const json &args, bool strict_validation, bool is_adjoint_optimization=false)
initialize the polyfem solver with a json settings
void solve(Eigen::MatrixXd &sol)
solves the problem, call other methods
void set_max_threads(const int max_threads=std::numeric_limits< int >::max())
spdlog::sink_ptr file_sink_
spdlog::sink_ptr console_sink_
logger sink to stdout
json args
main input arguments containing all defaults
void set_log_level(const spdlog::level::level_enum log_level)
change log level
std::function< void(int, int, double, double)> time_callback
Optional UI progress callback.
void init_logger(const std::string &log_file, const spdlog::level::level_enum log_level, const spdlog::level::level_enum file_log_level, const bool is_quiet)
initializing the logger
Eigen::Matrix< double, 1, Eigen::Dynamic, Eigen::RowMajor, 1, 3 > RowVectorNd