Function wafer::potential::potential[][src]

fn potential(config: &Config, idx: &Index3) -> Result<R64, Error>

Generates a potential for the current simulation at a particular index point.

Arguments

Returns

A double with the potential value at the requested index, or an error if the function is called for an invalid potential type.