Bård Skaflestad
ce6016c9b1
M-x delete-trailing-whitespace .
2010-08-20 19:05:27 +00:00
Bård Skaflestad
66369d49ff
Correct a supremely embarrassing typo: When counting the number of
...
cell-to-cell connections (i.e., when calling count_block_conns()),
inspect the pointer array (pc2c) rather than the cell array itself
(c2c). Clue-by-four supplied by gdb(1).
Move self connection handling to partition_create_c2c().
Adjust dfs() 'work' array size to comply with new requirements of
-r5088.
2010-08-20 17:24:26 +00:00
Bård Skaflestad
7645981d14
Adjust for M's 1-based indexing in the 'neighbours' connection
...
array [%]
Assign results to plhs[0] (and print diagnostic).
2010-08-20 17:19:37 +00:00
Jostein R. Natvig
87949a432e
Fix embarrasing error.
2010-08-20 14:18:22 +00:00
Bård Skaflestad
9ca7ff4191
Add files missing in -c5083.
...
Pointy hat: bska
2010-08-19 22:30:54 +00:00
Bård Skaflestad
58a79e9f4d
Install support for creating block-internal connection structures.
...
Not functional atm.
2010-08-19 22:30:10 +00:00
Bård Skaflestad
9ba8749ed8
The file 'partition.c' now depends on 'dfs.c'. Add to build system.
2010-08-19 22:29:12 +00:00
Bård Skaflestad
b160856ec3
Add stub implementation of algorithm for splitting blocks.
...
Currently lacks the construction of block-internal connections but
does at least build.
Not tested.
2010-08-19 16:33:13 +00:00
Jostein R. Natvig
bea6bcaccb
Four-space indentation.
2010-08-19 11:02:50 +00:00
Jostein R. Natvig
fe319fbbef
Add comment.
2010-08-19 10:52:10 +00:00
Jostein R. Natvig
4519ce2b7c
A depth-first graph traversal to find connected components of graph.
2010-08-19 10:46:58 +00:00
Bård Skaflestad
5b673a4960
Be more explicit on the significance of the start pointers for 1:nbin.
2010-08-18 19:16:14 +00:00
Bård Skaflestad
28e6e730db
Implicit int went the way of the dodo in 1999. Catch up to this fact.
2010-08-18 16:22:35 +00:00
Bård Skaflestad
a0f013e05f
Provide an H1 lines in closer proximity to reality.
2010-08-18 15:08:13 +00:00
Bård Skaflestad
d12bc05d86
Add MEX support for inverting cell-to-block mappings (i.e.,
...
partition vectors) to create block-to-cell mappings.
2010-08-18 15:04:33 +00:00
Bård Skaflestad
a98073072f
Update to new hybsys_* calling conventions.
2010-08-18 09:04:34 +00:00
Bård Skaflestad
be27b881e2
Remove unused variables.
2010-08-18 08:55:14 +00:00
Bård Skaflestad
4013dec710
Support empty grids.
2010-08-18 08:50:26 +00:00
Bård Skaflestad
1f8773b5e7
Solve the "No Type" problem more generally.
2010-08-18 08:46:56 +00:00
Bård Skaflestad
e7155b332a
Add documentation, support multiple grid components and '.type' field.
2010-08-18 08:37:40 +00:00
Bård Skaflestad
8df4a5f14b
Add rudimentary MEX support for computing non-symmetric (i.e.,
...
compressible) cell contributions.
2010-08-18 08:19:36 +00:00
Bård Skaflestad
47abc777e7
Aesthetics. Check malloc() status in same sequence as attempted
...
field allocations.
2010-08-18 07:07:07 +00:00
Bård Skaflestad
2e667bcfee
Remove EOL whitespace overlooked in r5056.
2010-08-17 15:48:15 +00:00
Bård Skaflestad
b1b6b18a4a
Add preliminary support for unsymmetric system contributions. This
...
is needed to implement compressible pressure solvers.
2010-08-17 15:37:06 +00:00
Jostein R. Natvig
991851bd9e
Add local variables and whitespace changes.
2010-08-17 07:20:12 +00:00
Bård Skaflestad
fed728d127
"matrix.h" is transitively available through <mex.h>, so there is no
...
need to explicitly #include this file.
2010-08-17 06:57:39 +00:00
Bård Skaflestad
8e6c3ca6a2
Generate optimised code now that the basic functionality is tested.
2010-08-16 13:18:31 +00:00
Bård Skaflestad
2e0af739fd
Remove unneeded header.
2010-08-16 09:28:15 +00:00
Bård Skaflestad
479e8cde82
Add MEX gateway forgotten in r5048.
...
Pointy hat: bska
2010-08-16 09:27:52 +00:00
Bård Skaflestad
ab2e5d2a54
Add MEX'ed edition of 'compressPartition'.
2010-08-16 09:17:48 +00:00
Bård Skaflestad
2a30852257
Add MEX'ed edition of 'partitionUI'. The MEX function only
...
implements the first edition of the 'partitionUI' algorithm (i.e.,
before afg added sub-grid support in r2349), but it is nevertheless
a useful experiment and facilitates testing a C/C++ implementation
of the MsMFE method.
2010-08-13 17:24:19 +00:00
Bård Skaflestad
0b8b26e6c2
Convert assemble/solve demonstration to pconn semantics.
2010-08-13 07:18:47 +00:00
Bård Skaflestad
d4bde033a4
Update remaining infrastructure (and documentation) to account for
...
'mex_ip_simple' now returning an indirection array/data array pair
(akin to G.cells.facePos and G.cells.faces(:,1)) to account for
wells.
2010-08-12 17:14:57 +00:00
Bård Skaflestad
f2f971d8ed
M-x delete-trailing-whitespace .
2010-08-12 09:43:11 +00:00
Bård Skaflestad
59f2b90524
Remove code which is no longer needed in mex_ip_simple.c .
...
Re-enable the MEX implementation following successful test on full
Norne data.
2010-08-12 08:28:49 +00:00
Bård Skaflestad
9fdbc97459
Correct a nasty bug where we were not correctly defining new conn
...
pointers in the first cell (i.e., c==0) in add_well_connections().
With this change, computing the number of existing connections is
split across loop iterations, but the new approach has the added
benefit of actually being correct.
Preliminary testing is promising and suggests this is on the right
track, but we still do not re-enable the MEX code.
2010-08-11 22:35:20 +00:00
Bård Skaflestad
fc082bcc9a
Add preliminary support for wells in 'mex_ip_simple'. This is
...
untested, so disable direct MEX building for the time being.
2010-08-11 18:31:01 +00:00
Bård Skaflestad
caea28b2fb
Make assembling and solving the global system contingent upon
...
pre-processor macro ASSEMBLE_AND_SOLVE_UMFPACK being defined and
non-zero.
2010-08-10 07:51:22 +00:00
Bård Skaflestad
5fbed43004
Static-ify functions which have no prototype in 'hybsys.h'.
2010-08-10 07:47:06 +00:00
Bård Skaflestad
4b0e3568b4
Install picky compiler mode.
2010-08-10 07:29:18 +00:00
Bård Skaflestad
765e68032e
Allow callers to supply string literals (i.e., const char *s') to
...
function getField() and still build the API relatively warning free.
2010-08-10 07:27:55 +00:00
Bård Skaflestad
1a67fbaa6a
Remove unused parameters, be more vigilant in choosing data types,
...
and don't mix declarations and code.
2010-08-10 07:18:29 +00:00
Bård Skaflestad
e06eda6646
M-x delete-trailing-whitespace .
2010-08-09 21:35:57 +00:00
Bård Skaflestad
e020be611a
M-x delete-trailing-whitespace .
2010-08-09 21:29:54 +00:00
Bård Skaflestad
b4137d189a
M-x delete-trailing-whitespace .
2010-08-09 21:29:22 +00:00
Bård Skaflestad
8344dfafa2
In preparation of changing approach to gravity handling: allocate a
...
work array to store results of inv(B)*(gravity potential).
2010-08-09 15:21:47 +00:00
Bård Skaflestad
ffbf2e3c71
Remove undeeded parens.
2010-08-09 15:13:32 +00:00
Bård Skaflestad
0c0ea975a1
Add quarter five-spot test (currently using mock-up wells).
2010-08-09 11:06:58 +00:00
Bård Skaflestad
677482c68b
Complete transition to connection ~= face .
2010-08-09 11:05:36 +00:00
Bård Skaflestad
ba1f4f889c
Disable UMFPACK solver (and hard-coded source terms).
2010-08-09 11:05:03 +00:00