Changes between Version 4 and Version 5 of EcosimVariableTimestepPluginExample
- Timestamp:
- 2010-02-25 13:21:07 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EcosimVariableTimestepPluginExample
v4 v5 1 = Sample code = 2 Source code for a sample plugin can be found at 3 4 Ecopath6\Sources\EwETutorials\CEFASPluginSample 5 6 To view the sample code 7 8 1. Load EwE6.sln into Visual Studio 9 1. In Visual Studio's Solution Explore added CEFASPluginSample.vbproj by right clicking on the tree where 10 11 12 13 = = 1 14 = Running Ecosim on a variable time step = 2 15 Ecosim can be run on a variable time step via a plugin. When run from the Scientific Interface Ecosim runs 1 time step per month, 12 time steps per year. The number of timesteps per month can be set in code via the cEcosimDataStuctures.!StepsPerMonth property. This allows a plugin to run Ecosim on sub time steps, multiple time steps in a month. … … 11 24 * !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 25 13 14 15 26 IEcosimSubTimestepsPlugin.!EcosimSubTimeStepEnd(!ByRef !BiomassAtTimestep() As Single, !ByVal !TimeInYears As Single, !ByVal DeltaT As Single, !ByVal !SubTimestepIndex As Integer, !ByVal !EcosimDatastructures As Object) 16 27