Commit Graph

160 Commits

Author SHA1 Message Date
Bård Skaflestad
5cc657c89e 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
fc5bf7f555 Provide call interface to MEX routine for easier M testing. 2010-07-04 22:24:37 +00:00
Bård Skaflestad
9eca2f1e92 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
49242b7e2f The LAPACK and BLAS operators do not modify their (char*)
parameters.  Declare these operators as taking (const char*)s.
2010-07-03 11:07:56 +00:00
Bård Skaflestad
05d4a5fdef Correct a few embarrasing matrix dimension errors (in the "linear
pressure" part).
2010-07-02 22:19:38 +00:00
Bård Skaflestad
56a7db04d3 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
01edb43f47 Allow builder to -Define expansion of MAT_SIZE_T . 2010-06-29 19:11:26 +00:00
Bård Skaflestad
c5379fb191 Appease the -pedantic -ansi gods. 2010-06-29 15:32:03 +00:00
Bård Skaflestad
08d53ece42 Don't fall prey to refactoring errors. 2010-06-28 22:54:31 +00:00
Bård Skaflestad
5441bc3efe 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