Added internal infrastructure for dlopen based shared object sources

This commit is contained in:
Andrew Davis 2019-06-13 09:15:21 +01:00 committed by Andrew Davis
parent bdde630536
commit 39672e79b0
4 changed files with 59 additions and 1 deletions

View file

@ -60,6 +60,7 @@ extern std::string path_input; //!< directory where main .xml files r
extern std::string path_output; //!< directory where output files are written
extern std::string path_particle_restart; //!< path to a particle restart file
extern std::string path_source;
extern std::string path_source_library; //!< path to the source shared object
extern std::string path_sourcepoint; //!< path to a source file
extern "C" std::string path_statepoint; //!< path to a statepoint file

View file

@ -59,6 +59,10 @@ private:
//! Initialize source bank from file/distribution
extern "C" void initialize_source();
// as yet uncreated function to sample a source from a shared object
//
// extern "C" Particle::Bank sample_source();
//! Sample a site from all external source distributions in proportion to their
//! source strength
//! \param[inout] seed Pseudorandom seed pointer