Subversion Repositories public iLand

Rev

Rev 639 | Rev 671 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 639 Rev 662
Line 443... Line 443...
443
    //}
443
    //}
444
    //loadFromMap(wrap->map(), key);
444
    //loadFromMap(wrap->map(), key);
445
    // retrieve all sapling trees on the stand:
445
    // retrieve all sapling trees on the stand:
446
    QList<QPair<ResourceUnitSpecies *, SaplingTree *> > list = wrap->map()->saplingTrees(key);
446
    QList<QPair<ResourceUnitSpecies *, SaplingTree *> > list = wrap->map()->saplingTrees(key);
447
    // for now, just kill em all...
447
    // for now, just kill em all...
448
    for (QList<QPair<ResourceUnitSpecies *, SaplingTree *> >::iterator it = list.begin(); it!=list.end(); ++it)
448
    for (QList<QPair<ResourceUnitSpecies *, SaplingTree *> >::iterator it = list.begin(); it!=list.end(); ++it) {
449
        (*it).second->pixel = 0;
449
        // (*it).second->pixel = 0;
-
 
450
        (*it).first->changeSapling().clearSapling( *(*it).second, false); // kill and move biomass to soil
-
 
451
    }
-
 
452
450
    // the storage for unused/invalid saplingtrees is released lazily (once a year, after growth)
453
    // the storage for unused/invalid saplingtrees is released lazily (once a year, after growth)
451
}
454
}
452
455
453
/// specify removal fractions
456
/// specify removal fractions
454
/// @param SWDFrac 0: no change, 1: remove all of standing woody debris
457
/// @param SWDFrac 0: no change, 1: remove all of standing woody debris