| 2 | |
| 3 | == Notes from M. Guimberteau == |
| 4 | |
| 5 | === 2015/08/24 === |
| 6 | |
| 7 | * Bugs |
| 8 | |
| 9 | '''In thermosoil''' |
| 10 | |
| 11 | The variable SoilTemp should be in the almaoutput condition of the loop and related to ptn_pftmean and not ptn: |
| 12 | |
| 13 | Before in the code: |
| 14 | |
| 15 | |
| 16 | {{{ |
| 17 | IF ( .NOT. almaoutput ) THEN |
| 18 | CALL histwrite_p(hist_id, 'SoilTemp', kjit, ptn_pftmean, kjpindex*ngrnd, indexgrnd) |
| 19 | CALL histwrite_p(hist2_id, 'ptn', kjit, ptn, kjpindex*ngrnd, indexgrnd) |
| 20 | ELSE |
| 21 | CALL histwrite_p(hist2_id, 'SoilTemp', kjit, ptn, kjpindex*ngrnd, indexgrnd) |
| 22 | CALL histwrite_p(hist2_id, 'Qg', kjit, soilflx, kjpindex, index) |
| 23 | CALL histwrite_p(hist2_id, 'DelSurfHeat', kjit, surfheat_incr, kjpindex, index) |
| 24 | CALL histwrite_p(hist2_id, 'DelColdCont', kjit, coldcont_incr, kjpindex, index) |
| 25 | ENDIF |
| 26 | ENDIF |
| 27 | |
| 28 | }}} |
| 29 | |
| 30 | After corrections: |
| 31 | |
| 32 | {{{ |
| 33 | |
| 34 | IF ( hist2_id > 0 ) THEN |
| 35 | IF ( .NOT. almaoutput ) THEN |
| 36 | CALL histwrite_p(hist2_id, 'ptn_pftmean', kjit, ptn_pftmean, kjpindex*ngrnd, indexgrnd) |
| 37 | ELSE |
| 38 | CALL histwrite_p(hist2_id, 'SoilTemp', kjit, ptn_pftmean, kjpindex*ngrnd, indexgrnd) |
| 39 | CALL histwrite_p(hist2_id, 'Qg', kjit, soilflx, kjpindex, index) |
| 40 | CALL histwrite_p(hist2_id, 'DelSurfHeat', kjit, surfheat_incr, kjpindex, index) |
| 41 | CALL histwrite_p(hist2_id, 'DelColdCont', kjit, coldcont_incr, kjpindex, index) |
| 42 | ENDIF |
| 43 | ENDIF |
| 44 | }}} |
| 45 | |
| 46 | '''In intersurf and ioipslctrl''' |
| 47 | |
| 48 | The variable ptn_snow_pftmean does not exist in the code anymore. The call histdef should be removed: |
| 49 | |
| 50 | {{{ |
| 51 | CALL histdef(hist_id, 'ptn_snow_pftmean', 'Snow temperature,PFT-mean', 'K', & |
| 52 | & iim,jjm, hori_id, nsnow, 1, nsnow, snowax_id, 32,avescatter(6), dt,dw) |
| 53 | }}} |
| 54 | |
| 55 | The variable soiltemp should be put outside the if (ok_explicitsnow) condition |
| 56 | |
| 57 | |
| 58 | {{{ |
| 59 | CALL histdef(hist_id, 'soiltemp','Soil temperature profile','K', & |
| 60 | & iim,jjm, hori_id, ngrnd, 1, ngrnd, solax_id, 32,avescatter(6),dt,dw) |
| 61 | }}} |
| 62 | |
| 63 | The histdef high frequency of the variable ptn_pftmean is missing in SECHIBA_HISTLEVEL2 = 7 level: |
| 64 | |
| 65 | {{{ |
| 66 | CALL histdef(hist2_id, 'ptn_pftmean', 'Soil temperature, PFT-mean','K', & |
| 67 | & iim,jjm, hori_id2, ngrnd, 1, ngrnd, solax_id, 32,avescatter2(7), dt,dw2) |
| 68 | }}} |
| 69 | |
| 70 | |
| 71 | ---- |
| 72 | |