-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
Adding needed functionality to nonhom_grip.py #2035
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2035 +/- ##
==========================================
- Coverage 61.33% 57.59% -3.75%
==========================================
Files 75 77 +2
Lines 8602 8737 +135
==========================================
- Hits 5276 5032 -244
- Misses 3326 3705 +379
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
from tardis.montecarlo.montecarlo_numba.numba_config import ENABLE_NONHOMOLOGOUS_EXPANSION | ||
|
||
@njit(**njit_dict_no_parallel) | ||
def velocity(r_packet, shell_id, numba_model): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
piecewise_linear
v = velocity(r_packet, shell_id, numba_model) | ||
r = r_packet.r | ||
dvdr = dvdr(shell_id, numba_model) | ||
mu = r_packet.mu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write where the formula is from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I add that to the individual functions?
4869133
to
79b012d
Compare
This has been done now right? |
📝 Description
Adding nonhom_grid.py that includes velocity and $ \frac{dv}{dr}$ functions for shells and finding tau_sobolev_factor
Some of the changes shown here are part of #2024
Also, link issues affected by this pull request by using the keywords:
close
,closes
,closed
,fix
,fixes
,fixed
,resolve
,resolves
orresolved
.📌 Resources
Examples, notebooks, and links to useful references.
🚦 Testing
How did you test these changes?
☑️ Checklist
build_docs
label