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

change target to pointer and check for association #529

Conversation

raphaeldussin
Copy link

attempting to solve problem raised by @gustavo-marques in mom-ocean#1616

@marshallward
Copy link
Member

marshallward commented Dec 4, 2023

This looks like it should resolve the issue raised by @gustavo-marques and @alperaltuntas.

@raphaeldussin Would you mind rebasing this against dev-gfdl-main-candidate-2023-11-13 and directing the PR to that branch?

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

Attention: 100 lines in your changes are missing coverage. Please review.

Comparison is base (7ef6a57) 37.45% compared to head (8c03cbb) 37.48%.

Files Patch % Lines
src/equation_of_state/MOM_EOS.F90 38.09% 45 Missing and 7 partials ⚠️
src/equation_of_state/MOM_EOS_base_type.F90 54.09% 27 Missing and 1 partial ⚠️
src/equation_of_state/MOM_EOS_Roquet_SpV.F90 97.61% 2 Missing and 1 partial ⚠️
src/equation_of_state/MOM_EOS_Roquet_rho.F90 97.34% 2 Missing and 1 partial ⚠️
src/equation_of_state/MOM_EOS_TEOS10.F90 90.90% 3 Missing ⚠️
src/equation_of_state/MOM_EOS_Wright_full.F90 96.51% 2 Missing and 1 partial ⚠️
src/equation_of_state/MOM_EOS_Wright_red.F90 96.47% 2 Missing and 1 partial ⚠️
src/tracer/MOM_hor_bnd_diffusion.F90 71.42% 2 Missing ⚠️
src/core/MOM_open_boundary.F90 0.00% 1 Missing ⚠️
...parameterizations/vertical/MOM_set_diffusivity.F90 0.00% 0 Missing and 1 partial ⚠️
... and 1 more
Additional details and impacted files
@@                          Coverage Diff                           @@
##           dev-gfdl-main-candidate-2023-11-13     #529      +/-   ##
======================================================================
+ Coverage                               37.45%   37.48%   +0.03%     
======================================================================
  Files                                     270      271       +1     
  Lines                                   79765    79535     -230     
  Branches                                14831    14819      -12     
======================================================================
- Hits                                    29879    29817      -62     
+ Misses                                  44350    44176     -174     
- Partials                                 5536     5542       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

adcroft and others added 5 commits December 4, 2023 15:20
- Added a base class in MOM_EOS_base_type.F90
- All EOS modules now extend this base class
  - This reduces replicated code between the EOS modules
- All existing APIs in MOM_EOS now avoid branching for the type of
  EOS and ultimately pass through to a low-level elemental function
  implementation of the actual EOS
- Added a new elemental function exposed by MOM_EOS
  (currently not used in the main model)
- There is a speed up over the previous form of EOS due to the
  reduced branching
  - For some functions, a local implementation of the base class member is
    needed to gain performance. I deliberately did not implement this
    optimization for UNESCO or Jackett06 so that the generic implementation
    of the base class is utilized and we have code coverage.
- Added rules to .testing/Makefile to invoke build.timing, run.timing for the
  "target" code checked out for regression tests
- Appended to existing GH "perfmon" workflow
  Added or corrected the units in comments describing about 200 real variables
in MOM_hor_bnd_diffusion and MOM_neutral_diffusion, and corrected spelling
errors or other issues in about another 20 comments.  Only comments are changed
and all answers are bitwise identical.
  Fix unpaired parentheses in the format statement used in an error message
about OBC segment data not being on the supergrid.  All answers are bitwise
identical, but there is one less compile-time warning.
@raphaeldussin raphaeldussin changed the base branch from dev/gfdl to dev-gfdl-main-candidate-2023-11-13 December 4, 2023 20:23
@marshallward
Copy link
Member

@alperaltuntas Can you check this if PR fixes the issue you saw?

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

Successfully merging this pull request may close these issues.

4 participants