-
Notifications
You must be signed in to change notification settings - Fork 2
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
Inconsistent behavior between CPU and GPU for liebendorf deleptonization and cooling #184
Conversation
@carlnotsagan do you encounter the same issue when running lightbulb with @mari2895 's CCSN problem initialization? If not maybe it has to do with changes in the SASW branch? Can you share the code for SASW in a PR? |
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.
@mari2895 can you briefly skim this to make sure you agree? Then I will merge.
thanks for merging main, should be all good now |
Looks like tests are still failing? |
looking into the fails. something to do with a reference to pmb |
src/radiation/cooling_function.cpp
Outdated
@@ -39,7 +39,8 @@ TaskStatus LightBulbCalcTau(MeshBlockData<Real> *rc) { | |||
IndexRange jb = rc->GetBoundsJ(IndexDomain::interior); | |||
IndexRange kb = rc->GetBoundsK(IndexDomain::interior); | |||
|
|||
auto &unit_conv = params.Get<phoebus::UnitConversions>("unit_conv"); |
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.
@Yurlungur should not auto &unit_conv = params.Get<phoebus::UnitConversions>("unit_conv");
be working?
src/radiation/cooling_function.cpp
Outdated
// Code to CGS | ||
const Real density_conversion_factor = unit_conv.GetMassDensityCodeToCGS(); | ||
const Real temperature_conversion_factor = unit_conv.GetTemperatureCodeToCGS(); | ||
const Real length_conversion_factor = unit_conv.GetLengthCodeToCGS(); | ||
|
||
// CGS to code | ||
const Real energy_conversion_factor = unit_conv.GetEnergyCGSToCode(); | ||
const Real mass_conversion_factor = unit_conv.GetMassCGSToCode(); | ||
const Real time_conversion_factor = unit_conv.GetTimeCGSToCode(); |
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.
These lines probably don't need to be here, because the same definitions are above in the same function.
…to fix_typo_cooling
Issue:
when using
cooling_function
with SASW/homologous problem. returns error::0: : block: [3,0,0], thread: [0,0,0] Assertion
View bounds error of view p.densityfailed.
after first step
this backtraces to:
the cooling function
Host function was being called from device function leading to issues on GPU.
Steps Taken: