R/CreateRunOptions.GRiwrmInputsModel.R

Defines functions CreateRunOptions.GRiwrmInputsModel

Documented in CreateRunOptions.GRiwrmInputsModel

#' @param IniStates (optional) [numeric] object or [list] of [numeric] object of class \emph{IniStates}, see [airGR::CreateIniStates] for details
#' @rdname CreateRunOptions
#' @export
CreateRunOptions.GRiwrmInputsModel <- function(x, IniStates = NULL, ...) {

  RunOptions <- list()
  class(RunOptions) <- append(class(RunOptions), "GRiwrmRunOptions")

  for (id in names(x)) {
    RunOptions[[id]] <- CreateRunOptions(x[[id]], IniStates = IniStates[[id]], ...)
    RunOptions[[id]]$id <- id
  }
  return(RunOptions)
}

Try the airGRiwrm package in your browser

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

airGRiwrm documentation built on Sept. 23, 2024, 1:08 a.m.