| 10 | |
| 11 | ---- |
| 12 | FROM TDG |
| 13 | |
| 14 | 1. stomate_forestry.f90 line 1292 the lai_max_calc for SRC is only called if lai_max_calc < 2. At the start of the plantation, the lai was higher than 2, from the spinup (maybe because I didn't use the last year of my spinup?) and therefore lai_max_calc was not calculated as it should in the first year of SRC.[[BR]] |
| 15 | I solved it by moving it out of:[[BR]] |
| 16 | {{{ |
| 17 | IF ( lai_max_calc(i,j) .LT. 2.) THEN ... ENDIF |
| 18 | }}} |
| 19 | and rewriting it as:[[BR]] |
| 20 | {{{ |
| 21 | IF (clearfirst .AND. forest_managed(i,j) == 4) lai_max_calc(i,j)=min(real(0+1)**2/4.,1.)*lai_max(j) |
| 22 | }}} |
| 23 | |
| 24 | |
| 25 | 2. In stomate.f90 line 705, forest_managed16 is read and passed to stomateLPJ, readstart ..., but not to stomate_forestry.[[BR]] |
| 26 | In stomate_forestry.f90 line 2404, forest_managed16 is read again and used passed around a lot.[[BR]] |
| 27 | In stomate_constants.f90 line 567, the forest management flag is read again, but this time in a global variable. This variable is only used once in stomate_data.[[BR]] |
| 28 | Maybe it's better to read the flag only once in a global variable, so you don't waste cpu on I/O operations and you don't need to pass it around that much. |
| 29 | |
| 30 | 3. In stomate_forestry.f90 line 2477-2485, the initial biomass after clearcut is set. Why does it add heartwood and doesn't it just use the values specified in stomate_data? [[BR]] |
| 31 | I added the following line to overwrite this for SRC, because I start my plantation with cuttings, not saplings, and they don't contain heartwood.[[BR]] |
| 32 | {{{ |
| 33 | IF ((j==6).AND.(forest_managed(i,j)==4)) THEN |
| 34 | bm_init(:) = bm_sapl(j,:) |
| 35 | ENDIF |
| 36 | }}} |