foxes.algorithms.iterative.ConvVarDelta.check_converged(algo, prev_results, results, verbosity=0)[source]

Check convergence criteria.

Parameters

algo: foxes.core.Algorithm

The calculation algorithm

prev_results: xarray.Dataset

The farm results of previous iteration, or None if first

results: xarray.Dataset

The farm results of current iteration

verbosity: int

The verbosity level, 0 = silent

Returns

convergence: bool

Convergence flag, true if converged