mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
broke up history-based method into discrete events
This commit is contained in:
parent
d1b5810688
commit
69d782f315
3 changed files with 304 additions and 1 deletions
|
|
@ -919,8 +919,17 @@ int openmc_next_batch(int* status)
|
|||
p.transport();
|
||||
}
|
||||
*/
|
||||
#pragma omp parallel for schedule(runtime)
|
||||
for (int64_t i_work = 1; i_work <= simulation::work_per_rank; ++i_work) {
|
||||
// grab source particle from bank
|
||||
Particle p;
|
||||
initialize_history(&p, i_work);
|
||||
|
||||
transport();
|
||||
// transport particle
|
||||
p.transport_history_based();
|
||||
}
|
||||
|
||||
//transport();
|
||||
|
||||
// Accumulate time for transport
|
||||
simulation::time_transport.stop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue