Skip to contents

These functions provide a unified interface for running external hydrodynamic or biogeochemical lake models from within R. Each function moves into the appropriate simulation directory, executes the model's command-line binary, prints progress messages, and reports whether the model run completed successfully. The functions are intended to be called for their side effects: they do not return model results directly, but instead produce model output files in the simulation folder.

Usage

run_dy_cd(sim_folder, verbose = FALSE, debug = FALSE, timeout = Inf)

run_glm_aed(sim_folder, verbose = FALSE, debug = FALSE, timeout = Inf)

run_gotm_wet(sim_folder, verbose = FALSE, debug = FALSE, timeout = Inf)

Arguments

sim_folder

the directory where simulation files are contained

verbose

Logical: Should output of model be shown

debug

Logical; save debug file. DYRESM only.

timeout

timeout in seconds, ignored if 0. This is a limit for the elapsed time running command in a separate process. Fractions of seconds are ignored.

Value

Invisibly returns `NULL`.