Skip to contents

Define `plotMassBalance` task and its settings

Usage

loadPlotMassBalanceTask(workflow, active = FALSE, settings = NULL)

Arguments

workflow

`MeanModelWorkflow` object

active

logical defining if `Task` will be run by workflow. Default value is `FALSE`

settings

specific settings for `plotMassBalance` task

Value

A `PlotTask` object

Examples

if (FALSE) { # \dontrun{

# A workflow object needs to be created first
myWorkflow <- MeanModelWorkflow$new(workflowFolder, simulationSets)

# (Re)load a default plotMassBalance task for workflow
myWorkflow$plotMassBalance <- loadPlotMassBalanceTask(
  workflow = myWorkflow,
  active = TRUE
)

# Load a user-defined simulation task for workflow
myWorkflow$userDefinedTasks[["plotMassBalance"]] <- loadPlotMassBalanceTask(
  workflow = myWorkflow,
  active = TRUE
)
} # }