Skip to content

Changed ddt_type metadata keyword to just type. - #383

Merged
gold2718 merged 2 commits into
NCAR:feature/capgenfrom
gold2718:capgen
Jul 30, 2021
Merged

Changed ddt_type metadata keyword to just type.#383
gold2718 merged 2 commits into
NCAR:feature/capgenfrom
gold2718:capgen

Conversation

@gold2718

Copy link
Copy Markdown
Collaborator

Also, added infrastructure and a method to find the intrinsic elements of a compound array or DDT
closes #377

Added infrastructure and a method to find the intrinsic elements of a compound array or DDT
@gold2718 gold2718 added the capgen-unification Issues/PRs necessary for capgen/prebuild unification label Jul 26, 2021
@gold2718 gold2718 added this to the capgen unification milestone Jul 26, 2021
@gold2718
gold2718 requested a review from climbfuji July 26, 2021 16:39
@gold2718 gold2718 self-assigned this Jul 26, 2021
Comment thread scripts/metavar.py Outdated
Comment thread scripts/metavar.py
found in this variable (via finding a variable in <check_dict> with
the same standard name).
Currently, an array of DDTs is not processeed (return None) since
Fortran does not support a way to reference those elements.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure of the implication of this, hope we can clarify at the ccpp-framework meeting.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it depends on whether or not the NOAA models or the SCM will ever need this feature. We generate code to make sure that all input variables in the active physics suite have been initialized. To do this, we need to be able to look into arrays of fields or into DDTs to find fields that could be initialized (2D or 3D physical fields). Is this something you will likely need?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure. Maybe we should look at some specific examples of how the UFS works at the moment in our next developer meeting (or in a separate meeting) to see if this is already an issue or not.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. You can prepare by answering the question:
At run time, does / will the UFS need to query the standard names used by a suite?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. We have never used the standard names at run time (after switching to the static build 2 years ago), only at build time.

@gold2718
gold2718 requested a review from climbfuji July 30, 2021 22:41
@gold2718
gold2718 merged commit da063f9 into NCAR:feature/capgen Jul 30, 2021
@gold2718
gold2718 deleted the capgen branch July 30, 2021 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capgen-unification Issues/PRs necessary for capgen/prebuild unification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants