broke up history-based method into discrete events

This commit is contained in:
John Tramm 2020-01-03 22:50:41 +00:00
parent d1b5810688
commit 69d782f315
3 changed files with 304 additions and 1 deletions

View file

@ -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();