Skip to contents

Mirrors the fire-calibration scratch root, with one extra constraint: the value is baked into the {targets} command at pipeline-definition time, so it must be STABLE across sessions. tempdir() is therefore not usable as the fallback – it would change every session and invalidate the run every time.

Usage

growth_calibration_work_root()

Value

Character path.

Details

Resolution order:

  1. LANDIS_GROWTH_SCRATCH, if set

  2. /mnt/scratch/<user>/<project>/landis-growth-calibration, when /mnt/scratch/<user> exists and is writable (the cluster convention)

  3. ~/.cache/landis-growth-calibration

The default of running in place is deliberately NOT used: in many deployments ./LANDIS-II/ is commonly a root-squashed NFS symlink, which Docker cannot bind-mount (the run dies with exit code 126). Staging on a local filesystem and letting tar_landis() archive the finished replicate back to the tracked scenario directory works on the workstation, the cluster, and a laptop alike.