mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Some cleanup from self-review
This commit is contained in:
parent
a5a98fdfcd
commit
f7220b62db
7 changed files with 26 additions and 38 deletions
|
|
@ -24,15 +24,14 @@
|
|||
|
||||
#ifdef LIBMESH
|
||||
#include "libmesh/bounding_box.h"
|
||||
#include "libmesh/libmesh.h"
|
||||
#include "libmesh/dof_map.h"
|
||||
#include "libmesh/elem.h"
|
||||
#include "libmesh/equation_systems.h"
|
||||
#include "libmesh/exodusII_io.h"
|
||||
#include "libmesh/explicit_system.h"
|
||||
#include "libmesh/dof_map.h"
|
||||
#include "libmesh/libmesh.h"
|
||||
#include "libmesh/mesh.h"
|
||||
#include "libmesh/point.h"
|
||||
#include "libmesh/sphere.h"
|
||||
#endif
|
||||
|
||||
namespace openmc {
|
||||
|
|
@ -109,7 +108,6 @@ public:
|
|||
virtual std::pair<std::vector<double>, std::vector<double>>
|
||||
plot(Position plot_ll, Position plot_ur) const = 0;
|
||||
|
||||
//! Get a label for the mesh bin
|
||||
//! Return a string representation of the mesh bin
|
||||
//
|
||||
//! \param[in] bin Mesh bin to generate a label for
|
||||
|
|
@ -285,6 +283,13 @@ public:
|
|||
UnstructuredMesh(const std::string& filename);
|
||||
|
||||
// Methods
|
||||
private:
|
||||
|
||||
//! Setup method for the mesh. Builds data structures,
|
||||
//! element mapping, etc.
|
||||
virtual void initialize() = 0;
|
||||
|
||||
public:
|
||||
|
||||
//! Add a variable to the mesh instance
|
||||
virtual void add_score(const std::string& var_name) = 0;
|
||||
|
|
@ -383,7 +388,7 @@ public:
|
|||
|
||||
private:
|
||||
|
||||
void initialize();
|
||||
void initialize() override;
|
||||
|
||||
//! Find all intersections with faces of the mesh.
|
||||
//
|
||||
|
|
@ -528,9 +533,7 @@ public:
|
|||
|
||||
private:
|
||||
|
||||
//! Setup method for the mesh. Builds data structures,
|
||||
//! element mapping, etc.
|
||||
void initialize();
|
||||
void initialize() override;
|
||||
|
||||
//! Translate a bin value to an element pointer
|
||||
const libMesh::Elem* get_element_from_bin(int bin) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue