Add a simple test to demonstrate grid input.
Should be extended to test that the input is sane, too.
This commit is contained in:
parent
bfdd9917a8
commit
66ee40c809
@ -19,6 +19,7 @@ sparsevector_test \
|
||||
test_cartgrid \
|
||||
test_column_extract \
|
||||
test_lapack \
|
||||
test_read_grid \
|
||||
test_read_vag \
|
||||
test_readpolymer \
|
||||
test_sf2p \
|
||||
|
25
tests/test_read_grid.c
Normal file
25
tests/test_read_grid.c
Normal file
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* test_read_grid.c
|
||||
*
|
||||
* Created on: Aug 28, 2012
|
||||
* Author: bska
|
||||
*/
|
||||
|
||||
#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");
|
||||
G2 = create_grid_cart2d(2, 2);
|
||||
|
||||
destroy_grid(G2);
|
||||
destroy_grid(G1);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user