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

capgen: check handling of type attribute for ddts #516

Open
climbfuji opened this issue Dec 11, 2023 · 0 comments
Open

capgen: check handling of type attribute for ddts #516

climbfuji opened this issue Dec 11, 2023 · 0 comments
Labels
capgen bugs, requests, etc. that involve ccpp_capgen enhancement

Comments

@climbfuji
Copy link
Collaborator

Description

prop_dict['kind'] = prop_dict['ddt_type']

We should check why the ddt_type attribute is copied into the kind attribute and then deleted. Maybe that is not necessary? Because of this behavior, PR #512 is introducing a workaround in add_var_debug_check (around line 1257 in scripts/suite_objects.py in the PR). Also, there is a workaround in ccpp_prebuild.py for this:

# Workaround for Fortran DDTs incorrectly having the type of

Solution

Check whether this behavior is needed or not. If yes, provide more information in form of inline comments, maybe referring to this issue, so that we don't ask ourselves the same questions in a years time. If not, change the code and remove the workarounds as applicable.

Alternatives (optional)

n/a

Related to (optional)

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
capgen bugs, requests, etc. that involve ccpp_capgen enhancement
Projects
None yet
Development

No branches or pull requests

1 participant