-
Notifications
You must be signed in to change notification settings - Fork 3
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
Volume declaration order violation (should not be able to reference what is next) #5
Comments
The usage of As for the rest, it is possible to add additional sorting operation before conversion to string. For large files, it could be expensive though. |
It does not matter, I think this bug will reproduction for any volume if his usage will be split on several part. |
How to set world volume? |
World is defined here: https://github.com/mipt-npm/gdml.kt/blob/4369ac0477f0bb6eaede6d09fae068b0c242220a/src/commonMain/kotlin/scientifik/gdml/GDML.kt#L45. It uses the one in setup, otherwise takes first declared volume in structure. The second clause could create some problems. I've opened #6 for that. |
It is not a bug per se. The problem is that you say that GEANT does not read the whole structure before starting to interpret it. So the behavior needs to be adjusted. |
Package don't make true order of volume structure.
Code:
Result --- volume
vol1
define after its using:In my gdml dsl i sorted tag by its children:
The text was updated successfully, but these errors were encountered: