Changes between Version 3 and Version 4 of EcosimVariableTimestepPluginExample
- Timestamp:
- 2010-02-24 15:02:06 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EcosimVariableTimestepPluginExample
v3 v4 4 4 ==== Sub time step data ==== 5 5 When running on sub time steps Ecosim will only update its results objects cCore.cEcoSimResults(), cCore.cEcosimGroupOutput(), cCore.cEcosimOutput() and cCore.cEcosimFleetOutput() once at the end of the month. Data computed for the sub time step can only be access via the cEcosimDataStrucutres provided by the IEcosimSubTimestepsPlugin.!EcosimSubTimeStepBegin() and IEcosimSubTimestepsPlugin.!EcosimSubTimeStepEnd() plugin points. The IEcosimBeginTimestepPlugin.!EcosimBeginTimeStep() and IEcosimEndTimestepPlugin.!EcosimEndTimeStep() will only be call at the start and end of the month not during the sub time step and will not contain the sub time step data. 6 7 ==== Sub time step plugin points ==== 8 IEcosimSubTimestepsPlugin.!EcosimSubTimeStepBegin(!ByRef !BiomassAtTimestep() As Single, !ByVal !TimeInYears As Single, !ByVal DeltaT As Single, !ByVal !SubTimestepIndex As Integer, !ByVal !EcosimDatastructures As Object) 9 10 * Called at the start of a sub time step. 11 * !BiomassAtTimestep() contains the biomass that will be used for the time step. Any changes to biomass by a plugin point will be use be by Ecosim for the time step. 12 13 14 15 IEcosimSubTimestepsPlugin.!EcosimSubTimeStepEnd(!ByRef !BiomassAtTimestep() As Single, !ByVal !TimeInYears As Single, !ByVal DeltaT As Single, !ByVal !SubTimestepIndex As Integer, !ByVal !EcosimDatastructures As Object) 16 17 * Called at the end of a sub time step. 18 * !BiomassAtTimestep() contains the biomass computed for the time step.