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

Convert hdterm and hdterm3 to C++ #2625

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Conversation

maxpkatz
Copy link
Member

@maxpkatz maxpkatz commented Oct 9, 2023

PR summary

PR checklist

  • test suite needs to be run on this PR
  • this PR will change answers in the test suite to more than roundoff level
  • all newly-added functions have docstrings as per the coding conventions
  • the CHANGES file has been updated, if appropriate
  • if appropriate, this change is described in the docs

@maxpkatz maxpkatz marked this pull request as ready for review October 9, 2023 20:50
@zingale
Copy link
Member

zingale commented Oct 9, 2023

there's a crash in the test suite for rad-thermalwave-3d

@zingale
Copy link
Member

zingale commented Oct 9, 2023

compliation failure actually

@maxpkatz
Copy link
Member Author

maxpkatz commented Oct 9, 2023

compliation failure actually

fixed

{
if (mask.contains(i+icp,j+jcp,k+kcp)) {
if (mask(i+icp,j+jcp,k+kcp) > 0) {
if (bct == LO_DIRICHLET) {
Copy link
Member

Choose a reason for hiding this comment

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

do we want to throw an error if they come in with the wrong boundary type? That's the only real diff with the Fortran

// group is for cell edges.

int icp = 0;
int jcp = 0;
Copy link
Member

Choose a reason for hiding this comment

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

we have this same code now in several places.. Maybe we should make an inline function with this and return things via structured binding? Doesn't need to be this PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, one of my plans after we finish the Fortran conversion is to do a bunch of cleanup on this since there's a bunch of similar-ish functions across the three Hypre ABEC implementations

@zingale zingale merged commit 9b81621 into AMReX-Astro:development Oct 10, 2023
18 checks passed
@maxpkatz maxpkatz deleted the cxx-hdterm branch October 10, 2023 17:05
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