Subversion Repositories public iLand

Rev

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

Rev 436 Rev 440
Line 19... Line 19...
19
*/
19
*/
20
void Phenology::calculate()
20
void Phenology::calculate()
21
{
21
{
22
    if (id()==0) {
22
    if (id()==0) {
23
        // for needles: just calculate the chilling requirement for the establishment
23
        // for needles: just calculate the chilling requirement for the establishment
24
        calculateChillDays(200); // todo: *change*
-
 
-
 
24
        // i.e.: use the "bottom line" of 10.5 hrs daylength for the end of the vegetation season
-
 
25
        calculateChillDays(mClimate->sun().dayShorter10_5hrs());
25
        return;
26
        return;
26
    }
27
    }
27
    const ClimateDay  *end = mClimate->end();
28
    const ClimateDay  *end = mClimate->end();
28
    double vpd,temp,daylength;
29
    double vpd,temp,daylength;
29
    double gsi; // combined factor of effect of vpd, temperature and day length
30
    double gsi; // combined factor of effect of vpd, temperature and day length