mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Adding empty constructor to Surface. Might remove usefulness of explicit constructors.
This commit is contained in:
parent
4a43e28560
commit
85722f5e5f
2 changed files with 5 additions and 2 deletions
|
|
@ -65,6 +65,7 @@ public:
|
|||
std::vector<int> neighbor_neg_; //!< List of cells on negative side
|
||||
|
||||
explicit Surface(pugi::xml_node surf_node);
|
||||
explicit Surface();
|
||||
|
||||
virtual ~Surface() {}
|
||||
|
||||
|
|
@ -117,7 +118,7 @@ protected:
|
|||
class CADSurface : public Surface
|
||||
{
|
||||
public:
|
||||
explicit CADSurface(pugi::xml_node surf_node);
|
||||
explicit CADSurface();
|
||||
double evaluate(const double xyz[3]) const;
|
||||
double distance(const double xyz[3], const double uvw[3],
|
||||
bool coincident) const;
|
||||
|
|
|
|||
|
|
@ -138,6 +138,8 @@ void read_coeffs(pugi::xml_node surf_node, int surf_id, double &c1, double &c2,
|
|||
// Surface implementation
|
||||
//==============================================================================
|
||||
|
||||
Surface::Surface() {}
|
||||
|
||||
Surface::Surface(pugi::xml_node surf_node)
|
||||
{
|
||||
if (check_for_node(surf_node, "id")) {
|
||||
|
|
@ -243,7 +245,7 @@ Surface::to_hdf5(hid_t group_id) const
|
|||
// CADSurface implementation
|
||||
//==============================================================================
|
||||
|
||||
CADSurface::CADSurface(pugi::xml_node surf_node) : Surface {surf_node} {} // empty constructor
|
||||
CADSurface::CADSurface() :Surface{} {} // empty constructor
|
||||
|
||||
double CADSurface::evaluate(const double xyz[3]) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue