Commit Graph

2023 Commits

Author SHA1 Message Date
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
Bård Skaflestad
9f99ac3265 Disable diagnostic output. 2010-08-09 11:04:26 +00:00
Bård Skaflestad
1e1788dcba Uhhh, not quite (pointy hat: bska). 2010-08-09 09:32:56 +00:00
Bård Skaflestad
cafb4b5f93 Allocate correct amount of space... 2010-08-09 09:32:12 +00:00
Bård Skaflestad
a39f74ad40 Use fixed box geometry
(tests G.faces.areas ~= 1 and G.cells.volumes ~= 1).
2010-08-09 09:19:09 +00:00
Bård Skaflestad
e07d447558 Add Ubuntu's default install directory for libsuitesparse-dev package. 2010-08-09 09:13:56 +00:00
Bård Skaflestad
b558bf929f Update documentation and example to reflect reality.
Compile in optimized mode.
2010-08-09 08:56:02 +00:00
Bård Skaflestad
32a3f8462e Update inner product call (mex_ip_simple) to reflect
nconn ~= DIFF(G.cells.facePos).
2010-08-09 08:54:55 +00:00
Bård Skaflestad
803511db6e Update documentation to reflect reality. 2010-08-09 08:52:39 +00:00
Bård Skaflestad
b196437776 Add support for number of connections different from number of faces.
This is a precursor to supporting wells as faces.
2010-08-09 08:51:01 +00:00
Jostein R. Natvig
cd829252ca Additiona and modifications to mimetic assembly routines in C. Add
code to call libmwumfpack from mex code.
2010-08-09 08:02:56 +00:00
Jostein R. Natvig
7e3fe07012 Add system assembly. 2010-08-06 10:53:07 +00:00
Jostein R. Natvig
f7e93692f9 free->mxFree. createNumericMatrix->createDoubleMatrix. 2010-08-05 12:16:15 +00:00
Jostein R. Natvig
10582ea32a Convert to using MRST API. 2010-08-05 12:14:39 +00:00
Jostein R. Natvig
97565f3bb7 Return pointers from getXX(...). Transpose centroids and normals.
And coordinates.
2010-08-05 12:13:59 +00:00
Jostein R. Natvig
53de3c03d1 Some cleanup. 'Transpose' getFaceCellNeighbors. 2010-08-05 07:33:59 +00:00
Bård Skaflestad
0d0f8eb69c The geometry routines are presently in 'geometry.c', not
'mimetic_geometry.c'.  Reflect this in the build command.
2010-08-04 20:35:32 +00:00
Bård Skaflestad
02f6a33282 Assign cell volumes to '.cells' sub-structure. Having volumes in the
'.faces' sub-structure is slightly counter intuitive.
2010-08-04 20:33:57 +00:00
Bård Skaflestad
2b943b8f3a Don't spam command window with verbose build messages. While useful
in debugging, this has no place in production.
2010-08-04 19:46:25 +00:00
Bård Skaflestad
f75b20430e Expand SVN keywords. 2010-08-04 16:28:45 +00:00
Bård Skaflestad
98fcce29f6 Add MEX wrapper for computing pressure and fluxes given interface
pressures and output from 'mex_schur_comp_symm'.
2010-08-04 16:27:13 +00:00
Jostein R. Natvig
de74b2565c Add geometry processing in C. 2010-08-04 14:11:37 +00:00
Jostein R. Natvig
a118c2f8ef A first attempt at a C API to MRST grids. 2010-08-04 14:10:27 +00:00
Bård Skaflestad
a2af73ea08 Correct typo in comment. 2010-08-04 12:29:49 +00:00
Bård Skaflestad
235f534376 Appease MLINT. 2010-08-04 11:51:58 +00:00
Bård Skaflestad
53489b4e72 Add MEX wrapper (and test script) for computing the hybrid system
component matrices using compiled C code.
2010-08-04 11:44:48 +00:00
Bård Skaflestad
2f30e6f0c5 Initial implementation of hybrid system infrastructure. Actual
assembly and system solve not currently implemented.  This is untested.
2010-08-03 17:01:33 +00:00
Bård Skaflestad
2cb51aac48 Don't require build(er|system) to #define COMPILING_FOR_MATLAB in
order to compile this file.
2010-08-03 14:27:13 +00:00
Bård Skaflestad
287d230f8a Ignore anything named *.mexa64 as these files are compiler output. 2010-07-09 15:36:29 +00:00
Bård Skaflestad
4ea66c06b1 Remove macro definition which is no longer needed. 2010-07-09 10:39:26 +00:00
Bård Skaflestad
eccc63d566 Assert copyright. Forgotten in previous revision. 2010-07-09 10:16:55 +00:00
Bård Skaflestad
945253df6b Remove statements disabled in earlier revision. 2010-07-09 09:34:29 +00:00
Bård Skaflestad
81d00cc324 Add documentation and building quirk (-DCOMPILING_FOR_MATLAB=1). 2010-07-09 09:32:21 +00:00
Bård Skaflestad
5024034657 Use mxMalloc() and mxFree() over their ANSI C counterparts in order
to register memory usage with the M memory manager (e.g., for Ctrl-C
  or error purposes).
2010-07-09 09:31:26 +00:00