mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Convert transport() and cross_surface() to C++
This commit is contained in:
parent
5af7510c40
commit
f8925b25be
21 changed files with 566 additions and 700 deletions
|
|
@ -29,11 +29,9 @@ namespace openmc {
|
|||
// data/functions from Fortran side
|
||||
extern "C" void accumulate_tallies();
|
||||
extern "C" void allocate_tally_results();
|
||||
extern "C" void init_tally_routines();
|
||||
extern "C" void setup_active_tallies();
|
||||
extern "C" void simulation_init_f();
|
||||
extern "C" void simulation_finalize_f();
|
||||
extern "C" void transport(Particle* p);
|
||||
extern "C" void write_tallies();
|
||||
|
||||
} // namespace openmc
|
||||
|
|
@ -76,9 +74,6 @@ int openmc_simulation_init()
|
|||
simulation::filter_matches.resize(model::tally_filters.size());
|
||||
}
|
||||
|
||||
// Set up tally procedure pointers
|
||||
init_tally_routines();
|
||||
|
||||
// Allocate source bank, and for eigenvalue simulations also allocate the
|
||||
// fission bank
|
||||
allocate_banks();
|
||||
|
|
@ -213,7 +208,7 @@ int openmc_next_batch(int* status)
|
|||
initialize_history(&p, simulation::current_work);
|
||||
|
||||
// transport particle
|
||||
transport(&p);
|
||||
p.transport();
|
||||
}
|
||||
|
||||
// Accumulate time for transport
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue