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

more fixes for amr.subcycling_mode = None + retry #2824

Merged

Conversation

zingale
Copy link
Member

@zingale zingale commented Apr 12, 2024

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

@yut23
Copy link
Collaborator

yut23 commented Apr 18, 2024

Is this bite taken out of the secondary an issue? inputs_2d_collision.test says it sets problem.collision_separation = 1.25 to start with the stars already merging, but these don't look like very well-behaved initial conditions.
Screenshot from 2024-04-18 19-11-08

@zingale
Copy link
Member Author

zingale commented Apr 19, 2024

if you build Sedov in 2D and run as:

./Castro2d.gnu.MPI.ex inputs.2d.sph_in_cylcoords castro.change_max=1.01 amr.subcycling_mode=None castro.fixed_dt=2.e-5

then it retries after step 2 and dies in the Riemann solver

@zingale
Copy link
Member Author

zingale commented Apr 19, 2024

actually, it runs if we add castro.riemann_solver=0

@zingale
Copy link
Member Author

zingale commented Apr 19, 2024

okay... with this PR, the Sedov retries a bit at the start and then runs fine. Looking at the output, it looks reasonable (by eye). I will compare to the subcycling case in a bit.

On development, it constantly retries and then dies with too many subcycles.

So I think that these fixes are needed.

@yut23
Copy link
Collaborator

yut23 commented Apr 19, 2024

This number (which I'm assuming is some sort of placeholder) seems to be leaking into the state variables. Changing it to 1.e40 changes all the invalid density values, for example from -5e+65 to -5e+45.

grad_phi_curr[level][n]->setVal(1.e50);

@zingale
Copy link
Member Author

zingale commented Apr 20, 2024

@zingale zingale merged commit 4ef6d25 into AMReX-Astro:development Apr 21, 2024
25 checks passed
@zingale zingale deleted the more_no_subcycling_retry_fixes branch April 21, 2024 00:09
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