HAS WORKAROUND: Restart fails in IHistClm60BgcCropCrujra case
- Dominant language
- Fortran
- Stars
- 352
- Forks
- 361
- Avg merge
- 6d 6h
- Merged PRs (30d)
- 8
Description
### Brief summary of bug
@samsrabin reported:
First restart-generated lnd.log file ends with this information:
```
using alpha-ctsm5.4.CMIP7.09.ctsm5.3.068.test.clm2.rh0i.1958-01-23-00000.nc in current working directory
ERROR: reading variable: num2d
ERROR in /glade/work/slevis/git/ans_chging_tags/src/main/ncdio_pio.F90.in at line 1508
```
WORKAROUND posted [below](https://github.com/ESCOMP/CTSM/issues/3451#issuecomment-3230461849).
SUGGESTED FIX posted [here](https://github.com/ESCOMP/CTSM/issues/3451#issuecomment-3234174315) and in the post right after that.
### General bug information
**CTSM version you are using:** alpha-ctsm5.4.CMIP7.09.ctsm5.3.068
**Does this bug cause significantly incorrect results in the model's science?**
No, but restart fails under the circumstances described below.
**Configurations affected:**
Restarts, though **aux_clm was OK** in /glade/derecho/scratch/slevis/tests_0815-150711de, so I need to investigate.
### Details of bug
### Important details of your setup / configuration so we can reproduce the bug
@samsrabin reported the problem, and I reproduced it with these cases:
~samrabin/cases_ctsm_crop_reparam/alpha-ctsm5.4.CMIP7.09.ctsm5.3.068.test
~slevis/cases_dev/alpha-ctsm5.4.CMIP7.09.ctsm5.3.068.test
Details of my case:
`./create_newcase --compset IHistClm60BgcCropCrujra --res f10_f10_mg37 --case ~slevis/cases_dev/alpha-ctsm5.4.CMIP7.09.ctsm5.3.068.test --run-unsupported`
user_nl_clm (same in both cases):
```
hist_empty_htapes = .true.
! h0: Instantaneous annual crop variables
hist_fincl1 = 'GRAINC_TO_FOOD_PERHARV', 'GRAINC_TO_FOOD_ANN', 'SDATES', 'SDATES_PERHARV', 'SYEARS_PERHARV', 'HDATES', 'GDDHARV_PERHARV', 'GDDACCUM_PERHARV', 'HUI_PERHARV', 'SOWING_REASON_PERHARV', 'HARVEST_REASON_PERHARV'
hist_nhtfrq(1) = 17520 ! annual saves
hist_mfilt(1) = 1 ! new file every save (so annual files)
hist_type1d_pertape(1) = 'PFTS'
hist_dov2xy(1) = .false.
! (h1) Non-instantaneous (e.g. average or max) crop variables
hist_fincl2 = 'GDD0', 'GDD8', 'GDD10', 'GDD0X', 'GDD8X', 'GDD10X', 'GDD020', 'GDD820', 'GDD1020'
hist_nhtfrq(2) = 17520 ! annual saves
hist_mfilt(2) = 1 ! new file every save (so annual files)
hist_type1d_pertape(2) = 'PFTS'
hist_dov2xy(2) = .false.
```
env_run.xml (same in both cases):
```
```
Contributor guide
Assessment
This issue has not been assessed yet.