-
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
Fix: No more MeshData parent pointers in torus history callbacks #209
Conversation
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.
@AstroBarker while you already doing this, change this to sparse pack and we can delete my PR.
Radiation test currently failing, looks like
If someone wants to point me to the correct syntax for doing from |
Sorry it's a bit gross. We should really make it possible to just pass in Mesh *pmesh = md->GetMeshPointer();
auto &resolved_pkgs = pmesh->resolved_packages; |
The |
Maybe the code @mari2895 and I were looking at was old? The issue I saw was that |
@Yurlungur No, it's from my PR (#207) where I changed to sparse pack. It is not merged in main but I merged into my brach. |
Can you point me to the function? I must have been confused. |
@Yurlungur that's exactly what I was doing, passing MeshData and you said it's wrong. |
This is about CalcMassFlux argument. That's how I understood what @Yurlungur said that that function cannot take MeshData. |
I was probably unclear---my apologies. I'm very scatterbrained right now. In @mari2895 's code, I saw a call to |
I think I see now. The |
Yeah we can close both. Sorry for the confusion @AstroBarker . |
As pointed out in #208, there was improper use of
MeshData
pointers in the torus history callback functions. This was there in order to grab a couple of params, namely the event horizonxh
and cutoff magnetization valuesigma_cutoff
. I've removedMeshData
parent pointers and instead pass the relevant pieces into the functions, lambda captured into the callbacks.