pub trait ForceFieldContribution: Send + Sync {
// Required method
fn evaluate_energy_and_inject_gradient(
&self,
coords: &[f64],
grad: &mut [f64],
) -> f64;
}Expand description
Core interface for a molecular force-field contribution.
Required Methods§
Sourcefn evaluate_energy_and_inject_gradient(
&self,
coords: &[f64],
grad: &mut [f64],
) -> f64
fn evaluate_energy_and_inject_gradient( &self, coords: &[f64], grad: &mut [f64], ) -> f64
Evaluate the energy term and accumulate its Cartesian gradient contribution.