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

Fix typo in MLMGT<MF>::getGradSolution when MF is different from AMF #3631

Merged

Conversation

eebasso
Copy link
Contributor

@eebasso eebasso commented Nov 15, 2023

Summary

This PR fixes a small typo in MLMGT<MF>::getGradSolution that causes an error when AMR is distinct from MF. A test demonstrating the fix is added for the case where MF=MultiFab and AMF=iMultiFab.

Additional background

This typo was noticed when working on generalizing the MLMG template to the WIP class FabArraySet.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX

@WeiqunZhang
Copy link
Member

Thanks for fixing the bug! Could you merge development into this so that the Intel CIs can pass? Could you also use fMultiFab (i.e., FabArray<BaseFab<float>>) instead of iMultiFab in the test, because the data are floating point numbers?

@eebasso
Copy link
Contributor Author

eebasso commented Nov 15, 2023

You're welcome, and will do. 😀

@WeiqunZhang WeiqunZhang merged commit d171635 into AMReX-Codes:development Nov 16, 2023
69 checks passed
@eebasso eebasso deleted the MLMG-getGradSolution-possible-typo branch November 17, 2023 23:40
guj pushed a commit to guj/amrex that referenced this pull request Dec 13, 2023
…`AMF` (AMReX-Codes#3631)

## Summary

This PR fixes a small typo in `MLMGT<MF>::getGradSolution` that causes
an error when `AMR` is distinct from `MF`. A test demonstrating the fix
is added for the case where `MF`=`MultiFab` and `AMF`=`fMultiFab`.

## Additional background

This typo was noticed when working on generalizing the `MLMG` template
to the WIP class `FabArraySet`.

## Checklist

The proposed changes:
- [x] fix a bug or incorrect behavior in AMReX
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.

None yet

2 participants