View source: R/Simulation_Run.R
The main simulation function which does all the heavy lifting
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | do_OneSite(
i_sim,
i_SWRunInformation,
i_sw_input_soillayers,
i_sw_input_treatments,
i_sw_input_cloud,
i_sw_input_prod,
i_sw_input_site,
i_sw_input_soils,
i_sw_input_weather,
i_sw_input_climscen,
i_sw_input_climscen_values,
SimParams
)
|
For contributors only: This function cannot return prematurely because
(i.e., don't use return
); otherwise the management of simulation runs will
fail. If a condition is met that prevents proper continuation/execution of a
simulation, then the appropriate element in the variable tasks
should be set
to 0. The variable tasks
contains the elements create
, execute
,
and aggregate
with the values:
-1 indicates "don't do" a task element
0 indicates that the task element has/is "failed"
1 indicates "to do" a task element
2 indicates that a task element had "success" in executing relevant code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.