Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes a bug in the smoothing function for spherical patches that was identified during IGR development. The smoothing was only being applied inside the nominal radius of the patch, resulting in a grid level discontinuity. The old code generates the following IC
![old](https://private-user-images.githubusercontent.com/48168887/410152703-249017a0-a833-4a71-9fbe-62a93da7bf68.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Njg5NjQsIm5iZiI6MTczODg2ODY2NCwicGF0aCI6Ii80ODE2ODg4Ny80MTAxNTI3MDMtMjQ5MDE3YTAtYTgzMy00YTcxLTlmYmUtNjJhOTNkYTdiZjY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDE5MDQyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5ZmU1MzE3OWY4OTZiNWRkYzAwNzk1NjUxYjM0NzM5NzM3MjIzYTJlNTU0ZTcwNTVjNjBkMTA4NDIzMjAwNWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UBuajPDiEfuETJ9eIQI1KBsYWQUpdTGhgCfWCrStw3Y)
![new](https://private-user-images.githubusercontent.com/48168887/410152791-a8df1db0-aa28-41ff-bd5d-6cbd77e07234.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Njg5NjQsIm5iZiI6MTczODg2ODY2NCwicGF0aCI6Ii80ODE2ODg4Ny80MTAxNTI3OTEtYThkZjFkYjAtYWEyOC00MWZmLWJkNWQtNmNiZDc3ZTA3MjM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDE5MDQyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThmZGE4ZThlNzc0OGEyZWQ4MzcwZWI1NmZlMjM2NGZlZGY5ZDc2MTY2N2VjYzNkMDg0MTU4OGZmMWQyMTQ1OGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bHIXKwj7a-ZMZ1dmeAa0ktFy5_VtgpKwd0guB4OOzjU)
Which shows smoothing only on the sphere's interior and a discontinuity on the outer surface. The new code generates the following IC
which shows smoothing on both sides of the nominal radius of the patch. The smoothing coefficient for both ICs is identical.
Fixes #(issue) [optional]
Type of change
Scope