Bugs & Update
For all the H08 users
For the users of Ver. 20230701
2023/07/24
For the users of Ver. 20230101
2023/07/24
2022/12/26
For the users of Ver. 20220701
2022/12/26
2022/07/25
For the users of Ver. 20210301
2022/07/25
2022/03/16
2021/06/03
2021/03/05
DAMID=${DIR}/${PRJRUN}${YEAR}0000${SUF}FX (fixed)
DAMID=${DIR}/${PRJRUN}${SUF}YR (yearly varied)
For the users of Ver. 20200201
2021/03/05
2021/02/17
2020/04/24
2020/02/07
For the users of Ver. 20190701
2020/01/06
- How to fix the bug
- Problem: The following programs contain some serious problems. This bug-fix must be applied for Ver. 20190101 as well. This bug was originally found by Dr. Zhipin Ai. Thank you.
- File: cpl/bin/main.f Click here for the correct file.
- File: cpl/bin/main.sh Click here for the correct file.
- File: crp/bin/main.f Click here for the correct file.
- Typo.
- This typo was found by Mr. Soma Funahashi. Thank you.
- Manual (English)
- Page 32, Table 7.2, 'pr' reads 'prrn and prsn'.
- Manual (Japanese)
- Page 29, Table 7.2, 'pr' reads 'prrn and prsn'.
- How to fix the bug
- File: met/pre/prep_WFDEI.sh
- Line 37, enclose after 'VARS=' in double quotation marks.
- File: cpl/pst/draw_all.sh
- Line 10&11, replace "PRJMET=WFDE RUNMET=LR__" with "PRJMET=wfde RUNMET=____"
- File map/pre/prep_map_despot.sh
- Line 70, replace "PRJMET=WFDE; RUNMET=LR__" with "PRJMET=wfde; RUNMET=____"
- How to fix the bug
- cpl/bin/main.f line 1166: add 'if(r1tmp(i0l).ne.p0mis)then' and 'end if' before and after 'i1rclpot(i0l)=int(r1tmp(i0l))'
- How to fix the bug
- If you failed to execute map/pre/prep_map_lcan.sh
- Line 47, move "htformat $ARGHLF" asciiu binary ${ELVMINORG} ${ELVMIN}"
after line 56. - File: cpl/bin/main.sh
- Line 17&18, replace "PRJMET=WFDE RUNMET=I___" with "PRJMET=wfde RUNMET=____"
- How to fix the bug
- Problem: The following programs contain different numbers of arguments for calc_crpyld.f. This bug-fix must be applied for Ver. 20190101 as well. This bug was originally found by Mr. Akira Takeshima. Thank you.
- File: cpl/bin/main.f Click here for the correct file.
- File: crp/bin/main.f Click here for the correct file.
- File: crp/bin/calc_crpyld.f Click here for the correct file.
- Version20190701 released. All of the bugs below were fixed.
- How to fix the bug
- File: map/bin/calc_damalc.f
- Line 97, replace "i0ldbg=0" with "i0ldbg=1".
- Line 98, replace "i0recdbg=0" with "i0recdbg=1".
- How to fix the bug
- File: lnd/pre/prog_gwr_ft.f
- Line 64, add "if(r1soityp(i0l).gt.0.0)then".
- Line 68, add "end if".
- File: crp/pre/prep.sh
- Line 49, add "httime $L ${VARLND}MO 0000 0000 ${VARLND}YR".
- File: map/pre/prep_map_despot.sh
- Execute after finishing chapter 10-3.
- How to fix the bug
- File: map/bin/calc_crpfrc.sh
- Line 15, replace "WATCH" with "WFDEI".
- File: map/pre/Makefile
- Line 6, remove "prog_map_H10" and add "prog_map_IGRAC".
Rebuild the executable. - Version20190101 released. All of the bugs below were fixed.
- This is a fully revised version. See Hanasaki et al. (2018, HESS) for details.
- How to fix the bug
- If you can't find htmettxt.f in ${DIRH08}/bin, click here for the source code of htmettxt.
- If you can't find htstatlst.f in ${DIRH08}/bin, click here for the source code of htstatlst.
- If you wish to update Makefile in ${DIRH08}/bin, click here for the Makefile.
- How to fix the bug
- File: dam/pre/draw_obsope.sh
- Line 17, replace "GSWP1" with "GSWP2".
- File: dam/pre/list_obsope.sh
- Line 8, replace "damlst.GSWP2.one.area.txt" with "damlst.GSWP2.one.txt".
- File: dam/pre/prep_damdem.sh
- Line 9, replace "L_I_" with "N_C_".
- Line 62, replace "all" with "long".
- File: dam/bin/main.sh
- Line 22, replace "../../dam/dat/obsdat.txt" with "../../dam/dat/obs_lst_/obsdat.txt".
- File: dam/pst/draw_result.sh
- Line 157-161, remove 5 lines, and add
htcatts ${OBS}MO ${CAL}MO > temp.txt
awk '($1>="'$YEARMIN'"&&$1<="'$YEARMAX'"){print $1, $2, $3, $4*'${FACTOR}',$5*'${FACTOR}'}' temp.txt > $FILE - How to fix the bug
- File: bin/Makefile
- Line 18, add " htextract" after htymd2doy.
- If you can't find htextact.f in ${DIRH08}/bin, click here for the source code of htextract.
- How to fix the bug
- File: cpl/bin/main.f
- Line 1829, replace "s0sta" with "s0ave".
- Line 1833, replace "s0sta" with "s0ave".
- Line 1842, replace "s0sta" with "s0ave".
- Line 1846, replace "s0sta" with "s0ave".
- Line 1855, replace "s0sta" with "s0ave".
- Line 1859, replace "s0sta" with "s0ave".
- How to fix the bug
- File: cpl/bin/main.f
- Line 1415, replace "r1demagrfix" with "r1demagr".
- Line 1416, replace "r1demagrfix" with "r1demagr".
- Please do NOT change lines 944-945. These are correct.
- Version20130501 released. All of the bugs below were fixed.
- Additionally, the code was expanded as follows.
- Total biomass has been added as a standard output variable.
- Simple virtual water content calculator has been added to crp/bin/main.f. [This is beta release, no manual available]
- How to fix the bug
- File: lib/conv_qatorh.f This bug was found by Mr. Yusuke Saito. Thank you.
- Line 40 (add ".and.r1psurf(i0l).ne.0.0")
- File: lib/conv_rhtoqa.f
- Line 40 (add ".and.r1psurf(i0l).ne.0.0")
- How to fix the bug
- File: crp/bin/main.f This bug was found by Mr. Yusuke Satoh. Thank you.
- Line 147 (definition of r2cwd), replace "n0lall" with "0:n0llnd"
- Line 150 (definition of r2cws), replace "n0lall" with "0:n0llnd"
- Line 153 (definition of r2regfd), replace "n0lall" with "0:n0llnd"
- How to fix the bug
- File: map/bin/main_dam.sh This bug was found by Dr. Satoshi Watanabe. Thank you.
- Line 32, replace "2000" with "${YEARDAM}".
- Line 33, replace "2000" with "${YEARDAM}".
- Line 34, replace "2000" with "${YEARDAM}".
- Line 35, replace "2000" with "${YEARDAM}".
- How to fix the bug
- File: cpl/bin/main.f This bug was found by Mr. Shinjiro Yano. Thank you.
- Line 1813, replace "s0sta" with "s0ave".
- File: cpl/bin/main.f
- Line 1817, replace "s0sta" with "s0ave".
- How to fix the bug
- File: lib/conv_qatorh.f
- Line 40, add ".and.r1tair(i0l).ne.0.0"
- File: lib/conv_qatorh.f
- Line 40, add ".and.r1tair(i0l).ne.0.0"
- File: cpl/bin/main.f Click here for the correct file. This bug was originally found by Mr. Shinjiro Yano. Thank you.
- You also need to correct crp/bin/calc_crpyld.f. Click here for the correct file.
- Ver20120801 released. All of the bugs below were fixed
- Additionally, the code was expanded as follows.
- Cd (drug coefficient) has become an editable parameter.
(lnd/bin/calc_leakyb.f, lnd/bin/main.f, cpl/bin/main.f were modified.) - Virtual Water calculation enabled.
(Former cpl/bin/main_new.f and crp/bin/calc_crpyld_new.f has become cpl/bin/main.f and crp/bin/calc_cpyld.f respectively.) - How to fix the bug
- File: bin/htcatchment.f This bug was found by Ms. Cherry Mateo. Thank you.
- Line 100, remove this line (write(*,*) i1l2x(27641))
- Line 101, remove this line (write(*,*) i1l2y(27641))
- Line 117, remove this line (write(*,*) r1tmp(27641))
- How to fix the bug
- File: met/pre/prep_GSWP2B1_Albedo.sh
- Line 39, add " -p" after "mkdir".
- Ver20120101 released. All of the bugs below were fixed.
- Additionally, the code was improved as follows.
- The installation process has been simplified.
- All shell scripts have been further polished for better usability.
- The shell scripts for reservoir operation and climate change simulations have been improved.
- How to fix the bug
- File: cpl/pst/list_watbal.f Click here for the correct file. This bug was found by Naota Hanasaki.
- The code has several minor errors related to the water balance of medium size reservoirs.
- How to fix the bug
- File: riv/bin/calc_humact.f Click here for the correct file. This bug was found by Naota Hanasaki.
- The code does NOT ignore the missing values for domestic/industrial/agricultural water demand, and causes catastrophic water balance errors.
- You will be able to fix bugs easily, by adding "if(r1demagr(i0l).ne.p0mis)then" lines to whenever r1demagr(i0l) appears in the code file. This applies also for r1demind and r1demdom.
- Ver20110131 released. All of the bugs below were fixed.
- How to fix the bug
- File: cpl/bin/main.f Click here for the correct file. This bug was found by Naota Hanasaki.
- File: cpl/bin/main.sh Click here for the correct file.
- Rename
- This version was called the beta version, but due to administrative reasons, it was renamed to Ver20101031.
- How to fix the bug
- File: adm/sample.cshrc Click here for the correct file. This bug was found by Dai Yamazaki.
- Line 19: Replace "=" with " " (space).
- How to fix the bug
- File: map/pre/prep_crp_L04.sh Click here for the correct file. This bug was found by Naota Hanasaki.
- Line 86: Replace "$HA08.txt" with "$HA09.txt"
- How to fix the bug
- File: map/bin/calc_rivara.f Click here for the correct file. This bug was found by Naota Hanasaki.
- Line 37: Remove "integer,allocatable::i1cntgrd(:)"
- Line 69: Remove "i1cntgrd=0.0"
- File: bin/htdrawts Click here for the correct file. This bug was found by Naota Hanasaki.
- Line **: Replace "temp.txt" with "temp.htdrawts.txt"
- Line 80: Remove "-K"
- How to fix the bug
- File: map/bin/main_dam.sh Click here for the correct file. This bug was found by Takahiro Yamamoto.
- Line 54-56: Remove "#"
- File: riv/pst/Makefile Click here for the correct file. This bug was found by Dr. Sayaka Yoshikawa.
- Line 8: "OBJS = prog_envout" should be "OBJS = prog_envout prog_flddro"
- File: map/bin/calc_rivnxl.f Click here for the correct file. This bug was found by Dr. Sayaka Yoshikawa and others.
- Line 97: "i0nyy=0" should be "i0nxy=0"
- File: cpl/bin/main.f. Click here for the correct file. These bugs were found by Dr. Takahiro Yamamoto.
- Line 322: "r2swdown(n0l,0:n0m)" should be "r2swdown(n0l,0:n0t)"
- Line 360: "r2hvsdoyout1st(0:n0l,0:n0m)" should be "r2hvsdoyout1st(n0l,0:n0m)"
- Line 361: "r3hvsdoyout1st(0:n0l,0:n0t,n0m)" should be "r3hvsdoyout1st(n0l,0:n0t,0:n0m)"
- Line 362: "r2hvsdoyout2nd(0:n0l,0:n0m)" should be "r2hvsdoyout2nd(n0l,0:n0m)"
- Line 363: "r3hvsdoyout2nd(0:n0l,0:n0t,n0m)" should be "r3hvsdoyout2nd(n0l,0:n0t,0:n0m)"
- Line 365: "r2crpday(0:n0l,0:n0m)" should be "r2crpday(n0l,0:n0m)"
- Line 366: "r2crpdayout1st(0:n0l,0:n0m)" should be "r2crpdayout1st(n0l,0:n0m)"
- Line 367: "r3crpdayout1st(0:n0l,0:n0t,0:n0m)" should be "r3crpdayout1st(n0l,0:n0t,0:n0m)"
- Line 368: "r2crpdayout2nd(0:n0l,0:n0m)" should be "r2crpdayout2nd(n0l,0:n0m)"
- Line 369: "r3crpdayout2nd(0:n0l,0:n0t,0:n0m)" should be "r3crpdayout2nd(n0l,0:n0t,0:n0m)"
- Ver. 20101031 released.
