Implement "is_initialized" method in constituents object
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 25
- Forks
- 67
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 2
Description
Description
Implement a way to query the constituents object for whether or not a given constituent has been initialized (is not the default value).
Solution
Implement is_initialized procedure within ccpp_model_constituents_t that will return true if any element in vars_layer(:,:,const_idx) for a given constiuent index or standard name, is not equal to the default value.
Capgen version
This should be applied to both v0 and v1 if implemented before unification.
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
Locate the ccpp_model_constituents_t definition and its vars_layer data, then compare the v0 and v1 implementations if both are still separate. Implement and verify is_initialized for a constituent index or standard name; done means it returns true when any relevant element differs from the default value and false otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fortran
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100