Commit Graph

15 Commits

Author SHA1 Message Date
Joakim Hove
8260d945fa Added function grid_equal() to compare two UnstructuredGrid instances. 2014-04-22 15:13:54 +02:00
Roland Kaufmann
a25e3ea851 Document Cartesian info fields for unstructured grids
The previous text contained an ambiguity of the contents of the field
global_cell in case it was non-null; this could be interpreted as if
the grid was non-Cartesian. However, this is not the convention that
has been followed in current clients.

The new text writes a warning about this, as well as giving a tip on
how an unstructured grid may be signaled through the structure (the
cartdims field is zero-initialized in the create_empty_grid function,
so this array must be actively initialized by the client).
2013-09-06 09:51:26 +02:00
Atgeirr Flø Rasmussen
8c1dc782dd Update synopsis and file description. 2013-03-20 14:12:32 +01:00
Bård Skaflestad
bfdd9917a8 Add a utility for creating a grid from textual representation.
There is little to no error checking, and the importer assumes that the
grid is serialised more or less directly from the grid structure.

Intended use: Testing on non-uniform grids created in MRST.
2012-10-05 00:23:41 +02:00
Bård Skaflestad
54a993e99d Refine description of allocate_grid() return value.
Specifically, the "global_cell" field remains unallocated (i.e.,
NULL) while other fields have undetermined contents.
2012-06-11 18:52:44 +02:00
Bård Skaflestad
bf0e469cf5 Split a few long lines in allocate_grid() documentation. 2012-06-11 17:54:56 +02:00
Halvor M. Nilsen
7e4350e7aa Corrected include and errors in vag.hpp 2012-06-11 10:42:34 +02:00
Halvor M. Nilsen
6287f53b2f Added then allocate_grid in grid and updated documentation in vag.hpp and grid.h 2012-06-11 10:34:40 +02:00
Halvor M. Nilsen
efc3cc3324 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. 2012-06-08 20:50:41 +02:00
Bård Skaflestad
394c463f1e Add default grid constructor. Creates an empty grid.
This is mostly for use in *other* grid constructors, as it enables
putting a grid into a defined state before allocating and/or filling
the specific fields of the UnstructuredGrid.

While here, add a Doxygen \file command lest function documentation
not be output to the documentation set.
2012-04-11 18:48:29 +02:00
Atgeirr Flø Rasmussen
c8c50bbafb Documented grid.h (UnstructuredGrid struct and destroy_grid() function). 2012-04-11 14:03:57 +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
Jostein R. Natvig
fb99d7bdaf 1) Move extra fields found in struct CornerpointGrid into struct UnstructuredGrid.
2) Remove typedef grid_t
3) Remove struct CornerpointGrid.
4) handle fallout.
2012-02-01 14:56:38 +01:00
Atgeirr Flø Rasmussen
4655108f98 Moved code from opmcore/ to opm/core/ 2011-12-12 11:13:54 +01:00