Move mesh C API functions to C++

This commit is contained in:
Paul Romano 2018-08-29 14:33:05 -05:00
parent fe76ad695f
commit fb22413e8d
6 changed files with 213 additions and 216 deletions

View file

@ -71,7 +71,7 @@ extern "C" {
int openmc_mesh_get_params(int32_t index, double** ll, double** ur, double** width, int* n);
int openmc_mesh_set_id(int32_t index, int32_t id);
int openmc_mesh_set_dimension(int32_t index, int n, const int* dims);
int openmc_mesh_set_params(int32_t index, const double* ll, const double* ur, const double* width, int n);
int openmc_mesh_set_params(int32_t index, int n, const double* ll, const double* ur, const double* width);
int openmc_meshsurface_filter_get_mesh(int32_t index, int32_t* index_mesh);
int openmc_meshsurface_filter_set_mesh(int32_t index, int32_t index_mesh);
int openmc_next_batch(int* status);

View file

@ -1,7 +1,6 @@
#ifndef OPENMC_MESH_H
#define OPENMC_MESH_H
#include <cstdint> // for size_t
#include <memory> // for unique_ptr
#include <vector>
#include <unordered_map>
@ -22,6 +21,7 @@ namespace openmc {
class RegularMesh {
public:
// Constructors
RegularMesh() = default;
RegularMesh(pugi::xml_node node);
// Methods