Closed guadabsb15 closed 7 years ago
my experiementation.
Results look bad as shown above when using Castro 16.12 together with current BoxLib and Microphysics
Results look good when using the version from just 5 days earlier, af6370b, with current BoxLib, and older Microphysics (037b1ce). We need the older Microphysics to compile.
Good news is that we can use the latest BoxLib for all this testing -- it is not the culprit.
I can confirm that the badness that shows up at C-F interface around early Dec. occurs to this change:
commit 862ab80e25d884641557228a972f2e115d7604f6
Author: Max Katz <maximilian.katz@stonybrook.edu>
Date: Fri Nov 25 17:56:39 2016 -0500
clean_state now calls computeTemp
If I run after that, it looks bad. If I manually revert that one-line change in the source after that point, it looks great again.
Additionally, fixing the bug of leaving this out of the other clean_state
does not fix things.
Here's an easy way to confirm this:
Castro/Exec/science/bwp-rad
as:
make DIM=2 -j 4 COMP=gnu USE_RAD=FALSE DEBUG=FALSE
mpiexec -n 4 ./Castro2d.gnu.MPI.ex inputs_2d
If you do this, you'll see the artifacts at C-F interfaces.
But... modify Castro.cpp
and comment out the computeTemp
lines in both clean_state
routines, and it goes away
Some plots.(all put on the same scale)
computeTemp
commented out in both clean_state
s:computeTemp
in clean_state
, but with the call to reset_internal_energy
in computeTemp
commented out:also note that running the code from 16.10 looks great (you need to copy the inputs, probin, and model file from development)
from Max:
I also discovered that in the current version of the code, the problem goes away if you set castro.dual_energy_eta2 = 1.0. This has the effect of never resetting the internal energy to be equal to (total - kinetic). I assume one does not need to be so extreme, but I didn't test intermediate values relative to the default (1.e-4).
closing for now, since this problem is not active at the moment
I observed the Temp field changing from November to the present running the same setup. I don't see appreciable changes in other fields like density and magvel at the same simulation time.
Based on the test suite list in (Castro/Util/regression_testing/hash_pairings.txt), the two changes were introduced on date 2016-12-01-001 and 2017-01-10-001. The following table shows the Temp field before this changes and then at each of the previous dates in chronological order.
The details of the two dates are:
2016-12-01-001
2017-01-10-001