Anchor Doxygen comments to current line.

Existing mark-up (/** ... */) would erroneously apply the documentation
of one field to the one below.  Using /**< ... */ avoids this problem.

Found by reading the Doxygen manual more carefully...
Comment.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Export the cell-face tags (i.e., cells.faces(:,2)) back to M in a manner consistent with the traditional semantics of the grid_structure.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Suggest an alternative implementation of the 'processgrid' function. This, disabled, implementation follows a two-stage allocate+fill algorithm that is slightly easier to control in memory-tight environments. We still have to maintain two copies of the grid, though.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
The '.type' is supposed to be a cell array of strings, not a mere string. Update accordingly.

  While here, infer the '.type' value from the function name rather than
  hard-coding 'processgrid'.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Preserve parameter validity status in (nrhs == 2) case.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
By jrn's blessing, enable the alternative implementation of 'processgrid'. Also remove the existing implementation.

  While here, assert copyright for 2011.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
GCC 4.4 is perfectly fine. Don't bother using a non-default compiler that might not be available (or differently named) on another system.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Fix stupid typo.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Separate build script and calling interface for processgrid. This enables simple Matlab postprocessing of output from C-code. This revision adds the 'griddim' field.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Implement new, required field 'G.griddim'.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
bska fixed integer overflow in malloc call

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
corrected documentation

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Do not check ZCORN monotonicity in inactive cells.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
To bring behavior of processgrid closer to that of processGRDECL, add post-processing to split grid in connected pieces.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Fix a couple of typo's.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Replace automatic build system with more warnings turned on-

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Move variable declarations to top of each function. Declare function signatures in the top of each .c file (to avoid warnings).

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Order cells lexicographically. While here, fix misprint and adjust whitespace.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
Fill faces.neighbors and nodes.coordinates along columns (i.e., unit stride in MATLAB). This means non-unit (but constant, 2 or 3) stride in C whence memory pre-fetching will typically be helpful. The cost is a (large) memory "rewind" operation at the end of each column.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>