2012-08-28 09:05:44 -05:00
|
|
|
/*
|
|
|
|
* test_read_grid.c
|
|
|
|
*
|
|
|
|
* Created on: Aug 28, 2012
|
|
|
|
* Author: bska
|
|
|
|
*/
|
2013-04-10 05:56:14 -05:00
|
|
|
#include "config.h"
|
2012-08-28 09:05:44 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include <opm/core/grid.h>
|
|
|
|
#include <opm/core/grid/cart_grid.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main(void)
|
|
|
|
{
|
|
|
|
struct UnstructuredGrid *G1, *G2;
|
|
|
|
|
|
|
|
G1 = read_grid("cart_grid_2d.txt");
|
2013-08-01 02:43:42 -05:00
|
|
|
G2 = create_grid_cart2d(2, 2, 1., 1.);
|
2012-08-28 09:05:44 -05:00
|
|
|
|
|
|
|
destroy_grid(G2);
|
|
|
|
destroy_grid(G1);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|