Subversion Repositories public iLand

Rev

Rev 1087 | Rev 1102 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1087 Rev 1089
Line 531... Line 531...
531
    if (mABEManagement)
531
    if (mABEManagement)
532
        delete mABEManagement;
532
        delete mABEManagement;
533
    mABEManagement = new ABE::ForestManagementEngine();
533
    mABEManagement = new ABE::ForestManagementEngine();
534
    // and setup
534
    // and setup
535
    mABEManagement->setup();
535
    mABEManagement->setup();
536
    mABEManagement->runOnInit();
-
 
-
 
536
    mABEManagement->runOnInit(true);
537
537
538
    mABEManagement->initialize();
538
    mABEManagement->initialize();
-
 
539
-
 
540
    mABEManagement->runOnInit(false);
539
541
540
}
542
}
541
543
542
544
543
ResourceUnit *Model::ru(QPointF coord)
545
ResourceUnit *Model::ru(QPointF coord)
Line 634... Line 636...
634
    loader.processInit();
636
    loader.processInit();
635
    }
637
    }
636
    // initalization of ABE
638
    // initalization of ABE
637
    if (mABEManagement) {
639
    if (mABEManagement) {
638
        mABEManagement->setup();
640
        mABEManagement->setup();
639
        mABEManagement->runOnInit();
-
 
-
 
641
        mABEManagement->runOnInit(true);
640
    }
642
    }
641
643
642
    // load climate
644
    // load climate
643
    {
645
    {
644
        if (logLevelDebug()) qDebug() << "attempting to load climate..." ;
646
        if (logLevelDebug()) qDebug() << "attempting to load climate..." ;
Line 667... Line 669...
667
    }
669
    }
668
670
669
    // initalization of ABE (now all stands are properly set up)
671
    // initalization of ABE (now all stands are properly set up)
670
    if (mABEManagement) {
672
    if (mABEManagement) {
671
        mABEManagement->initialize();
673
        mABEManagement->initialize();
-
 
674
        mABEManagement->runOnInit(false);
672
    }
675
    }
673
676
674
677
675
    // outputs to create with inital state (without any growth) are called here:
678
    // outputs to create with inital state (without any growth) are called here:
676
    GlobalSettings::instance()->setCurrentYear(0); // set clock to "0" (for outputs with initial state)
679
    GlobalSettings::instance()->setCurrentYear(0); // set clock to "0" (for outputs with initial state)