mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Rename create -> openmc_create_source
This commit is contained in:
parent
fae474869c
commit
0bb5030ee0
3 changed files with 3 additions and 3 deletions
|
|
@ -62,6 +62,6 @@ class ParameterizedSource : public openmc::CustomSource {
|
|||
// A function to create a pointer to an instance of this class when generated
|
||||
// via a plugin call using dlopen/dlsym.
|
||||
// You must have external C linkage here otherwise dlopen will not find the file
|
||||
extern "C" ParameterizedSource* create(const char* parameters) {
|
||||
extern "C" ParameterizedSource* openmc_create_source(const char* parameters) {
|
||||
return ParameterizedSource::from_string(parameters);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -380,7 +380,7 @@ void load_custom_source_library()
|
|||
custom_source_function = reinterpret_cast<sample_t>(dlsym(custom_source_library, "sample_source"));
|
||||
} else {
|
||||
// get the function to create the CustomSource from the library
|
||||
create_custom_source_t* create_custom_source = (create_custom_source_t*) dlsym(custom_source_library, "create");
|
||||
create_custom_source_t* create_custom_source = (create_custom_source_t*) dlsym(custom_source_library, "openmc_create_source");
|
||||
|
||||
// create a pointer to an instance of the CustomSource
|
||||
custom_source = create_custom_source(custom_source_parameters.c_str());
|
||||
|
|
|
|||
|
|
@ -55,6 +55,6 @@ class ParameterizedSource : public openmc::CustomSource {
|
|||
|
||||
// you must have external C linkage here otherwise
|
||||
// dlopen will not find the file
|
||||
extern "C" ParameterizedSource* create(const char* parameters) {
|
||||
extern "C" ParameterizedSource* openmc_create_source(const char* parameters) {
|
||||
return ParameterizedSource::from_string(parameters);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue