Wildmeshing Toolkit
|
#include <Scheduler.hpp>
Public Member Functions | |
Scheduler () | |
~Scheduler () | |
SchedulerStats | run_operation_on_all (operations::Operation &op) |
SchedulerStats | run_operation_on_all (operations::Operation &op, const TypedAttributeHandle< char > &flag_handle) |
SchedulerStats | run_operation_on_all_coloring (operations::Operation &op, const TypedAttributeHandle< int64_t > &color_handle) |
const SchedulerStats & | stats () const |
void | set_update_frequency (std::optional< size_t > &&freq={}) |
Private Member Functions | |
void | log (const size_t total) |
void | log (const SchedulerStats &stats, const size_t total) |
Private Attributes | |
SchedulerStats | m_stats |
std::optional< size_t > | m_update_frequency = {} |
Definition at line 88 of file Scheduler.hpp.
|
default |
|
default |
|
private |
Definition at line 381 of file Scheduler.cpp.
References wmtk::SchedulerStats::number_of_performed_operations(), and wmtk::SchedulerStats::print_update_log().
|
private |
Definition at line 377 of file Scheduler.cpp.
Referenced by run_operation_on_all().
SchedulerStats wmtk::Scheduler::run_operation_on_all | ( | operations::Operation & | op | ) |
Definition at line 33 of file Scheduler.cpp.
References wmtk::SchedulerStats::collecting_time, wmtk::SchedulerStats::executing_time, wmtk::SchedulerStats::fail(), wmtk::Mesh::get_all(), wmtk::utils::get_random_seed(), log(), wmtk::logger(), m_stats, m_update_frequency, wmtk::operations::Operation::mesh(), wmtk::operations::Operation::primitive_type(), wmtk::SchedulerStats::print_update_log(), wmtk::operations::Operation::priority(), wmtk::SchedulerStats::sorting_time, wmtk::SchedulerStats::succeed(), wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector(), and wmtk::operations::Operation::use_random_priority().
Referenced by wmtk::components::internal::CDT_internal(), wmtk::components::isotropic_remeshing::isotropic_remeshing(), wmtk::components::longest_edge_split::longest_edge_split(), wmtk::components::internal::periodic_optimization(), wmtk::components::Marching::process(), wmtk::components::internal::RegularSpace::regularize_tags(), wmtk::components::shortest_edge_collapse::shortest_edge_collapse(), TEST_CASE(), wmtk::components::triangle_insertion::triangle_insertion(), wmtk::components::wildmeshing(), wmtk::components::internal::wildmeshing2d(), and wmtk::components::internal::wildmeshing3d().
SchedulerStats wmtk::Scheduler::run_operation_on_all | ( | operations::Operation & | op, |
const TypedAttributeHandle< char > & | flag_handle | ||
) |
Definition at line 110 of file Scheduler.cpp.
References wmtk::SchedulerStats::collecting_time, wmtk::Mesh::create_accessor(), wmtk::SchedulerStats::executing_time, wmtk::SchedulerStats::fail(), wmtk::Mesh::get_all(), wmtk::utils::get_random_seed(), log(), wmtk::logger(), m_stats, wmtk::operations::Operation::mesh(), wmtk::SchedulerStats::number_of_successful_operations(), wmtk::operations::Operation::primitive_type(), wmtk::operations::Operation::priority(), wmtk::SchedulerStats::sorting_time, wmtk::SchedulerStats::sub_stats, wmtk::SchedulerStats::succeed(), wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector(), and wmtk::operations::Operation::use_random_priority().
SchedulerStats wmtk::Scheduler::run_operation_on_all_coloring | ( | operations::Operation & | op, |
const TypedAttributeHandle< int64_t > & | color_handle | ||
) |
Definition at line 242 of file Scheduler.cpp.
References wmtk::SchedulerStats::collecting_time, wmtk::Mesh::create_accessor(), wmtk::first_available_color(), wmtk::Mesh::get_all(), wmtk::simplex::k_ring(), wmtk::simplex::link(), wmtk::logger(), wmtk::operations::Operation::mesh(), wmtk::operations::Operation::primitive_type(), wmtk::simplex::SimplexCollection::simplex_vector(), wmtk::Vertex, and wmtk::simplex::Simplex::vertex().
void wmtk::Scheduler::set_update_frequency | ( | std::optional< size_t > && | freq = {} | ) |
Definition at line 393 of file Scheduler.cpp.
Referenced by wmtk::components::wildmeshing(), wmtk::components::internal::wildmeshing2d(), and wmtk::components::internal::wildmeshing3d().
|
inline |
Definition at line 102 of file Scheduler.hpp.
References m_stats.
|
private |
Definition at line 107 of file Scheduler.hpp.
Referenced by run_operation_on_all(), and stats().
|
private |
Definition at line 108 of file Scheduler.hpp.
Referenced by run_operation_on_all().