PMO should only look at the write_output_state_to_file item, not the filename(s)
Nobody has claimed this yet.
- Dominant language
- Fortran
- Stars
- 263
- Forks
- 182
- Avg merge
- 11d 12h
- Merged PRs (30d)
- 7
Description
if you have this in your PMO namelist:
write_output_state_to_file = .false.
output_state_files = ""
then helen's recent fix prevents a coredump and it exits with a message saying you have to specify an output filename.
but if you have this:
write_output_state_to_file = .false.
output_state_files = "bob.nc"
then pmo runs fine, and doesn't create an output file. the logic here is broken.
Describe the bug
- download a caminput.nc from the /glade/p/cisl/dares/DART_test_cases into your models/cam-fv/work dir
- build the cam-fv executables
- in input.nml, change write_output_state_to_file to .false.
- run - it finishes fine and doesn't create perfect_restart.nc
- in input.nm, change output_state_files to "" (2 double quotes)
- run - it gives you an error that you have to specify an output file (or it coredumps if you don't have helen's latest update downloaded)
it should ignore the filename if you're not writing output.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start with the PMO logic that reads write_output_state_to_file and output_state_files from input.nml, using the cam-fv/work reproduction steps as the first check. Done means a false write_output_state_to_file setting no longer requires an output filename and produces no output file, including when output_state_files is empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fortran
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100