2012-08-28 16:05:44 +02:00
|
|
|
/*
|
|
|
|
|
* test_read_grid.c
|
|
|
|
|
*
|
|
|
|
|
* Created on: Aug 28, 2012
|
|
|
|
|
* Author: bska
|
|
|
|
|
*/
|
2013-04-10 12:56:14 +02:00
|
|
|
#include "config.h"
|
2012-08-28 16:05:44 +02: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 09:43:42 +02:00
|
|
|
G2 = create_grid_cart2d(2, 2, 1., 1.);
|
2012-08-28 16:05:44 +02:00
|
|
|
|
|
|
|
|
destroy_grid(G2);
|
|
|
|
|
destroy_grid(G1);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|