Convert transport() and cross_surface() to C++

This commit is contained in:
Paul Romano 2019-02-07 10:05:43 -06:00
parent 5af7510c40
commit f8925b25be
21 changed files with 566 additions and 700 deletions

View file

@ -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