Commit Graph

23 Commits

Author SHA1 Message Date
Bård Skaflestad
714e052822 Preserve parameter validity status in (nrhs == 2) case.
Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
2012-06-26 18:43:00 +02:00
Bård Skaflestad
d78aae5276 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>
2012-06-26 18:43:00 +02:00
Bård Skaflestad
b23ad048a2 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>
2012-06-26 18:43:00 +02:00
Bård Skaflestad
fbe8157332 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>
2012-06-26 18:43:00 +02:00
Bård Skaflestad
ee9a8fdc59 Implement G.type for OPM processing. 2010-03-18 16:31:10 +00:00
Bård Skaflestad
b3f61acd81 Assert Copyright for 2010 in files missed in OPM -r762. 2010-03-18 15:57:02 +00:00
Jostein R. Natvig
f795a753ed Catch up with change in grid structure. 2010-01-05 15:43:59 +00:00
Jostein R. Natvig
d5c900de11 *Change some fields from double to int.
*Add copyright.

Lacking functionality to split disconnected grid.
2009-12-16 13:49:14 +00:00
Bård Skaflestad
6b097bf779 Add 'cartDims' field to mex'ed processing. 2009-12-09 09:03:25 +00:00
Jostein R. Natvig
98ff8ac4f1 Bugfix in mex file. Fixes bug that casued Matlab to crach on
second call to procesgrid.
2009-11-26 06:47:19 +00:00
Jostein R. Natvig
8d81aa467b Add field G.cells.facePos to grid struct. 2009-11-19 17:26:07 +00:00
Jostein R. Natvig
23665a99e4 Add nodePos to G.faces field. 2009-11-19 15:25:37 +00:00
Bård Skaflestad
987d59c92c Tag faces (possible values: {LEFT,BACK,TOP}) during processing.
This is needed to support non-trivial boundaryId() return values.
2009-07-03 18:18:59 +00:00
Jostein R. Natvig
89e23f883f Fix orientation of faces on faults.
Fix problem with indexMap.
2009-06-25 11:41:32 +00:00
Jostein R. Natvig
7cc7596fc8 Moved permutation of ACTNUM and ZCORN to process_grdecl. The input is
now unaltered on exit.
2009-06-19 11:31:16 +00:00
Jostein R. Natvig
7c0a301382 Some functions have changed names. Allow passing tolerance from Matlab. 2009-06-18 16:11:25 +00:00
Jostein R. Natvig
45e3b4cede First seemingly working version. Norner is processed. There are some
differences between C and Matlab versions of the processed grid, though.
2009-06-17 13:08:59 +00:00
Jostein R. Natvig
ff9c542777 Moved code around.
Fixed bug in sparse_table_realloc.
Add processing of k-constant faces and local cell index.

The calculation of point coordinates still remains.
2009-06-12 15:42:32 +00:00
Jostein R. Natvig
ff37ae8160 Modifying grdecl and processed_grid. Introducing const here and there. 2009-06-12 13:10:31 +00:00
Jostein R. Natvig
201a31a9bc Many changes. I cannot remember them all. 2009-06-12 12:40:38 +00:00
Jostein R. Natvig
f02fbe0b9d Refactoring code, adding correct handling of faces on boundary.
Packing unstructured data in csr-like strucuture.
2009-06-11 23:35:19 +00:00
Jostein R. Natvig
82ff742b37 Moved processing of face topology to separate file. 2009-06-11 07:56:45 +00:00
Jostein R. Natvig
e04eb2f728 Initial checkin of cornerpoint processing code.
Current status
--------------
Given vectors ZCORN, COORD and ACTNUM as well as the Cartesian
dimensions these vectors implicitly refer to, the code is
currently capable of

 * Identify unique points along each pillar
 * Assign point numbers for each point specified in ZCORN
 * Compute face topology, i.e., the corners that define the geometry
   of the faces as well as the cells that are connected through the face.
 * Identify and compute intesections that occur in the processing of
   face topology.

What remains is

 * Handle the face geometry of boundary faces. (simple)
 * Compute point coordinates of the final point list.
 * Put all pieces together in a tidy manner.
2009-06-11 07:33:50 +00:00