diff options
Diffstat (limited to 'mesh.hpp')
-rw-r--r-- | mesh.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -13,10 +13,10 @@ public: Mesh(); - void build_surface_mesh(H5::H5File fp, H5::H5File ep); + void build_surface_mesh(H5::H5File fp, H5::H5File ep, std::string datasetname); void build_subsurface_mesh(H5::H5File fp); - void build_environment(H5::H5File ep, int flag); + void build_environment(H5::H5File ep, std::string datasetname, int flag); void build_subsurface_environment(H5::H5File ep); Cell* get_cell(int index, int flag); @@ -25,6 +25,7 @@ public: double get_high_coordinate(int index); void set_low_coordinate(int index, double value); double get_low_coordinate(int index); + void set_fuzz(double value); int get_n_cells(int flag); @@ -32,6 +33,8 @@ private: int n_cells_subsurface; int n_cells_surface; + + double fuzz; std::vector<Cell> subsurface_cells; std::vector<Cell> surface_cells; @@ -41,18 +44,17 @@ private: std::vector<std::vector<double>> nodes; std::vector<std::vector<int>> element_node_indices; - //std::vector<std::vector<std::vector<hsize_t>>> edge_ids; void handle_subsurface_node_data(H5::H5File fp); void build_subsurface_cells(); void handle_surface_node_data(H5::H5File fp); - void build_surface_cells(H5::H5File fp); + void build_surface_cells(H5::H5File fp, std::string datasetname); void get_mesh_metadata(H5::H5File fp, int ncol); void read_velocity(H5::H5File fp, std::string groupname, std::string datasetname, int flag, int index); - void read_water_depth(H5::H5File fp); - void read_elevation(H5::H5File fp); + void read_water_depth(H5::H5File fp, std::string datasetname); + void read_elevation(H5::H5File fp, std::string datasetname); }; |