valueCorrector (1d, 2d, 3d)

Cleans a nodalArray of “bad” values. If a value in the array is below a basment value or is undefined (nan,inf etc), the value corrector sets the value to the basement value. Cleans every value in the output vector so if your output is length 6 it cleans all 6 components.

Data

out (string vector)
The variable that will be modified

Parameters

basementValue (float)
Minimum value the nodalArray is allowed to have. If the value drops below this then it will be reset to basementValue

Example

<Updater init>
  kind = valueCorrector1d
  onGrid = domain
  out = [q]
  basementValue = 1.0
</Updater>