-
Notifications
You must be signed in to change notification settings - Fork 97
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
NaN values encountered when trying to setup user-defined auxiliary variables #2982
Comments
Thanks for the easy reproduction instructions, they help a lot! My first step for debugging is always to build with If I set Z=1.0 in |
Great, thanks a lot! |
The issue is Castro::do_new_sources will fail if the state multifabs it gets does not have ghost cells and problem source function needs ghost cells. If you do the following changes, the test will run. But It's probably not the right way to fix it, because of the extra communications even when it's not needed. Maybe we only need to do that when UFX exists?
|
First of all, thanks a lot for developing Castro ; the code is very useful to me!
I recently tried to use auxiliary variables (described in this page of the documentation, accessed with
UFX
, etc.). More specifically, I did a small test where I started from the 1D Sedov example and added an auxiliary variable that is supposed to mirror exactlyeint_e
(as a way to check that the variable behaves as expected): see changes in the commit belowRemiLehe@ccfd30f
However, when running this example, I get an error message:
Is this expected? Is there a way to work around this?
How to easily reproduce this issue
Clone my fork from Castro and switch to the branch
test_aux_variables
(this branch is identical to the currentmain
branch of Castro, but with the additional commit listed above). Then run the 1d Sedov cylindrical test.The text was updated successfully, but these errors were encountered: