NCAR / NCAR/ccpp-framework

Implement "is_initialized" method in constituents object

Open
#775 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.