AstroSimBase.emptyfunctionMethod

function emptyfunction(args...) end

Accept any outputs but doing nothing.

It is designed for initializing callback functions
AstroSimBase.need_to_interruptMethod

function needtointerrupt(OutputDir::String)

If there is a file named `stop` in folder `OutputDir`, return true; else, return `false`.

Keywords

  • remove: if true, remove the stop file asynchronously
  • delay: if true, wait for 0.1 second to avoid file locking error
AstroSimBase.randinMethod

function randin(T, a, b) function randin(a, b)

Generate uniform random number in [a,b]. It avoids error from rand(a:b) where a and b are Unitful.Quantity