Changes between Version 4 and Version 5 of EcosimVariableTimestepPluginExample


Ignore:
Timestamp:
2010-02-25 13:21:07 (14 years ago)
Author:
joeb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EcosimVariableTimestepPluginExample

    v4 v5  
     1= Sample code = 
     2Source code for a sample plugin can be found at  
     3 
     4Ecopath6\Sources\EwETutorials\CEFASPluginSample 
     5 
     6To 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=  = 
    114= Running Ecosim on a variable time step = 
    215Ecosim 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. 
     
    1124 * !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. 
    1225 
    13  
    14  
    1526IEcosimSubTimestepsPlugin.!EcosimSubTimeStepEnd(!ByRef !BiomassAtTimestep() As Single, !ByVal !TimeInYears As Single, !ByVal DeltaT As Single, !ByVal !SubTimestepIndex As Integer, !ByVal !EcosimDatastructures As Object) 
    1627