Added convert function from vag grid to opm::unstructed. In the process it was added a convenience function to allocate unstructured grid in grid.h. Compute geometry is used to calculate the new geometry.

This commit is contained in:
Halvor M. Nilsen
2012-06-08 20:50:41 +02:00
parent 839920fab2
commit efc3cc3324
5 changed files with 144 additions and 8 deletions

View File

@@ -26,7 +26,7 @@
* Main OPM-Core grid data structure along with destructor and default
* constructor.
*/
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
@@ -238,6 +238,14 @@ void destroy_grid(struct UnstructuredGrid *g);
*/
struct UnstructuredGrid *
create_grid_empty(void);
struct UnstructuredGrid *
allocate_grid(size_t ndims ,
size_t ncells,
size_t nfaces,
size_t nfacenodes,
size_t ncellfaces,
size_t nnodes);
#ifdef __cplusplus
}