Bård Skaflestad
da29d12f2b
Refactor actual allocation out to new helper, allocate_cart_grid().
...
Re-implement allocate_cart_grid_?d() in terms of allocate_cart_grid().
2012-04-25 18:58:58 +02:00
Bård Skaflestad
d59d648e93
Allocate_cart_grid_2d(): Repeat cset a1537a0d194a from 3D case.
2012-04-24 16:39:32 +02:00
Bård Skaflestad
11a439da60
Allocate_cart_grid_3d(): Check allocation status of ->node_coordinates.
...
This was missing even in early implementations.
2012-04-24 16:37:26 +02:00
Bård Skaflestad
74653b42d2
Replace malloc() call with default grid constructor.
...
This enables removing the explicit initialisation of pointer members
in the UnstructuredGrid because the return value from
create_grid_empty() is already in a fully defined state and may be
passed directly on to destroy_grid().
2012-04-11 19:12:06 +02:00
Atgeirr Flø Rasmussen
04ab5c83ce
Renamed all grid construction functions to create_grid_<something>().
2012-04-11 12:35:19 +02:00
Atgeirr Flø Rasmussen
36097f1656
Renamed free_grid() -> destroy_grid().
2012-04-11 11:40:51 +02:00
Atgeirr Flø Rasmussen
b66ee75058
Moved free_grid() to grid.h and (new file) grid.c.
2012-04-11 11:32:52 +02:00
Atgeirr Flø Rasmussen
866cb0b6ab
Updated #include statements to match moved and renamed headers.
2012-04-11 11:27:45 +02:00
Atgeirr Flø Rasmussen
62c365e718
Moved and renamed cornerpoint grid functions.
2012-04-11 11:10:00 +02:00
Atgeirr Flø Rasmussen
7454bd7a29
Moving grid-related files to opm/core/grid/
2012-04-11 11:07:18 +02:00