Skip to content

Commit

Permalink
fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
hnil authored and bska committed Dec 17, 2024
1 parent 8d1dc4e commit 181cf95
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
11 changes: 9 additions & 2 deletions opm/grid/cpgpreprocess/make_edge_conformal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::vector<int> sorted_outer_boundary(const struct processed_grid& grid,
int dir,
int cell){
std::vector<std::array<int,2>> edges;
for(int locind = 0; locind < dir_faces[dir].size(); locind++){
for(size_t locind = 0; locind < dir_faces[dir].size(); locind++){
int hface = dir_hfaces[dir][locind];
int face = grid.cell_faces[hface];
std::vector<std::array<int,2>> face_edges;
Expand Down Expand Up @@ -169,7 +169,7 @@ for(int locind = 0; locind < dir_faces[dir].size(); locind++){
std::vector<int> new_tb(const struct processed_grid& grid,
const std::vector<int>& bfnodes_in,
const std::vector<int>& sedge, std::array<int,2>& bedge,
int fsign,
int /*fsign*/,
int fsigntb){
std::vector<int> newedge;
std::vector<int> bfnodes = bfnodes_in;
Expand Down Expand Up @@ -406,6 +406,10 @@ void fix_edges_at_top(const struct processed_grid& grid,
}
}//end cell

#ifdef __cplusplus
extern "C" {
#endif

void make_edge_conformal(struct processed_grid* grid){
std::cout << "Fixing edge grid to be edge conformal" << std::endl;
std::vector<int> nodes;
Expand All @@ -420,3 +424,6 @@ void make_edge_conformal(struct processed_grid* grid){
grid->face_nodes[i] = nodes[i];
}
}
#ifdef __cplusplus
}
#endif
7 changes: 7 additions & 0 deletions opm/grid/cpgpreprocess/make_edge_conformal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#define OPENRS_MAKE_EDGE_CONFORMAL_HEADER

#include "preprocess.h"
#ifdef __cplusplus
extern "C" {
#endif

void make_edge_conformal(struct processed_grid* grdecl);
#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 181cf95

Please sign in to comment.