Move function description to header file

This commit is contained in:
davidjohnlong 2020-03-12 09:34:38 +00:00
parent cc2017786b
commit eac442f31c
2 changed files with 3 additions and 5 deletions

View file

@ -68,7 +68,10 @@ Particle::Bank sample_external_source(uint64_t* seed);
//! Sample a site from custom source library
Particle::Bank sample_custom_source_library(uint64_t* seed);
//Load custom source library
void load_custom_source_library();
//Release custom source library
void close_custom_source_library();
//! Fill source bank at the end of a generation for dlopen based source simulation

View file

@ -349,7 +349,6 @@ void free_memory_source()
model::external_sources.clear();
}
//Load custom source library
void load_custom_source_library()
{
#ifdef HAS_DYNAMIC_LINKING
@ -378,22 +377,18 @@ void load_custom_source_library()
fatal_error("Custom source libraries have not yet been implemented for "
"non-POSIX systems");
#endif
}
//Release custom source library
void close_custom_source_library()
{
dlclose(custom_source_library);
}
//Sample source particle from custom library
Particle::Bank sample_custom_source_library(uint64_t* seed)
{
return custom_source_function(*seed);
}
// fill the source bank from the external source
void fill_source_bank_custom_source()
{
// Load the custom library