reset

GenericTransport.reset(bcs=False, results=True)[source]

Resets the algorithm to enable re-use.

This allows the reuse of an algorithm inside a for-loop for parametric studies. The default behavior means that only alg.reset() and alg.run() must be called inside a loop. To reset the algorithm more completely requires overriding the default arguments.

Parameters
  • results (bool) – If True all previously calculated values pertaining to results of the algorithm are removed. The default value is True.

  • bcs (bool) – If True all previous boundary conditions are removed.