Rename source classes

This commit is contained in:
Paul Romano 2020-10-23 13:45:28 -05:00
parent f2526ec439
commit 0bb39005bc
8 changed files with 46 additions and 41 deletions

View file

@ -5,7 +5,7 @@
#include "openmc/source.h"
#include "openmc/particle.h"
class Source : public openmc::SourceDistribution
class RingSource : public openmc::Source
{
openmc::Particle::Bank sample(uint64_t* seed)
{
@ -30,7 +30,7 @@ class Source : public openmc::SourceDistribution
// A function to create a unique 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" std::unique_ptr<Source> openmc_create_source(std::string parameters)
extern "C" std::unique_ptr<RingSource> openmc_create_source(std::string parameters)
{
return std::make_unique<Source>();
return std::make_unique<RingSource>();
}