From eac442f31c28fa490b1c3ec99b31425a4b510105 Mon Sep 17 00:00:00 2001 From: davidjohnlong Date: Thu, 12 Mar 2020 09:34:38 +0000 Subject: [PATCH] Move function description to header file --- include/openmc/source.h | 3 +++ src/source.cpp | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/openmc/source.h b/include/openmc/source.h index 34183e0b0..16d91fc56 100644 --- a/include/openmc/source.h +++ b/include/openmc/source.h @@ -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 diff --git a/src/source.cpp b/src/source.cpp index fee3be507..3b51b2373 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -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