/// Check that all bond lengths are still reasonable.
///
/// NOTE: This can only really catch bonds that break.  It won't notice if any atoms have
/// moved into bonding range after the construction of `Interactions`.
///
/// Depending on the potential, may log warnings or return `Err` on really bad cases.
Check that all bond lengths are still reasonable.
NOTE: This can only really catch bonds that break.  It won't notice if any atoms have
moved into bonding range after the construction of `Interactions`.

Depending on the potential, may log warnings or return `Err` on really bad cases.
Check that all bond lengths are still reasonable . NOTE : This can only really catch bonds that break . It won ' t notice if any atoms have moved into bonding range after the construction of ` Interactions ` . Depending on the potential may log warnings or return ` Err ` on really bad cases .
pub fn check_distances(&self, coords: &Coords, use_rayon: bool) -> FailResult<()> {
        let bond_deltas = self.compute_bond_deltas(coords, use_rayon);
        for (bond_ij, delta_ij) in bond_deltas.iter_enumerated() {
            let type_i = self.site_type(self.bond_source(bond_ij));
            let type_j = self.site_type(self.bond_target(bond_ij));
            self.potential.check_distance(delta_ij.norm(), (type_i, type_j))?;
        }
        Ok(())
    }
pub fn check_distances ( & self , coords : & Coords , use_rayon : bool ) -> FailResult < ( ) > { let bond_deltas = self . compute_bond_deltas ( coords , use_rayon ) ; for ( bond_ij , delta_ij ) in bond_deltas . iter_enumerated ( ) { let type_i = self . site_type ( self . bond_source ( bond_ij ) ) ; let type_j = self . site_type ( self . bond_target ( bond_ij ) ) ; self . potential . check_distance ( delta_ij . norm ( ) , ( type_i , type_j ) ) ? ; } Ok ( ( ) ) }
Check that all bond lengths are still reasonable.
Check that all bond lengths are still reasonable .
&self
coords
&Coords
use_rayon
bool