pub struct LammpsLogHandler { /* private fields */ }Expand description
LAMMPS-style screen log for packing runs.
Most users should enable this through
Molpack::with_lammps_output
or Molpack::with_log_level
instead of attaching the handler manually.
Implementations§
Trait Implementations§
Source§impl Handler for LammpsLogHandler
impl Handler for LammpsLogHandler
Source§fn on_start(&mut self, ntotat: usize, ntotmol: usize)
fn on_start(&mut self, ntotat: usize, ntotmol: usize)
Called immediately at the start of
pack,
before any computation. Use this for immediate user feedback.Source§fn on_initialized(&mut self, sys: &PackContext)
fn on_initialized(&mut self, sys: &PackContext)
Called once after initialization completes, with valid
xcart positions.
Use this to write the initial conformation (e.g. XYZHandler).Source§fn on_phase_start(&mut self, info: &PhaseInfo)
fn on_phase_start(&mut self, info: &PhaseInfo)
Called at the start of each packing phase (per-type and all-types).
Allows stateful handlers to reset between phases.
Source§fn on_step(&mut self, info: &StepInfo, _sys: &PackContext)
fn on_step(&mut self, info: &StepInfo, _sys: &PackContext)
Called after each outer optimization loop iteration.
Source§fn on_phase_end(&mut self, info: &PhaseInfo, report: &PhaseReport)
fn on_phase_end(&mut self, info: &PhaseInfo, report: &PhaseReport)
Called at the end of each packing phase, with a summary report. Read more
Source§fn on_finish(&mut self, sys: &PackContext)
fn on_finish(&mut self, sys: &PackContext)
Called once after the packing loop finishes (convergence or max loops).
Source§fn should_stop(&self) -> bool
fn should_stop(&self) -> bool
Return
true to request early termination of the packing loop.Source§fn on_inner_iter(&mut self, _iter: u32, _f: F, _sys: &PackContext)
fn on_inner_iter(&mut self, _iter: u32, _f: F, _sys: &PackContext)
Auto Trait Implementations§
impl Freeze for LammpsLogHandler
impl RefUnwindSafe for LammpsLogHandler
impl Send for LammpsLogHandler
impl Sync for LammpsLogHandler
impl Unpin for LammpsLogHandler
impl UnsafeUnpin for LammpsLogHandler
impl UnwindSafe for LammpsLogHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more