Commit Graph

162 Commits

Author SHA1 Message Date
Bård Skaflestad
548c626329 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
6f01206f60 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
483be79c66 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
Bård Skaflestad
9c52face20 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
f2bb893b61 Remove macro definition which is no longer needed. 2010-07-09 10:39:26 +00:00
Bård Skaflestad
714dfd0545 Add first fully functioning M-callable C implementation of the
'ip_simple' mimetic inner product.  Coincides with the results from
  'computeMimeticIP' to (roughly) the order of round-off on a
  non-trivial test case.

  The calling interface is

      BI = mex_ip_simple(G, rock)

  and some latitude has been extended towards multiple data types in
  the various G fields (e.g., G.cells.facePos may be an 'int32').

  Additional clean-up and optimisation is likely.
2010-07-08 23:28:33 +00:00
Bård Skaflestad
4c469918e1 Implement cell loop (tentatively named mim_ip_simple_all()) and a
MEX gateway for easy testing from M.  Builds with fairly strict
  warnings, but is not tested yet.
2010-07-04 21:44:04 +00:00
Bård Skaflestad
ac97aa8c23 Correct a few embarrasing matrix dimension errors (in the "linear
pressure" part).
2010-07-02 22:19:38 +00:00
Bård Skaflestad
da327ba410 Split mim_ip_simple() up into two co-operating procedures,
- mim_ip_span_nullspace()
        Constructs orthogonal basis for mimetic IP null space.
    - mim_ip_linpress_exact()
        Adds term to impose exactness for linear pressure fields.

  Re-implement mim_ip_simple() in terms of these procedures.
2010-06-29 21:18:23 +00:00
Bård Skaflestad
9e1bbb200b Allow builder to -Define expansion of MAT_SIZE_T . 2010-06-29 19:11:26 +00:00
Bård Skaflestad
f1474e0b96 Don't fall prey to refactoring errors. 2010-06-28 22:54:31 +00:00
Bård Skaflestad
4e814fb0a5 For kicks and giggles, add an (untested) C+BLAS/LAPACK
implementation of the 'ip_simple' mimetic inner product.

  Suggested by: jrn.
2010-06-28 22:47:55 +00:00