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

Add halo update for calvingVelocity before calling li_apply_front_ablation_velocity from von_Mises_calving #28

Merged

Conversation

trhille
Copy link

@trhille trhille commented Apr 13, 2022

Previously, von Mises calving results were not bit-for-bit across different numbers of processors. Adding a halo update for calvingVelocity before calling li_apply_front_ablation_velocity fixes that issue. Eigencalving does not seem to require a halo update, which could mean that the issue is rooted in one or more of the fields that are used to calvingVelocity in the von_Mises_calving routine. This also updates the description of li_apply_front_ablation_velocity to include a note that this halo update may need to be performed before the call.

@trhille
Copy link
Author

trhille commented Apr 13, 2022

I tested this using @matthewhoffman's tests in MPAS-Dev/compass#318. I had to change config_calving_eigencalving_parameter_scalar_value from 3.14e16 to 3.14e14 to avoid the >10% failed ablation error. This error still occurred during the eigencalving restart run, however, which is somewhat confusing. Perhaps PR #27 will fix that issue. The ismip6_retreat routine already had a halo update for calvingVelocity before calling li_apply_front_ablation_velocity, but is still failing the validation step. That might need a separate PR.
Results using this branch:

Test Runtimes:
01:02 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-none
01:02 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-floating
01:03 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-eigencalving
01:03 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-specified_calving_velocity
01:03 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-von_mises_stress
01:03 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-damagecalving
01:03 FAIL landice_humboldt_mesh-default_decomposition_test_velo-none_calving-ismip6_retreat
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-none
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-floating
00:20 FAIL landice_humboldt_mesh-default_restart_test_velo-none_calving-eigencalving
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-specified_calving_velocity
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-von_mises_stress
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-damagecalving
00:23 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-ismip6_retreat
Total runtime 09:52
FAIL: 2 tests failed, see above.

Results using MALI-Dev/develop:

Test Runtimes:
01:01 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-none
01:02 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-floating
01:02 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-eigencalving
01:02 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-specified_calving_velocity
01:02 FAIL landice_humboldt_mesh-default_decomposition_test_velo-none_calving-von_mises_stress
01:02 PASS landice_humboldt_mesh-default_decomposition_test_velo-none_calving-damagecalving
01:03 FAIL landice_humboldt_mesh-default_decomposition_test_velo-none_calving-ismip6_retreat
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-none
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-floating
00:20 FAIL landice_humboldt_mesh-default_restart_test_velo-none_calving-eigencalving
00:23 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-specified_calving_velocity
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-von_mises_stress
00:22 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-damagecalving
00:23 PASS landice_humboldt_mesh-default_restart_test_velo-none_calving-ismip6_retreat
Total runtime 09:48
FAIL: 3 tests failed, see above.

Results from von Mises calving were not bit-for-bit across
different numbers of processors. This fixes that issue. It is not
apparent why this is necessary here, and why it is not necessary
for eigencalving, so perhaps the issue is rooted in the fields
used to calculate calvingVelocity in the von_Mises_calving routine.
@trhille trhille force-pushed the add_calvingVelocity_halo_updates branch from cf74863 to 80598aa Compare April 13, 2022 17:42
@trhille trhille changed the title Add halo updates for calvingVelocity before calling li_apply_front_ablation_velocity Add halo update for calvingVelocity before calling li_apply_front_ablation_velocity from von_Mises_calving Apr 13, 2022
@trhille trhille requested a review from matthewhoffman April 13, 2022 18:17
Copy link

@matthewhoffman matthewhoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for rooting this out, @trhille . I don't see any problems and it passes all the COMPASS tests (as expected as none of the code changed is exercised by our primary COMPASS tests). Thanks for reporting the results of the calving tests. We'll have to dig into those other issues later.

@matthewhoffman matthewhoffman merged commit 8df83d9 into MALI-Dev:develop Apr 14, 2022
@trhille trhille deleted the add_calvingVelocity_halo_updates branch April 18, 2022 19:03
matthewhoffman pushed a commit that referenced this pull request Dec 19, 2022
…5183)

Add mpas-framework support for several other attributes

Adds parsing support to the mpas-framework for the following attributes:
* bounds
* cell_measures
* cell_method
* coordinates
* standard_name
See additional discussion in E3SM-Ocean-Discussion PR #28

[BFB]
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.

2 participants