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

MOM6 interfaces to generic tracer code are not tested #835

Closed
Hallberg-NOAA opened this issue Aug 16, 2018 · 2 comments
Closed

MOM6 interfaces to generic tracer code are not tested #835

Hallberg-NOAA opened this issue Aug 16, 2018 · 2 comments

Comments

@Hallberg-NOAA
Copy link
Collaborator

The MOM6 interface to the generic tracer code (which is shared with other older GFDL ocean models like MOM4 and GOLD) is hidden behind the CPP macro _USE_GENERIC_TRACER. This is done because the standard generic tracer code is huge, includes very large files (some greater than 12,000 lines in a file) that take a prohibitively long time to compile, and some of the generic tracer packages have not yet been made publicly available. However, in shielding this code behind a CPP macro, it is not being tested at all, and we have recently had bugs creep in.

(OK, so to rephrase this less passively, I broke the generic tracer code and did not realize it, and then had my broken changes accepted by everybody onto the common dev/master! To me this indicates a failure of testing!)

I propose providing a greatly simplified variant of the generic tracer packages to the code that is obtained with MOM6 from GitHub, perhaps with just one of the smaller packages like generic_CFC or generic_Argon, in its own directory under config_src for the purpose of testing the generic tracer interfaces. Note that the code in this directory would flagrantly contradict all of our MOM6 coding standards, which I do not like at all, but I think that we would just have to accept this. We could then eliminate the shielding CPP macro and improve our code coverage.

@jkrasting
Copy link
Contributor

jkrasting commented Aug 16, 2018 via email

@Hallberg-NOAA
Copy link
Collaborator Author

This has been solved by PR #1133 creating a stub for the generic tracers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants