Implement new fixed source bank model for custom library source. Additional non-member functions in source.cpp with function pointer saved in model namespace allow custom library to be opened, sampled as needed in initialize_history and closed.

This commit is contained in:
davidjohnlong 2020-03-06 14:00:47 +00:00
parent 0ae1077a39
commit 907459d02f
3 changed files with 65 additions and 30 deletions

View file

@ -65,8 +65,11 @@ extern "C" void initialize_source();
//! \return Sampled source site
Particle::Bank sample_external_source(uint64_t* seed);
//! Fill source bank at end of generation for fixed source simulations
void fill_source_bank_fixedsource();
//! Sample a site from custom source library
Particle::Bank sample_custom_source_library(uint64_t* seed);
void load_custom_source_library();
void close_custom_source_library();
//! Fill source bank at the end of a generation for dlopen based source simulation
void fill_source_bank_custom_source();