-
Notifications
You must be signed in to change notification settings - Fork 10
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
strang splitting does not work? #12
Comments
Does it make sense for your usecase to work with |
It's a simple function. Should it go in |
I suggest to hook into the |
Is there a Strang-split version of this? Otherwise I'll just use |
Yes, it's called Also this applies: https://github.com/parthenon-hpc-lab/athenapk/blob/main/src/hydro/hydro_driver.cpp#L160 |
Well, that's convenient. So I need to read from the cons variables and then update both cons and prim? |
What is the reason for this restriction ? Could this be simplified by adding another conserved -> primitive conversion step in the task list? |
yes (that's the "safe" option)
The current implementation is mostly motivated by performance concerns, which doesn't mean it has to stay that way. |
Ok, that makes sense. I agree about there being a performance cost, but I'd expect it to be very small - have you measured this? |
Yes, (but it also strongly depends on the total amount of physics included). |
That does indeed look strange. |
It looks like the gravitational potential is hard-coded to be only a function of radius:
athenapk/src/hydro/srcterms/gravitational_field.hpp
Line 52 in ca22b73
In general, it should be a function of all of the coordinates. (For my simulations, it should be a function of height.)
The text was updated successfully, but these errors were encountered: