R/build_model_run.R

Defines functions build_model_run

#
# build_model_run.R
#
#' build model run
#'
#' build run time information from number of years
#'
#' @param nyears number of years to run the model
#'
#' @return model run object
#'
#' @noRd
#
# ------------------------------------------------------------------------------

build_model_run <- function(nyears) {

	output.interval	<- 1

	run	<- list(
		nyears		= nyears,				# for easy access
		ndays		= nyears*360+1,
		drndays		= nyears*12,
		times		= seq(0, nyears*360, by=output.interval),
		drtimes		= seq(15, nyears*360-15, by=30),
		sprectimes	= seq(0, nyears*360, by=1),
		daynum		= seq(0, 360, by=1)
	)

	run
}

Try the StrathE2E2 package in your browser

Any scripts or data that you put into this service are public.

StrathE2E2 documentation built on Jan. 23, 2021, 1:07 a.m.