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

Adding templating to the MFInterp functions #4328

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

bsrunnels
Copy link
Contributor

@bsrunnels bsrunnels commented Feb 10, 2025

Summary

Adding templating to the MFInterp functions.

Additional background

This enables codes that use BaseFab (instead of MultiFabs) to use the MFInterp methods.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

void mf_cell_cons_lin_interp_limit_minmax_llslope (int i, int, int, Array4<Real> const& slope,
Array4<Real const> const& u, int scomp, int ncomp,
void mf_cell_cons_lin_interp_limit_minmax_llslope (int i, int, int, Array4<T> const& slope,
Array4<T const> const& u, int scomp, int ncomp,
Box const& domain, IntVect const& ratio, BCRec const* bc) noexcept
{
Real sfx = Real(1.0);
Copy link
Member

Choose a reason for hiding this comment

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

Should we use T here and other places in this function too?

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