Skip to contents

Runs the model from initial state to `snapshot_time` and stores the full model state plus RNG state. The snapshot can then be reused to branch multiple counterfactual futures with identical history.

Usage

chlaa_snapshot_create(
  pars,
  snapshot_time,
  n_particles = 1,
  dt = 0.25,
  seed = 1,
  n_threads = 1,
  deterministic = FALSE
)

Arguments

pars

Parameter list.

snapshot_time

Time to snapshot.

n_particles

Number of particles.

dt

Model time step.

seed

RNG seed.

n_threads

Threads for dust2.

deterministic

Deterministic mode (if supported).

Value

A list of class `chlaa_snapshot`.