Problem writing out landmask to history file
Assessment
This issue has not been assessed yet.
Description
I noticed this on the cesm2_3 branch as exact restart tests fail. But, it's an issue that we could have noted on the cesm2_1 branch as well. PIO is failing because _FillValue isn't properly set.
This bit of PIO code is failing (pio_darray.c):
/* Check that if the user passed a fill value, it is correct. If
* use_fill is false, then find_var_fillvalue will not end up
* getting a fill value. */
if (fillvalue && vdesc->use_fill)
if (memcmp(fillvalue, vdesc->fillvalue, vdesc->pio_type_size))
return pio_err(ios, file, PIO_EINVAL, __FILE__, __LINE__);
I think this just means that we need to explicitly set missing_value and _FillValue in the definition of history and restart variables. So I think it's a straightforward fix.
- Dominant language
- Fortran
- Stars
- 15
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ESCOMP/SimpleLand
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ESCOMP/SimpleLand#95 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
ESCOMP/SimpleLand#94 ·
-
enhancement
ESCOMP/SimpleLand#93 · 2 comments · 1 assignee ·
-
enhancement
ESCOMP/SimpleLand#92 · 1 assignee ·
-
CESM3
Difficulty 4/5 3-5 days Newbie friendliness 25/100
ESCOMP/SimpleLand#91 · 2 comments · 1 reaction ·