Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating input namelists, field tables, and diag_tables #130

Open
nbren12 opened this issue Jan 21, 2021 · 1 comment
Open

Validating input namelists, field tables, and diag_tables #130

nbren12 opened this issue Jan 21, 2021 · 1 comment

Comments

@nbren12
Copy link
Contributor

nbren12 commented Jan 21, 2021

Certain combinations of input configurations are not compatible. For example,

Often times these misconfigurations only cause the model to crash with a segmentation fault when it tries to access some non-existing allocatable array or pointer, which makes it hard to debug.

Ideally the model would be smart enough to e.g. turn on ldiag3d if one of the diagnostics that flag controls is requested in the diag_table or select a field_table appropriate for it's namelist options, but some input data validation with helpful error messages would go a long way.

Are there any established routines for such checks?

@spencerkclark
Copy link
Member

I'm not aware of any established routines for such checks, but it is fairly straightforward to catch these issues before the segmentation faults occur. See #132 and #133 for PRs addressing the two examples given.

These two PRs go the route of adding more helpful error messages. I briefly looked into what it might take do address either automatically, but I think it would require a decent amount of refactoring, which I don't think is necessarily worth doing for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants