pub struct AmgOptions {
pub strength_threshold: f64,
pub max_levels: usize,
pub max_coarse: usize,
pub smooth_omega: f64,
pub pre_sweeps: usize,
pub post_sweeps: usize,
}Expand description
Tunable parameters for the smoothed-aggregation setup and the V-cycle.
Fields§
§strength_threshold: f64Strength-of-connection threshold θ (e.g. 0.08).
max_levels: usizeMaximum number of levels (including the finest) before forcing a coarse solve.
max_coarse: usizeStop coarsening once the operator order is ≤ max_coarse.
smooth_omega: f64Prolongator-smoothing weight numerator; the effective Jacobi weight is
smooth_omega / ρ̂(D⁻¹A) (e.g. smooth_omega = 4/3).
pre_sweeps: usizeNumber of pre-smoothing sweeps per level.
post_sweeps: usizeNumber of post-smoothing sweeps per level.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AmgOptions
impl RefUnwindSafe for AmgOptions
impl Send for AmgOptions
impl Sync for AmgOptions
impl Unpin for AmgOptions
impl UnsafeUnpin for AmgOptions
impl UnwindSafe for AmgOptions
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