pub trait RefinementCriterion<F: IntegrateFloat>: Send + Sync {
// Required methods
fn evaluate(
&self,
cell: &AdaptiveCell<F>,
neighbors: &[&AdaptiveCell<F>],
) -> F;
fn name(&self) -> &'static str;
// Provided method
fn weight(&self) -> F { ... }
}Expand description
Trait for refinement criteria
Required Methods§
Sourcefn evaluate(&self, cell: &AdaptiveCell<F>, neighbors: &[&AdaptiveCell<F>]) -> F
fn evaluate(&self, cell: &AdaptiveCell<F>, neighbors: &[&AdaptiveCell<F>]) -> F
Evaluate refinement criterion for a cell