Skip to content

Conversation

@mgduda
Copy link
Contributor

@mgduda mgduda commented Mar 21, 2024

This PR generalizes the mpas_sphere_angle function so that provides correct results for non-unit-radius spheres.

The methods previously employed in the mpas_sphere_angle function for computing the side lengths of a spherical triangle were only applicable to unit-radius spheres. This PR generalizes the computation of these side lengths so that the mpas_sphere_angle function can be used to compute spherical angles on spheres of arbitrary radius.

…eres

The methods previously employed in the mpas_sphere_angle function for computing
the side lengths of a spherical triangle were only applicable to unit-radius
spheres. This commit generalizes the computation of these side lengths so that
the mpas_sphere_angle function can be used to compute spherical angles on
spheres of arbitrary radius.
@mgduda
Copy link
Contributor Author

mgduda commented Mar 21, 2024

Although the changes in this PR generalize a geometry function, that generalization leads immediately to a fix for Issue #1149.

@mgduda mgduda merged commit c5c46e7 into MPAS-Dev:hotfix-v8.0.2 Mar 22, 2024
@mgduda mgduda deleted the operators/sphere_angle_nonunit_radius_fix branch March 22, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remapping of terrain height and other static fields is incorrect for bdyMaskCell == 7 cells

1 participant