-
Notifications
You must be signed in to change notification settings - Fork 64
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
Host metadata file not flagging mis-named variables #648
Comments
I would suggest that this is not a bug at all. The purpose of the Does this make sense or am I misunderstanding the problem? |
Ah, I had never really looked into the specifics of how @gold2718 Would checking the local name woul? The idea of keeping it consistent with the other metadata parsers sounds ideal to me. @dustinswales does anything on your end use |
@peverwhee, How would this check work? First, a bit more on why I think this is the proper behavior. Here is what metadata files do:
I feel these are consistent, the only difference is that the last type is generated, not 'hand written'. The I feel like I'm missing something here but I still do not see anything that should or can be fixed. |
^I second this. @peverwhee In the CCPP SCM we are using the In the UFS physics we have schemes that call type-bound procedures defined in host DDTs, which are used to reset all of data stored within a type. For example, GFS_suite_interstitial_phys_reset.F90 zeros out all of these fields. This is not so great for many reasons and I'm strongly leaning towards removing the call to the internal procedure and just zeroing out the fields individually. This will remove the ugly scheme-to-host dependency we have in the UFS based physics and allow us the use the |
As a side note, I've long wanted to figure out how to add metadata and capgen implementation for type-bound procedures. Another side note is that I would also love to see more a more portable version of the GFS physics suite(s). |
@gold2718 I don't think you're missing anything. I'm just discovering how little I know about host metadata. Thanks for the explanation. I think my original concern about checking is moot now. And thanks @dustinswales seeing your use case has made things a little clearer. I'm still mildly confused about why the host type is necessary, especially for more "portable" code bases. Since you only ever need to pass in the variables used by the schemes, it seems odd to have static arguments. |
Not a problem at all for NRL, thanks for asking |
@peverwhee, the idea is that it gives the host model the ability to choose its interface to |
Description
The current
ddthost_test
has atest_host.meta
has accpp
variable declared in thetest_host
function block but the correspondingtest_host.F90
has the variable namedccpp_info
. This is inconsistent with non-host meta files as this is flagged as an error when run against the CCPP Framework.Steps to Reproduce
Run the integration test in
test/ddthost_test
as documented from currentmain
branch (current SHA 4102bdb)Additional Context
N/A
Output
N/A
The text was updated successfully, but these errors were encountered: