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

Further test inverse relationship between CAM_var_conversion and SAM_var_conversion #86

Open
dorchard opened this issue Dec 4, 2024 · 0 comments

Comments

@dorchard
Copy link
Collaborator

dorchard commented Dec 4, 2024

Current tests in test_cam_interface.f90 test whether SAM_var_conversion is the left inverse of CAM_var_conversion, i.e., if f = CAM_var_conversion : CAM -> SAM and g = SAM_var_conversion : SAM -> CAM then we have tests that g . f = id, e.g.:

There is then an opportunity to test whether CAM_var_conversion is also the weak left inverse of SAM_var_conversion by checking f . g . f = f (this is sometimes called a 'semigroup inverse').

All we would need to do is save the outputs from the version conversion f and compare those with the results after an extra CAM_var_conversion.

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

1 participant