-
Notifications
You must be signed in to change notification settings - Fork 29
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
KGeoBag deinitialization #92
KGeoBag deinitialization #92
Conversation
Update to Kassiopeia 3.2
…module of something else
…al and checking mixing in Locust MC.
…ia from Locust. The conditions are presently global and are defined in small functions that can be dropped into the appropriate static event modifier class. Modified classes are LMCKassSignalGenerator and KSRoot.
…tronRadiationExtractor::ExecutePostStepModification().
…tart of each Kass event.
…n thread status out of ReceivedEventStartCondition.
… KSTrajInterpolatorHermite.cxx pending more testing.
update to Kassiopeia 3.3.2
Feature/eventmod
Revert "Feature/eventmod"
Update to Kassiopeia 3.5
update to Kassiopeia 3.6.1
Check for Boost library as variable or imported target
Kassiopeia v3.7
Updates with examples
Build fixes on Docker
Update to v3.7.7
Kassiopeia v3.8.0
…ptop after upgrading Root version to > 6.16
…kasper_use_vtk=false.
… With vtk v9.1 the build works.
feature/v3.8.0
Kassiopeia v3.8.2
synchronize main branch
Thanks for this pull request, which looks like a fairly straightforward fix. |
Thanks for the reply. From the terminal output, it appears that only KGeoBag was affected. With the fix in place, we can run identical sequential Kassiopeia simulations inside one executable. |
Okay! I have no objections to this small change and I also don't see a better way to solve it right now. So I will just go ahead and merge this. |
Thank you! |
After more testing, it appears that the above KGeoBag objects that are persisting across multiple simulations are also needed for rendering in VTK graphics. So while this fix has optimized pileup calculations, it unfortunately seems to cause missing KGeoBag objects in graphical VTK outputs. |
Interesting. Do you change any geometry elements in these different simulations? |
Right, there were no other changes to the geometry elements when doing these tests. One possible idea would be to move the fix from the above location ^ to a later time after the VTK objects have been rendered. However, that might not work in a case where VTK is never instantiated. I also tried moving the fix into KSRoot, but there it still interfered with VTK's access to the KGeoBag objects. Additionally, I tried to make the above fix dependent on the flag KASPER_USE_VTK, but this was not successful because I think it's really a question of whether VTK is instantiated, instead of whether VTK has been compiled. |
I also have a different problem, namely that the I am assuming you are using the VTK writer to get a .vtp file for each simulation that can then be accessed separately? |
Thanks and yes, that is a good summary of the problem I am noticing - the
KVTKWindow is started after the KGeoBag deinitialization. I assume that
.vtp files would be similarly affected, but have not confirmed. In any
case I agree that the commit here needs to be reverted in favor of a fix
that can delete the KGeoBag objects, but without interfering with VTK's
access to them.
…On Wed, Jan 10, 2024 at 6:34 AM Richard S ***@***.***> wrote:
I also have a different problem, namely that the KVTKWindow is started
after the deinitialization so that I do not get any geometry elements
displayed via Kassiopeia's vtk viewer. Hence, I think I need to revert this
commit and we need to find a different solution.
I am assuming you are using the VTK writer to get a .vtp file for each
simulation that can then be accessed separately?
—
Reply to this email directly, view it on GitHub
<#92 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVBROLXVROSQRJ4PXMHA3DYNZ4EPAVCNFSM6AAAAABA2MJPWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGY3TQMBWHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This is a small change that seems to help when running multiple Kassiopeia simulations inside one executable (e.g. when modeling pileup). Without this change, there appear to geometry spaces that persist across repeated Kassiopeia simulations, which causes the error
multiple spaces registered for path ...
. There may be a more suitable location for this change, but this one can be suggested as a starting point.