Ejemplo n.º 1
0
        //---------------------------------------------------------------------
        public override void Initialize()
        {
            Timestep        = parameters.Timestep;
            varName         = parameters.VarName;
            dy_min          = parameters.MinDroughtYears;
            dy_max          = parameters.MaxDroughtYears;
            mapNameTemplate = parameters.MapNamesTemplate;

            SiteVars.Initialize(varName);
            PartialDisturbance.Initialize();

            modelCore.UI.WriteLine("   Opening and Initializing Drought Disturbance log file \"{0}\"...", parameters.LogFileName);
            MetadataHandler.InitializeMetadata(Timestep, mapNameTemplate, parameters.LogFileName);
        }
        //---------------------------------------------------------------------
        public override void Initialize()
        {
            Timestep        = parameters.Timestep;
            varName         = parameters.VarName;
            dy_min          = parameters.MinDroughtYears;
            dy_max          = parameters.MaxDroughtYears;
            mapNameTemplate = parameters.MapNamesTemplate;

            SiteVars.Initialize(varName);
            PartialDisturbance.Initialize();

            //  Cohorts must be created before the base class is initialized
            //  because the base class' reproduction module uses the core's
            //  SuccessionCohorts property in its Initialization method.
            Landis.Library.BiomassCohorts.Cohorts.Initialize(Timestep, new CohortBiomass());

            modelCore.UI.WriteLine("   Opening and Initializing Drought Disturbance log file \"{0}\"...", parameters.LogFileName);
            MetadataHandler.InitializeMetadata(Timestep, mapNameTemplate, parameters.LogFileName);
        }