From e4f1450df0548527147f1e06303a469e419da0bb Mon Sep 17 00:00:00 2001 From: Rich FitzJohn Date: Wed, 2 Oct 2024 12:22:19 +0100 Subject: [PATCH] Change default number of particles --- R/interface.R | 5 +++-- man/dust_system_create.Rd | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/R/interface.R b/R/interface.R index e33735fd..1ce6026f 100644 --- a/R/interface.R +++ b/R/interface.R @@ -103,7 +103,8 @@ dust_system_generator <- function(name, time_type, default_dt, ##' system. If `n_groups` is 1 or more, then this must be a list of length ##' `n_groups` where each element is a list of parameters for your system. ##' -##' @param n_particles The number of particles to create. +##' @param n_particles The number of particles to create, defaulting +##' to a single particle ##' ##' @param n_groups Optionally, the number of parameter groups ##' @@ -141,7 +142,7 @@ dust_system_generator <- function(name, time_type, default_dt, ##' @return A `dust_system` object, with opaque format. ##' ##' @export -dust_system_create <- function(generator, pars, n_particles, n_groups = 1, +dust_system_create <- function(generator, pars, n_particles = 1, n_groups = 1, time = 0, dt = NULL, ode_control = NULL, seed = NULL, deterministic = FALSE, n_threads = 1, diff --git a/man/dust_system_create.Rd b/man/dust_system_create.Rd index b9eca91f..13d04b1d 100644 --- a/man/dust_system_create.Rd +++ b/man/dust_system_create.Rd @@ -7,7 +7,7 @@ dust_system_create( generator, pars, - n_particles, + n_particles = 1, n_groups = 1, time = 0, dt = NULL, @@ -27,7 +27,8 @@ dust_system_create( system. If \code{n_groups} is 1 or more, then this must be a list of length \code{n_groups} where each element is a list of parameters for your system.} -\item{n_particles}{The number of particles to create.} +\item{n_particles}{The number of particles to create, defaulting +to a single particle} \item{n_groups}{Optionally, the number of parameter groups}