shamrock.utils.numba_helper.maybe_njit#

shamrock.utils.numba_helper.maybe_njit(fn)#

Apply numba.njit when numba is installed, and return fn unchanged otherwise.

Functions that are already jitted are returned as is, since numba refuses to jit a dispatcher a second time (e.g. a profile from shamrock.utils.disc_setup handed to one of the analysis plots).

Protoplanetary disc around a point mass in RAMSES solver

Protoplanetary disc around a point mass in RAMSES solver

Production run: Circular disc & central sink particle

Production run: Circular disc & central sink particle

Dusty settling SPH test

Dusty settling SPH test

Showcase smoothing length iteration algorithlm

Showcase smoothing length iteration algorithlm