add_forcing_args: Add Default Argument to Forcing Function Calls

Description Usage Arguments Value

Description

This function edits calls to time dependent forcing functions, e.g. 'foo(time)' to contain an additional parameter for defaults, e.g. 'foo(time, const_foo)', so that forcing functions can be handled as constant parameters, e.g. for model coupling in 'stop-and-go' mode.

Usage

1
add_forcing_args(expr, forc, prefix = "forc_")

Arguments

expr

character vector of model expressions (processes or stoichiometry)

forc

character vector or forcing functions for which an additional argument is to be inserted

prefix

prefix preceeding the generated argument name

Value

vector of modified model expressions


tpetzoldt/rodeoExt documentation built on May 31, 2019, 6:48 p.m.