GfsVariableFunction is used to create a variable holding the value of a given function. The function values are stored in all cells and new values are only computed once for newly-created cells. This can significantly decrease the computing cost compared to using a straight GfsFunction.
The syntax in parameter files is
[ GfsVariable ] [ GfsFunction ]
- Tsunami runup onto a complex three-dimensional beach
VariableFunction Zb1 bathy.gts