Make regular source distributions obey the same interface as custom sources

This commit is contained in:
Paul Romano 2020-10-22 15:05:43 -05:00
parent 8f71ed2a1d
commit 713469bf59
8 changed files with 38 additions and 36 deletions

View file

@ -6,8 +6,7 @@
#include "openmc/source.h"
#include "openmc/particle.h"
class Source : public openmc::CustomSource
{
class Source : public openmc::SourceDistribution {
public:
Source(double radius, double energy) : radius_(radius), energy_(energy) { }