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

refactor SDC Newton solver to use burn_t #2600

Merged
merged 8 commits into from
Oct 6, 2023

Conversation

zingale
Copy link
Member

@zingale zingale commented Oct 5, 2023

this cleans up some interfaces and reduces memory requirements.

PR summary

PR motivation

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

@zingale
Copy link
Member Author

zingale commented Oct 5, 2023

@zingale zingale changed the title [WIP] refactor SDC Newton solver to use burn_t refactor SDC Newton solver to use burn_t Oct 5, 2023
@zingale
Copy link
Member Author

zingale commented Oct 5, 2023

this is ready for review. I will follow it up with more cleaning, but I wanted to get these changes in first.

@zingale
Copy link
Member Author

zingale commented Oct 5, 2023

okay, test suite passes now with no diffs:
http://groot.astro.sunysb.edu/Castro/test-suite/gfortran/2023-10-05-006/index.html

// reevaluating the reactions and { doing the full step update
single_zone_react_source(U_new, R_full, burn_state);
// we solved our system to some tolerance, but let's be sure
// we are conservative by reevaluating the reactions and {
Copy link
Member

Choose a reason for hiding this comment

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

superfluous {

Copy link
Member Author

Choose a reason for hiding this comment

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

why?
The idea is that we might have done it one a little bit at a time, and next we want to do it in terms of averages and as a single update

Copy link
Member Author

Choose a reason for hiding this comment

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

oh... I see what you mean ;)

@zingale zingale merged commit 83b0e3a into AMReX-Astro:development Oct 6, 2023
18 checks passed
@zingale zingale deleted the sdc_reuse_burn_state branch October 6, 2023 15:48
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