Microphysics
Microphysics copied to clipboard
common astrophysical microphysics routines with interfaces for the different AMReX codes
most adding inline to avoid ODR issues
test_nse inputs: ``` unit_test.small_temp = 1.e5 unit_test.small_dens = 1.e5 unit_test.density = 2.e8 unit_test.temperature = 3.9999999999999981e9 unit_test.X1 = 1.e-10 unit_test.X2 = 0.99999999839999998 unit_test.X3 = 1.e-10 unit_test.X4 = 1.e-10 unit_test.X5 = 1.e-10...
This is just for Zhi to test with. It also occurs to me that putting these factors in parentheses might do the same thing, but more consistently.
This assumes that there are only 2 species: ions and neutrals, and that they have the same mass. Electrons are assumed massless. There is a single gamma for all species....
I ported the Fortran code to Python, then added some C++ and Python codegen for us to play with. It's currently set up to generate code for aprox13. With the...
These flags (`-mllvm -amdgpu-function-calls=true`) work around AMDGPU compiler bugs when building very large kernels (the primordial chemistry network, the larger nuclear networks). We should have CMake add them automatically when...
ROCm seems to have trouble with large kernels, leading to memory issues. We can try to create a reproducer using `test_react`, starting with a small net and make bigger and...