Subversion Repositories public iLand

Rev

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

Rev 707 Rev 764
Line 141... Line 141...
141
141
142
}
142
}
143
143
144
void SpeciesSet::setupRegeneration()
144
void SpeciesSet::setupRegeneration()
145
{
145
{
-
 
146
    SeedDispersal::setupExternalSeeds();
146
    foreach(Species *s, mActiveSpecies) {
147
    foreach(Species *s, mActiveSpecies) {
147
        SeedDispersal *sd = new SeedDispersal(s);
148
        SeedDispersal *sd = new SeedDispersal(s);
148
        sd->setup(); // setup memory for the seed map (grid)
149
        sd->setup(); // setup memory for the seed map (grid)
149
        s->setSeedDispersal(sd); // establish the link between species and the map
150
        s->setSeedDispersal(sd); // establish the link between species and the map
150
    }
151
    }
-
 
152
    SeedDispersal::finalizeExternalSeeds();
151
    qDebug() << "Setup of seed dispersal maps finished.";
153
    qDebug() << "Setup of seed dispersal maps finished.";
152
}
154
}
153
155
154
Species *nc_seed_distribution(Species *species)
156
Species *nc_seed_distribution(Species *species)
155
{
157
{