Comments (5)
Ah, I guess I didn't know that multiple "beam on" could be run per execution 😅 The intended behavior for SharedParams
is to be set up once and torn down once. We don't want to recreate the VecGeom geometry every time we run a beam, for example. If begin/end of run is potentially called multiple times per execution, what's the right way to "initialize on startup" and "finalize on teardown"?
from celeritas.
It depends... Between runs, Geant4 is in its "idle" state and so the geometry can completely change, the physics can change in certain aspects like parameters and (de)activation of some models (but it's much more limited). I'll have a look through the examples for the relevant cases and what/how gets triggered to rebuild.
However, would a useful first step be to simply allow multiple runs under the assumption that there are no changes in geometry/physics? The canonical use case is simply changing the particle gun configuration between runs and nothing else.
from celeritas.
Huh, I didn't know the physics or geometry could change after the program started... it certainly seems like you can't change anything after closing the run manager which is where my misconception comes from.
from celeritas.
@sethrj, given the update in drbenmorgan/celer-adept#6, should we close this? Or leave open to note as a possible feature for the future if a hard requirement comes along?
from celeritas.
I could go either way, but I think you're right that this will be almost impossible to support (and not much better than restarting the whole simulation) since we won't be able to tell what GPU data needs to be regenerated and what can stay the same. We'd basically have to reload Celeritas every time to be safe.
from celeritas.
Related Issues (20)
- Implement single-track CPU for performance and improve integration HOT 6
- Implement CPU-only G4MagneticField wrapper
- Generate input documentation from app structs HOT 1
- Parameterized source distributions
- Better statistics from celer-sim
- Integrate Perfetto for optional CPU profiling HOT 3
- Require one event at a time HOT 1
- Use logical rather than physical navigation state to reconstruct G4NavigationHistory
- Support union boundaries
- Cleanup tasks for v1.0
- Add particle weight to simulations
- Muon Beam Physics
- Implement short-circuit volume evaluation using infix notation HOT 1
- Improve physics memory utilization and performance
- Replace StreamStore and helpers with reduction function
- Construct optical photon physics cross section tables HOT 2
- `G4VDecayChannel`: `G4MuonDecayChannel` HOT 1
- Optimize track vector data layout for particle types
- Debug parallel crashes running with multiple streams on Frontier
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celeritas.