Learn R Programming

SpaDES.core (version 3.2.1)

.finishSimInit: Finish initialization of a simList after the .inputObjects phase

Description

The final part of .runInputObjectsPhase(): store the loaded modules, apply the user-supplied objects, inputs, and outputs, and check parameters. Split out for readability; it is reached on both the normal (simInit) and resumed (restartSimInit) paths, since both go through .runInputObjectsPhase().

Usage

.finishSimInit(sim, ctx, modulesLoaded)

Value

A finished simList.

Arguments

sim

A simList.

ctx

The context list stored at sim@.xData[["._simInitContext"]] during simInit (supplies core, loadOrderBase, objects, objNames, inputs, outputs, verbose, dotParams, and parentChildGraph).

modulesLoaded

The named list of loaded modules (core + user), as assembled by .runInputObjectsPhase().